You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
rkistner commentedon Sep 23, 2020
It is not currently supported to cross-compile.
The next version will include prebuilt binaries that should work on electron 8.2.x.
jianfenkezhan commentedon 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 commentedon Sep 25, 2020
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.