-
Notifications
You must be signed in to change notification settings - Fork 58
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
Apple Silicon M1 builds fail with incorrect path to libpng libraries #64
Comments
Unable to submit a PR for this until actions/runner-images#2187 is resolved. No timeline for support of this from GitHub yet. Any other CI's providing Apple Silicon shared runners yet? |
Thanks @arrrgi! I came across this issue on my M1 Mac Mini Big Sur version
This seems to work for the moment. Hopefully a more future proof solution will be approved. |
To run @jessethach's command, remember to replace 1.6.37 with your version and |
Thanks, this solves an issue on masOS Ventura 13.3! |
Issue should be fixed with #80. Can anyone check this on M1 or M2 macs? |
Seems like working fine on M1 Pro, Mac OS Ventura 13.4.1 (22F82) |
Now that this has merged, what do I need to do to install this? Do I need to wait for a new release? |
getting the similar error.
successfully! it's ok! |
I'm reporting an issue on an M1 without Rosetta 2.
Environment:
Reproduce issue:
First, without installing a number of pre-requisites I get the following after running
yarn add imagemin-mozjpeg
in an empty project:After running
brew install automake autoconf libtool m4 nasm libpng pkg-config
and attempting again, yarnpkg now exits with:Finally, I have confirmed the library is symlinked at
/opt/homebrew/lib/libpng16.a
to/opt/homebrew/Cellar/libpng/1.6.37/lib/libpng16.a
.mozjpeg-bin/lib/install.js
Line 19 in 726d684
It seems the location is hardcoded based on previous install location of libpng before Homebrew moved everything under
/opt/homebrew
. I think a more futureproof implementation of the build would be to find where the relevant libraries are installed rather than depending on them being in a specific location.Workaround
For now, it was enough to:
sudo ln -s /opt/homebrew/Cellar/libpng/1.6.37/lib/libpng16.a libpng16.a
which resulted in a successful package installThe text was updated successfully, but these errors were encountered: