Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why doesn't this support macOS? #429

Open
PublicWorld opened this issue Nov 27, 2022 · 3 comments
Open

Why doesn't this support macOS? #429

PublicWorld opened this issue Nov 27, 2022 · 3 comments

Comments

@PublicWorld
Copy link

PublicWorld commented Nov 27, 2022

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.

@kornelski
Copy link
Member

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

@PublicWorld
Copy link
Author

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
Copy link
Author

PublicWorld commented Nov 29, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants