Build failed Windows 10 x64 Node 10
Opened this issue · 1 comments
sigmasoldi3r commented
When running npm install node-qt
the compilation stop with this message:
C1003: error count exceeds 100; stopping compilation
Output (Not all shown, whole console buffer is filled up):
[...]
..\src\QtTest\qtesteventlist.cc(90): error C2275: 'QTestEventListWrap': illegal use of this type as an expression [f:\node-qt-hello-world\node_modules\node-q
t\build\qt.vcxproj]
..\src\QtTest\qtesteventlist.cc(90): fatal error C1003: error count exceeds 100; stopping compilation [f:\node-qt-hello-world\node_modules\node-qt\build\qt.v
cxproj]
gyp ERR! build error
Node version v10.7.0
NPM version 6.4.1
Visual Studio 2017
Windows 10 x64
liudonghua123 commented
I have the similar issue.
C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo>npm install node-qt -S
npm WARN npm npm does not support Node.js v12.2.0
npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11. npm WARN npm You can find the latest version at https://nodejs.org/
> node-qt@0.0.2 install C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\node-qt
> node-gyp rebuild
C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\node-qt>if not defined npm_config_node_gyp (node "C:\Users\Liu.D. H\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\Liu.D.H\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.
qt.cc
qsize.cc
qpointf.cc
qapplication.cc
qwidget.cc
qmouseevent.cc
qkeyevent.cc
qpixmap.cc
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtgui\qkeyevent.cc(30): warning C4005: 'BUILDING_NOD
E_EXTENSION': macro redefinition [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\node-qt\build\qt.vcxproj]
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtgui\qkeyevent.cc(30): note: command-line argumen ts: see previous definition of 'BUILDING_NODE_EXTENSION'
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtgui\qpixmap.cc(30): warning C4005: 'BUILDING_NODE_ EXTENSION': macro redefinition [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\node-qt\build\qt.vcxproj] c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtgui\qpixmap.cc(30): note: command-line arguments : see previous definition of 'BUILDING_NODE_EXTENSION'
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtcore\qpointf.cc(30): warning C4005: 'BUILDING_NODE _EXTENSION': macro redefinition [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\node-qt\build\qt.vcxproj] c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtcore\qpointf.cc(30): note: command-line argument s: see previous definition of 'BUILDING_NODE_EXTENSION'
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtgui\qmouseevent.cc(30): warning C4005: 'BUILDING_N ODE_EXTENSION': macro redefinition [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\node-qt\build\qt.vcxproj] c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtgui\qmouseevent.cc(30): note: command-line argum ents: see previous definition of 'BUILDING_NODE_EXTENSION'
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtcore\qsize.cc(30): warning C4005: 'BUILDING_NODE_E XTENSION': macro redefinition [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\node-qt\build\qt.vcxproj]
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtcore\qsize.cc(30): note: command-line arguments: see previous definition of 'BUILDING_NODE_EXTENSION'
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qt.cc(30): warning C4005: 'BUILDING_NODE_EXTENSION': macro redefinition [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\node-qt\build\qt.vcxproj]
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qt.cc(30): note: command-line arguments: see prev ious definition of 'BUILDING_NODE_EXTENSION'
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtgui\qapplication.cc(30): warning C4005: 'BUILDING_ NODE_EXTENSION': macro redefinition [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\node-qt\build\qt.vcxproj] c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtgui\qapplication.cc(30): note: command-line argu ments: see previous definition of 'BUILDING_NODE_EXTENSION'
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtgui\qwidget.cc(30): warning C4005: 'BUILDING_NODE_ EXTENSION': macro redefinition [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\node-qt\build\qt.vcxproj] c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtgui\qwidget.cc(30): note: command-line arguments : see previous definition of 'BUILDING_NODE_EXTENSION'
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtcore\qsize.h(37): error C2039: 'ObjectWrap': is no
t a member of 'node' (compiling source file ..\src\QtCore\qsize.cc)c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modul
es\node-qt\src\qtcore\qpointf.h(37): error C2039: 'ObjectWrap': is not a member of 'node' (compiling source file ..\src \QtCore\qpointf.cc) [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\node-qt\build\qt.vcxproj]
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtcore\qsize.h(37): error C2039: 'ObjectWrap': is no t a member of 'node' (compiling source file ..\src\qt.cc) [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\node- qt\build\qt.vcxproj]
c:\users\liu.d.h\.node-gyp\12.2.0\include\node\node.h(202): note: see declaration of 'node' (compiling source file .. \src\QtCore\qsize.cc)c:\users\liu.d.h\.node-gyp\12.2.0\include\node\node.h(202): note: see declaration of 'node' (com piling source file ..\src\qt.cc)c:\users\liu.d.h\.node-gyp\12.2.0\include\node\node.h(202): note: see declaration of 'node' (compiling source file ..\src\QtCore\qpointf.cc)
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtcore\qsize.h(37): error C2504: 'ObjectWrap': base class undefined (compiling source file ..\src\QtCore\qsize.cc) [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\
node-qt\build\qt.vcxproj]
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtcore\qsize.h(37): error C2504: 'ObjectWrap': base class undefined (compiling source file ..\src\qt.cc) [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\node-qt\bu ild\qt.vcxproj]
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtcore\qpointf.h(37): error C2504: 'ObjectWrap': bas
e class undefined (compiling source file ..\src\QtCore\qpointf.cc) [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modu les\node-qt\build\qt.vcxproj]
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtcore\qsize.h(39): error C2039: 'Handle': is not a member of 'v8' (compiling source file ..\src\QtCore\qsize.cc)c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\nod e-qt\src\qtcore\qsize.h(39): error C2039: 'Handle': is not a member of 'v8' (compiling source file ..\src\qt.cc) [C:\Us ers\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\node-qt\build\qt.vcxproj]
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtcore\qpointf.h(39): error C2039: 'Handle': is not a member of 'v8' (compiling source file ..\src\QtCore\qpointf.cc) [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modul es\node-qt\build\qt.vcxproj]
c:\users\liu.d.h\.node-gyp\12.2.0\include\node\v8-platform.h(16): note: see declaration of 'v8' (compiling source fil e ..\src\QtCore\qsize.cc)c:\users\liu.d.h\.node-gyp\12.2.0\include\node\v8-platform.h(16): note: see declaration of ' v8' (compiling source file ..\src\qt.cc)
c:\users\liu.d.h\.node-gyp\12.2.0\include\node\v8-platform.h(16): note: see declaration of 'v8' (compiling source fil e ..\src\QtCore\qpointf.cc)
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtcore\qsize.h(39): error C2061: syntax error: ident ifier 'Handle' (compiling source file ..\src\QtCore\qsize.cc) [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\n ode-qt\build\qt.vcxproj]
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtcore\qsize.h(39): error C2061: syntax error: ident ifier 'Handle' (compiling source file ..\src\qt.cc) [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\node-qt\bui ld\qt.vcxproj]
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtcore\qpointf.h(39): error C2061: syntax error: ide ntifier 'Handle' (compiling source file ..\src\QtCore\qpointf.cc) [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modul es\node-qt\build\qt.vcxproj]
c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtcore\qsize.h(40): error C2039: 'Handle': is not a member of 'v8' (compiling source file ..\src\qt.cc)c:\users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\q tcore\qpointf.h(45): error C2039: 'Handle': is not a member of 'v8' (compiling source file ..\src\QtCore\qpointf.cc)c:\ users\liu.d.h\desktop\tmp\node-qt-demo\node_modules\node-qt\src\qtcore\qsize.h(40): error C2039: 'Handle': is not a mem ber of 'v8' (compiling source file ..\src\QtCore\qsize.cc) [C:\Users\Liu.D.H\Desktop\tmp\node-qt-demo\node_modules\node -qt\build\qt.vcxproj]
......