mozjpeg icon indicating copy to clipboard operation
mozjpeg copied to clipboard

Why doesn't this support macOS?

Open PublicWorld opened this issue 2 years ago • 3 comments
trafficstars

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.

PublicWorld avatar Nov 27 '22 09:11 PublicWorld

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

kornelski avatar Nov 27 '22 18:11 kornelski

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

PublicWorld avatar Nov 28 '22 14:11 PublicWorld

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

PublicWorld avatar Nov 29 '22 11:11 PublicWorld