andrew / node-xbox-controller

:video_game: [UNMAINTAINED] Interface for Xbox 360 game controller into Node.js
http://libraries.io/npm/xbox-controller
MIT License
270 stars 49 forks source link

Installation error #24

Closed babeuloula closed 9 years ago

babeuloula commented 9 years ago

Hello, I have a problem with the installation on Windows 7 SP1. I have .NET Framework 2.0 SDK and Visual Studio 2005.

c:\users*.node-gyp\0.10.30\deps\uv\include\uv-private/uv-win.h(240): error C2146: syntax error : missin g ';' before identifier 'srwlock_' [G:\Temp\Node Webkit\node_modules\xbox-controller\node_modules\node-hid\bui ld\binding.sln] c:\users\_.node-gyp\0.10.30\deps\uv\include\uv-private/uv-win.h(240): error C4430: missing type specifie r - int assumed. Note: C++ does not support default-int [G:\Temp\Node Webkit\node_modules\xbox-controller\node modules\node-hid\build\binding.sln] c:\users\**.node-gyp\0.10.30\deps\uv\include\uv-private/uv-win.h(240): error C4430: missing type specifie r - int assumed. Note: C++ does not support default-int [G:\Temp\Node Webkit\node_modules\xbox-controller\node _modules\node-hid\build\binding.sln]

Someone know hox to fix ?

Thanks

divanvisagie commented 9 years ago

Do you have node-gyp installed?

babeuloula commented 9 years ago

No, I had not installed but I just did and I have the same error

divanvisagie commented 9 years ago

@andrew Any ideas?

andrew commented 9 years ago

That's a weird one, does npm install node-hid finish successfully?

babeuloula commented 9 years ago

No, this is all errors with npm install node-hid --save :

npm WARN package.json NW_Compil_Test@0.0.1 No description npm WARN package.json NW_Compil_Test@0.0.1 No repository field. npm WARN package.json NW_Compil_Test@0.0.1 No README data /

node-hid@0.3.2 preinstall G:\Temp\Node Webkit\node_modules\node-hid sh get-hidapi.sh

Cloning into 'hidapi'... remote: Counting objects: 1965, done. remote: Total 1965 (delta 0), reused 0 (delta 0) Receiving objects: 100% (1965/1965), 2.79 MiB | 790.00 KiB/s, done. Resolving deltas: 100% (1082/1082), done. Checking connectivity... done.

node-hid@0.3.2 install G:\Temp\Node Webkit\node_modules\node-hid sh install.sh

