mozilla / mozjpeg

Improved JPEG encoder.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why doesn't this support macOS?

PublicWorld opened this issue · comments

commented

image

I see that only iOS is supported here, not include macOS, what is the reason? Because I want to use mozjpeg in macOS app.

There's no reason. Please make a PR with a fix.

commented

Hi Kornelski, thanks for your response.
I forked this repo and update the mozjpeg.podspec file, but when I try to install it to my macOS project, I got this error, do you know how can I deal it?

my fork repo: https://github.com/NumberCode/mozjpeg/blob/master/mozjpeg.podspec

replace:

spec.platforms = { :ios => "8.0" }

to:

spec.ios.deployment_target = "8.0"
spec.osx.deployment_target = "10.15"

image

commented

When I tried to annotate this header file, I got different errors, such as this:

  • "jdmerge.h" file not found
  • Use of undeclared identifier 'FALLTHROUGH', seems it defined in jconfigint.h.in, but I don't know how to import this .h.in file and use this in macOS.
    😭

image

image