-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Compile Canvas on Apple Silicon Mac using custom library paths and without installling using homebrew #2406
Comments
Probably not, but work is currently underway to provide standalone Canvas modules for Apple Silicon, please see this issue: #2354. Currently you'd have to build an Apple Silicon version of |
Hi @mn4367, I read your comments in #2354, do you still have a prebuilt M1 version currently, I would love to try it on my computer to see if it works.
|
@mn4367 thanks a lot, downloaded. |
@SZTankWang, does it work? |
@mn4367 right now mac still prompts security warning, and I have to do |
I assume you downloaded the Zip with a browser, right? In this case the OS sets a quarantine attribute on the file (and probably all of its content after unpacking). |
Issue or Feature
I'm currently on Mac M1, and am using node canvas for development. The issue is that once other people tries to run my project on other Apple M1 computer, they cannot run the project if they don't have the prerequisite libraries installed (
brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman python-setuptools). Although this can be solved by installing those libraries first, is there a way to make node canvas compile on Apple M1 computer without using homebrew, so that my users won't need to worry about using homebrew?
An ideal solution would be to include those libraries somewhere in my own node project, but how do I make
canvas
use custom dependency path when compiling?Your Environment
The text was updated successfully, but these errors were encountered: