durs / node-activex

Node.JS Implementaion of ActiveXObject

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Electron build error on v1.12.0

HwarLee opened this issue · comments

$ npm rebuild winax --runtime=electron --target=2.0.18 > winax@1.12.0 install C:\Users\86186\project\factory-test\node_modules\winax > node-gyp rebuild main.cpp utils.cpp disp.cpp win_delay_load_hook.cc c:\users\86186\project\factory-test\node_modules\winax\src\disp.cpp(453): error C2661: “v8::String::Value::Value”: 没有重载函数接受 2 个参数 [C:\Us ers\86186\project\factory-test\node_modules\winax\build\node_activex.vcxproj] c:\users\86186\project\factory-test\node_modules\winax\src\utils.cpp(286): error C2661: “v8::String::Value::Value”: 没有重载函数接受 2 个参数 [C:\U sers\86186\project\factory-test\node_modules\winax\build\node_activex.vcxproj] c:\users\86186\project\factory-test\node_modules\winax\src\disp.cpp(505): error C2661: “v8::String::Value::Value”: 没有重载函数接受 2 个参数 [C:\Us ers\86186\project\factory-test\node_modules\winax\build\node_activex.vcxproj] c:\users\86186\project\factory-test\node_modules\winax\src\disp.cpp(561): error C2661: “v8::String::Value::Value”: 没有重载函数接受 2 个参数 [C:\Us ers\86186\project\factory-test\node_modules\winax\build\node_activex.vcxproj] c:\users\86186\project\factory-test\node_modules\winax\src\disp.cpp(739): error C2661: “v8::String::Value::Value”: 没有重载函数接受 2 个参数 [C:\Us ers\86186\project\factory-test\node_modules\winax\build\node_activex.vcxproj] c:\users\86186\project\factory-test\node_modules\winax\src\disp.cpp(920): error C2661: “v8::String::Value::Value”: 没有重载函数接受 2 个参数 [C:\Us ers\86186\project\factory-test\node_modules\winax\build\node_activex.vcxproj] gyp ERR! build error gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exefailed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node -gyp.js" "rebuild" gyp ERR! cwd C:\Users\86186\project\factory-test\node_modules\winax gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! winax@1.12.0 install:node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the winax@1.12.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\86186\AppData\Roaming\npm-cache_logs\2019-08-01T11_35_06_912Z-debug.log

`

2.0.18 is very old electron target and used old v8 version, current version winax support only actual versions of nodejs and v8 пт, 2 авг. 2019 г. в 05:58, HwarLee notifications@github.com:

$ npm rebuild winax --runtime=electron --target=2.0.18 > @.*** install C:\Users\86186\project\factory-test\node_modules\winax > node-gyp rebuild main.cpp utils.cpp disp.cpp win_delay_load_hook.cc c:\users\86186\project\factory-test\node_modules\winax\src\disp.cpp(453): error C2661: “v8::String::Value::Value”: 没有重载函数接受 2 个参数 [C:\Us ers\86186\project\factory-test\node_modules\winax\build\node_activex.vcxproj] c:\users\86186\project\factory-test\node_modules\winax\src\utils.cpp(286): error C2661: “v8::String::Value::Value”: 没有重载函数接受 2 个参数 [C:\U sers\86186\project\factory-test\node_modules\winax\build\node_activex.vcxproj] c:\users\86186\project\factory-test\node_modules\winax\src\disp.cpp(505): error C2661: “v8::String::Value::Value”: 没有重载函数接受 2 个参数 [C:\Us ers\86186\project\factory-test\node_modules\winax\build\node_activex.vcxproj] c:\users\86186\project\factory-test\node_modules\winax\src\disp.cpp(561): error C2661: “v8::String::Value::Value”: 没有重载函数接受 2 个参数 [C:\Us ers\86186\project\factory-test\node_modules\winax\build\node_activex.vcxproj] c:\users\86186\project\factory-test\node_modules\winax\src\disp.cpp(739): error C2661: “v8::String::Value::Value”: 没有重载函数接受 2 个参数 [C:\Us ers\86186\project\factory-test\node_modules\winax\build\node_activex.vcxproj] c:\users\86186\project\factory-test\node_modules\winax\src\disp.cpp(920): error C2661: “v8::String::Value::Value”: 没有重载函数接受 2 个参数 [C:\Us ers\86186\project\factory-test\node_modules\winax\build\node_activex.vcxproj] gyp ERR! build error gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node -gyp.js" "rebuild" gyp ERR! cwd C:\Users\86186\project\factory-test\node_modules\winax gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @.*** install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @.*** install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\86186\AppData\Roaming\npm-cache_logs\2019-08-01T11_35_06_912Z-debug.log — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#52?email_source=notifications&email_token=AAEMMNOLZYPAPDJ3YHXXA2LQCOPDRA5CNFSM4IIZ6CBKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HC6YZNA>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEMMNMZVN6F5YGII32SP4DQCOPDRANCNFSM4IIZ6CBA .

Thx, I have tried Electron v6.0.0, it can build success.
But my project another package(ffi) not support Electron v6.0.0(node v12), I finally change my winax version to 1.0.17 temporarily and it wokrs(Maybe I will upgare package version sometime ).

Anyway thx your recommendations and advise.