gyp info it worked if it ends with ok gyp info using node-gyp@0.13.1 gyp info using node@0.10.30 | win32 | x64 gyp info spawn python gyp info spawn args [ 'g:\Logiciels\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'msvs', gyp info spawn args '-G', gyp info spawn args 'msvs_version=auto', gyp info spawn args '-I', gyp info spawn args 'G:\Temp\Node Webkit\node_modules\node-hid\build\config.gypi', gyp info spawn args '-I', gyp info spawn args 'g:\Logiciels\nodejs\node_modules\npm\node_modules\node-gyp\addon.gypi', gyp info spawn args '-I', gyp info spawn args 'c:\Users\Jérémy.node-gyp\0.10.30\common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=c:\Users\Jérémy.node-gyp\0.10.30', gyp info spawn args '-Dmodule_root_dir=G:\Temp\Node Webkit\node_modules\node-hid', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'G:\Temp\Node Webkit\node_modules\node-hid\build', gyp info spawn args '-Goutput_dir=.' ] gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe gyp info spawn args [ 'build/binding.sln', gyp info spawn args '/clp:Verbosity=minimal', gyp info spawn args '/nologo', gyp info spawn args '/p:Configuration=Release;Platform=x64' ] Génération des projets individuellement dans cette solution. Pour activer la génération en parallèle, ajoutez le commutateur "/m". ..\hidapi\windows\hid.c(633): warning C4267: 'function' : conversion from 'size_t' to 'DWORD', possible loss o f data [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] ..\hidapi\windows\hid.c(676): warning C4267: 'function' : conversion from 'size_t' to 'DWORD', possible loss o f data [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] ..\hidapi\windows\hid.c(730): warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of da ta [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] ..\hidapi\windows\hid.c(746): warning C4267: 'function' : conversion from 'size_t' to 'ULONG', possible loss o f data [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] ..\hidapi\windows\hid.c(752): warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of da ta [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] ..\hidapi\windows\hid.c(774): warning C4267: 'function' : conversion from 'size_t' to 'DWORD', possible loss o f data [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] ..\hidapi\windows\hid.c(775): warning C4267: 'function' : conversion from 'size_t' to 'DWORD', possible loss o f data [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] ..\hidapi\windows\hid.c(816): warning C4267: 'function' : conversion from 'size_t' to 'ULONG', possible loss o f data [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] ..\hidapi\windows\hid.c(829): warning C4267: 'function' : conversion from 'size_t' to 'ULONG', possible loss o f data [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] ..\hidapi\windows\hid.c(842): warning C4267: 'function' : conversion from 'size_t' to 'ULONG', possible loss o f data [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] ..\hidapi\windows\hid.c(855): warning C4267: 'function' : conversion from 'size_t' to 'ULONG', possible loss o f data [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] MSBUILD : warning MSB3422: Impossible de récupérer les informations du projet VC en utilisant le modèle objet du moteur de projet VC. Le projet se compose uniquement de configurations qui nécessitent une prise en charge de plates-formes qui ne sont pas installées sur cet ordinateur. Impossible de charger le projet. [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] MSBUILD : warning MSB3425: Impossible de résoudre la référence du projet VC "G:\Temp\Node Webkit\node_modules\ node-hid\build\hidapi.vcproj". [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xlocale(326): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [G:\Temp\Node Webkit\node_modules\node-hid\build\bi nding.sln] C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xlocale(341): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [G:\Temp\Node Webkit\node_modules\node-hid\build\bi nding.sln] C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xlocale(358): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [G:\Temp\Node Webkit\node_modules\node-hid\build\bi nding.sln] C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\istream(1075): warning C4530: C++ exception handle r used, but unwind semantics are not enabled. Specify /EHsc [G:\Temp\Node Webkit\nodemodules\node-hid\build\b inding.sln] c:\users\jérémy.node-gyp\0.10.30\deps\uv\include\uv-private/uv-win.h(240): error C2146: syntax error : missin g ';' before identifier 'srwlock' [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] c:\users\jérémy.node-gyp\0.10.30\deps\uv\include\uv-private/uv-win.h(240): error C4430: missing type specifie r - int assumed. Note: C++ does not support default-int [G:\Temp\Node Webkit\node_modules\node-hid\build\bindi ng.sln] c:\users\jérémy.node-gyp\0.10.30\deps\uv\include\uv-private/uv-win.h(240): error C4430: missing type specifie r - int assumed. Note: C++ does not support default-int [G:\Temp\Node Webkit\node_modules\node-hid\build\bindi ng.sln] ..\src\HID.cc(66): warning C4290: C++ exception specification ignored except to indicate a function is not d eclspec(nothrow) [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] ..\src\HID.cc(69): warning C4290: C++ exception specification ignored except to indicate a function is not __d eclspec(nothrow) [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] ..\src\HID.cc(149): warning C4290: C++ exception specification ignored except to indicate a function is not declspec(nothrow) [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] ..\src\HID.cc(160): warning C4290: C++ exception specification ignored except to indicate a function is not __ declspec(nothrow) [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] ..\src\HID.cc(203): warning C4267: 'argument' : conversion from 'size_t' to 'int32_t', possible loss of data [ G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] ..\src\HID.cc(349): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify / EHsc [G:\Temp\Node Webkit\node_modules\node-hid\build\binding.sln] ..\src\HID.cc(436): warning C4244: 'argument' : conversion from 'wchar_t' to 'char', possible loss of data [G: \Temp\Node Webkit\node_modules\node-hid\build\binding.sln] gyp ERR! build error gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (g:\Logiciels\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "g:\Logiciels\nodejs\node.exe" "g:\Logiciels\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "build" "install" gyp ERR! cwd G:\Temp\Node Webkit\node_modules\node-hid gyp ERR! node -v v0.10.30 gyp ERR! node-gyp -v v0.13.1 gyp ERR! not ok npm ERR! node-hid@0.3.2 install: sh install.sh npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-hid@0.3.2 install script. npm ERR! This is most likely a problem with the node-hid package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! sh install.sh npm ERR! You can get their info via: npm ERR! npm owner ls node-hid npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "G:\Logiciels\nodejs\node.exe" "G:\Logiciels\nodejs\node_modules\npm\bin\npm-cli.js" "install" "node-hid" "--save" npm ERR! cwd G:\Temp\Node Webkit npm ERR! node -v v0.10.30 npm ERR! npm -v 1.4.21 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! G:\Temp\Node Webkit\npm-debug.log npm ERR! not ok code 0

andrew commented 9 years ago

Not really sure how to fix that, might be worth opening an issue on node-hid: https://github.com/node-hid/node-hid/issues

babeuloula commented 9 years ago

This is an inconsistency with node webkit 0.11. *. It works 0.9.2. I think the subject is closed. I'll try with version 0.9.2.

https://github.com/node-hid/node-hid/issues/57