-
Notifications
You must be signed in to change notification settings - Fork 67
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
can't cross compile code on centos for MacOS M1 #88
Comments
I believe cross-compiling from Linux for MacOS is not supported. Cross-compiling from an Intel Mac for arm64 Mac could work, but I haven't tried that yet. |
still failed on intel Mac. I tried [email protected] and openssl@3 , maybe sqlcipher need a special version of openssl ? brew install [email protected]
|
export LDFLAGS="-L/usr/local/opt/openssl@3/lib" export PATH="/usr/local/opt/openssl@3/bin:$PATH" terry@terrydeMacBook-Pro sqlcipher % openssl version
node-pre-gyp info it worked if it ends with ok npm ERR! A complete log of this run can be found in: cat /Users/terry/.npm/_logs/2021-11-26T03_03_15_875Z-debug.log 0 verbose cli [ |
hello, I tried to cross compile code on centos 7 :
npm install --target_platform=darwin --target_arch=arm64
but this node_sqlite3.node can't load in MacOS M1, then I checked hash:
`
npm install --target_platform=linux --target_arch=arm64
md5sum lib/binding/napi-v6-darwin-arm64/node_sqlite3.node
d97a787dc2d32bdee2026d8969fce4fc lib/binding/napi-v6-darwin-arm64/node_sqlite3.node
md5sum lib/binding/napi-v6-linux-arm64/node_sqlite3.node
d97a787dc2d32bdee2026d8969fce4fc lib/binding/napi-v6-linux-arm64/node_sqlite3.node
`
how to fix this ? thank you
The text was updated successfully, but these errors were encountered: