octalmage / robotjs

Node.js Desktop Automation.
http://robotjs.io
MIT License
12.37k stars 961 forks source link

RobotJs cannot be installed with electron 10.x.x #603

Open Sergey-Churilin opened 4 years ago

Sergey-Churilin commented 4 years ago

Just installing failed

Expected Behavior

Install without issues

Current Behavior

Installation failed

Steps to Reproduce (for bugs)

  1. Download sample https://github.com/Sergey-Churilin/Electron-samples/tree/electron10-robotjs
  2. in package.json on line 7 remove text electron-builder, so final result should be : "postinstall": "install-app-deps",
  3. Run npm install

Context

Your Environment

Errors: Error: C:\Program Files\nodejs\node.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE Output:

Output:

robotjs@0.6.0 install C:\project\src\electron\app\node_modules\robotjs prebuild-install || node-gyp rebuild

C:\project\src\electron\app\node_modules\robotjs>if not defined npm_config_node_gyp (node "C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\.
.\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  robotjs.cc
  win_delay_load_hook.cc
c:\users\user\.electron-gyp\10.1.1\include\node\cppgc/common.h(17): error C2144: syntax error: 'int' should be preceded by '}' (compiling source file ..\src\robotjs.cc) [C:\project\src
\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\cppgc/common.h(17): error C2144: syntax error: 'int' should be preceded by ';' (compiling source file ..\src\robotjs.cc) [C:\project\src
\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\cppgc/common.h(18): error C2065: 'kMayContainHeapPointers': undeclared identifier (compiling source file ..\src\robotjs.cc) [C:\project\
src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\cppgc/common.h(18): error C2513: 'int': no variable declared before '=' (compiling source file ..\src\robotjs.cc) [C:\project\src\electr
on\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\cppgc/common.h(18): error C2143: syntax error: missing ';' before ',' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\cppgc/common.h(18): error C2059: syntax error: ',' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\r
obotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\cppgc/common.h(22): error C2143: syntax error: missing ';' before '}' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\cppgc/common.h(24): error C2059: syntax error: '}' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\r
obotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\cppgc/common.h(24): error C2143: syntax error: missing ';' before '}' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8-internal.h(16): error C2143: syntax error: missing ';' before '{' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\
app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8-internal.h(16): error C2447: '{': missing function header (old-style formal list?) (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1194): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1194): error C2143: syntax error: missing ';' before '*' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\nod
e_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1194): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1195): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1195): error C2238: unexpected token(s) preceding ';' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_m
odules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1206): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1206): error C2143: syntax error: missing ';' before '*' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\nod
e_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1206): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1206): error C2238: unexpected token(s) preceding ';' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_m
odules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1207): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1207): error C2143: syntax error: missing ';' before '*' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\nod
e_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1207): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1207): error C2238: unexpected token(s) preceding ';' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_m
odules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1255): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1255): error C2143: syntax error: missing ';' before '*' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\nod
e_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1255): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1255): error C2238: unexpected token(s) preceding ';' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_m
odules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1256): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1256): error C2143: syntax error: missing ';' before '*' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\nod
e_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1256): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\robotjs.cc) [C:\projects\user\.electron-gyp\10.1.1\include\node\v8.h(1256): error C2238: unexpected token(s) preceding ';' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_m
odules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1281): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1281): error C2143: syntax error: missing ';' before '*' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\nod
e_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1281): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(1281): error C2238: unexpected token(s) preceding ';' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_m
odules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(2976): error C2039: 'kApiSystemPointerSize': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(2976): error C2065: 'kApiSystemPointerSize': undeclared identifier (compiling source file ..\src\robotjs.cc) [C:\project\src\electr
on\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4267): error C2061: syntax error: identifier 'Address' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_
modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4271): note: see reference to class template instantiation 'v8::ReturnValue<T>' being compiled (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4268): error C3646: 'GetDefaultValue': unknown override specifier (compiling source file ..\src\robotjs.cc) [C:\project\src\electro
n\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4268): error C2059: syntax error: ')' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\b
uild\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4268): error C2238: unexpected token(s) preceding ';' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_m
odules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4269): error C2061: syntax error: identifier 'Address' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_
modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4270): error C2143: syntax error: missing ';' before '*' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\nod
e_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4270): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4270): error C2238: unexpected token(s) preceding ';' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_m
odules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4327): error C2061: syntax error: identifier 'Address' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_
modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4332): note: see reference to class template instantiation 'v8::FunctionCallbackInfo<T>' being compiled (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4329): error C2143: syntax error: missing ';' before '*' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\nod
e_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4329): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4329): error C2238: unexpected token(s) preceding ';' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_m
odules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4330): error C2143: syntax error: missing ';' before '*' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\nod
e_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4330): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4330): error C2238: unexpected token(s) preceding ';' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_m
odules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4442): error C2061: syntax error: identifier 'Address' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_
modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4444): note: see reference to class template instantiation 'v8::PropertyCallbackInfo<T>' being compiled (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4443): error C2143: syntax error: missing ';' before '*' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\nod
e_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4443): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4443): error C2238: unexpected token(s) preceding ';' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_m
odules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4970): error C2039: 'BackingStoreBase': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src
\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(4970): error C2504: 'BackingStoreBase': base class undefined (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app
\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(5376): error C2039: 'kApiSystemPointerSize': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(5376): error C2065: 'kApiSystemPointerSize': undeclared identifier (compiling source file ..\src\robotjs.cc) [C:\project\src\electr
on\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(5378): error C2039: 'kSmiMaxValue': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\ele
ctron\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(5378): error C2065: 'kSmiMaxValue': undeclared identifier (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\no
de_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(8329): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(8329): error C3646: 'previous_stack_height_': unknown override specifier (compiling source file ..\src\robotjs.cc) [C:\project\src\
electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(8329): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9113): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version. (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(7322): note: see declaration of 'v8::MicrotasksCompletedCallback' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9121): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version. (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(7322): note: see declaration of 'v8::MicrotasksCompletedCallback' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9518): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9518): error C2143: syntax error: missing ';' before '*' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\nod
e_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9518): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9518): error C2238: unexpected token(s) preceding ';' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_m
odules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9761): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9761): error C2143: syntax error: missing ';' before '*' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\nod
e_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9761): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9762): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9762): error C2238: unexpected token(s) preceding ';' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_m
odules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9763): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9763): error C2143: syntax error: missing ';' before '*' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\nod
e_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9763): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9764): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9765): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9766): error C2238: unexpected token(s) preceding ';' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_m
odules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9767): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9767): error C2061: syntax error: identifier 'Address' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_
modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9769): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9769): error C2061: syntax error: identifier 'Address' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_
modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9771): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9771): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9771): error C2143: syntax error: missing ',' before '*' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\nod
e_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9773): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9773): error C2143: syntax error: missing ';' before '*' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\nod
e_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9773): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9773): error C2238: unexpected token(s) preceding ';' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_m
odules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9774): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9774): error C2061: syntax error: identifier 'Address' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_
modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9775): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9775): error C2061: syntax error: identifier 'Address' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_
modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9776): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9776): error C2061: syntax error: identifier 'Address' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_
modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9779): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9779): error C2061: syntax error: identifier 'Address' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_
modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9779): error C2535: 'void v8::V8::MakeWeak(void)': member function already defined or declared (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9776): note: see declaration of 'v8::V8::MakeWeak' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9780): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9780): error C2061: syntax error: identifier 'Address' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_
modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9782): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9782): error C2061: syntax error: identifier 'Address' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_
modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9784): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9784): error C2061: syntax error: identifier 'Address' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_
modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9611): error C2039: 'PointerCompressionIsEnabled': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9611): error C3861: 'PointerCompressionIsEnabled': identifier not found (compiling source file ..\src\robotjs.cc) [C:\project\src\e
lectron\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9612): error C2039: 'SmiValuesAre31Bits': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\s
rc\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9612): error C3861: 'SmiValuesAre31Bits': identifier not found (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\a
pp\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9613): error C2039: 'HeapSandboxIsEnabled': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project
\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9613): error C3861: 'HeapSandboxIsEnabled': identifier not found (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9610): error C2789: 'kBuildConfiguration': an object of const-qualified type must be initialized (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9610): note: see declaration of 'kBuildConfiguration' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9917): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9917): error C2061: syntax error: identifier 'Address' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron\app\node_
modules\robotjs\build\robotjs.vcxproj]
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9918): error C2039: 'Address': is not a member of 'v8::internal' (compiling source file ..\src\robotjs.cc) [C:\project\src\electron
\app\node_modules\robotjs\build\robotjs.vcxproj]
  c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(124): note: see declaration of 'v8::internal' (compiling source file ..\src\robotjs.cc)
c:\users\user\.electron-gyp\10.1.1\include\node\v8.h(9918): fatal error C1003: error count exceeds 100; stopping compilation (compiling source file ..\src\robotjs.cc) [C:\project\src\e
lectron\app\node_modules\robotjs\build\robotjs.vcxproj]
JairusSW commented 3 years ago

Have the same error! Aghh!

JairusSW commented 3 years ago

@octalmage ?

Draginfable commented 3 years ago

As said in this issue https://github.com/octalmage/robotjs/issues/590#issuecomment-78950163, try using the VS Build tools 2017 and having the same node version as the one that electron uses internally.