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

Uncaught Error: %1 is not a valid Win32 application #16

Open
AlanDan opened this issue Oct 22, 2018 · 1 comment
Open

Uncaught Error: %1 is not a valid Win32 application #16

AlanDan opened this issue Oct 22, 2018 · 1 comment

Comments

@AlanDan
Copy link

AlanDan commented Oct 22, 2018

Hi,

I'm trying to use opencv4nodejs with vue on MacOS.

It seems to build everything correctly on MacOS.

Here is the problem:
1, I build a win32 version on MacOS
2, copy the package on a pc and run the xx.exe
3, I got an error, here is the detail:
Uncaught Error: %1 is not a valid Win32 application.
\?\C:\Users\Alexander Dai\AppData\Local\Temp\36a84a7b-b244-4032-9973-81ad2058494e.tmp.node
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:172:20)
at Object.Module._extensions..node (module.js:598:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:186:18)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (C:\Users\Alexander Dai\workshop\YPEditor-win32-x64\resources\app.asar\node_modules\opencv4nodejs\lib\cv.js:17:8)
at Object. (C:\Users\Alexander Dai\workshop\YPEditor-win32-x64\resources\app.asar\node_modules\opencv4nodejs\lib\cv.js:28:3)

I kind of know that I need to build a opencv4nodejs on a pc.

Would you mind to give me some suggestions or solutions thus I can build both 'mas' and 'win32' on my MacOS and run both well.

PS: My english is not good, sorry for that.

Thanks.

@St1c
Copy link

St1c commented Dec 4, 2018

I had similar issue, and it seems that only solution is to build windows executable on windows - either VM or native.

see this comment for more:
electron/electron#1075 (comment)

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