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

Build for window fail on Mac #46

Closed
jianfenkezhan opened this issue Sep 23, 2020 · 3 comments
Closed

Build for window fail on Mac #46

jianfenkezhan opened this issue Sep 23, 2020 · 3 comments

Comments

@jianfenkezhan
Copy link

node: v12.13.x
electron: v8.2.5
Mac: macOS Catalina v10.15.5

@journeyapps/sqlcipher/lib/binding/electron-v8.2-win32-x64/node_sqlite3.node is not a valid Win32 application

@rkistner
Copy link
Member

It is not currently supported to cross-compile.

The next version will include prebuilt binaries that should work on electron 8.2.x.

@jianfenkezhan
Copy link
Author

jianfenkezhan commented Sep 25, 2020

Thanks for your reply really! And then, I want to know the next version can support to cross-compile?
Anyway, thanks again, and I am waiting....

@rkistner
Copy link
Member

I've never tested it, but it should be possible to cross-compile with electron when pre-built binaries are used. The latest release (5.0.0) uses N-API, which means you should be able to get a pre-built binary for any supported Electron or Node version.

If it still doesn't work, check that the architecture of the library matches your application. The "not a valid Win32 application" error is common if there is a mismatch, e.g. a 32-bit application attempting to use a 64-bit library.

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