-
Notifications
You must be signed in to change notification settings - Fork 37
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
Fails to build on Apple Silicon devices (Arm64) #36
Comments
@john-terrell For reference, I was able to install v6.0.0 without this flag. |
Is this something that can be integrated into imagemin-optipng so devs don't have to figure this out the hard way? Several of our devs lost hours on this. A normal npm install worked on my M1 mac without any flags, but not on theirs. Thank you. |
This one worked for me as well. I needed to run with the flag on my M1 in the lib version 8.0.0, using Node.js 14.20.0 on an application. Thanks! |
The solution above worked for me, building the package in Docker on Apple Silicon.
Node v22.12.0 |
On an Apple Silicon Mac:
$ npm install imagemin-optipng --save-dev
...
Undefined symbols for architecture arm64:
npm ERR! "_png_init_filter_functions_neon", referenced from:
npm ERR! _png_read_filter_row in libpng.a(pngrutil.o)
npm ERR! ld: symbol(s) not found for architecture arm64
The text was updated successfully, but these errors were encountered: