stephen / nodetunes

AirTunes v2 Server implementation
215 stars 64 forks source link

node-gyp build error: error C2371, error C2131 #44

Open Rotvig opened 8 years ago

Rotvig commented 8 years ago

Anyone seen this error before?

C:\Users\RRJ\Desktop\New folder>npm i nodetunes
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated react-tools@0.13.3: react-tools is deprecated. For more information, visit https://fb.me/react-tools-deprecated

> libalac@0.1.2 install C:\Users\RRJ\Desktop\New folder\node_modules\libalac
> node-gyp rebuild

C:\Users\RRJ\Desktop\New folder\node_modules\libalac>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  EndianPortable.c
  ALACBitUtilities.c
  ag_dec.c
  ag_enc.c
  dp_dec.c
  dp_enc.c
  matrix_dec.c
  matrix_enc.c
  win_delay_load_hook.c
..\ALAC\codec\ag_enc.c(284): warning C4018: '<': signed/unsigned mismatch [C:\Users\RRJ\Desktop\New folder\node_modules
\libalac\build\binding.vcxproj]
..\ALAC\codec\ag_enc.c(328): warning C4018: '<=': signed/unsigned mismatch [C:\Users\RRJ\Desktop\New folder\node_module
s\libalac\build\binding.vcxproj]
..\ALAC\codec\ag_enc.c(330): warning C4018: '<': signed/unsigned mismatch [C:\Users\RRJ\Desktop\New folder\node_modules
\libalac\build\binding.vcxproj]
..\ALAC\codec\ag_enc.c(335): warning C4018: '<': signed/unsigned mismatch [C:\Users\RRJ\Desktop\New folder\node_modules
\libalac\build\binding.vcxproj]
..\ALAC\codec\ag_dec.c(299): warning C4018: '<': signed/unsigned mismatch [C:\Users\RRJ\Desktop\New folder\node_modules
\libalac\build\binding.vcxproj]
..\ALAC\codec\ag_dec.c(315): warning C4146: unary minus operator applied to unsigned type, result still unsigned [C:\Us
ers\RRJ\Desktop\New folder\node_modules\libalac\build\binding.vcxproj]
..\ALAC\codec\ag_dec.c(333): warning C4018: '<': signed/unsigned mismatch [C:\Users\RRJ\Desktop\New folder\node_modules
\libalac\build\binding.vcxproj]
..\ALAC\codec\ag_dec.c(341): warning C4018: '<=': signed/unsigned mismatch [C:\Users\RRJ\Desktop\New folder\node_module
s\libalac\build\binding.vcxproj]
  ALACDecoder.cpp
  ALACEncoder.cpp
  binding.cc
..\ALAC\codec\ALACEncoder.cpp(438): warning C4805: '==': unsafe mix of type 'uint8_t' and type 'bool' in operation [C:\
Users\RRJ\Desktop\New folder\node_modules\libalac\build\binding.vcxproj]
..\ALAC\codec\ALACEncoder.cpp(442): warning C4805: '==': unsafe mix of type 'uint8_t' and type 'bool' in operation [C:\
Users\RRJ\Desktop\New folder\node_modules\libalac\build\binding.vcxproj]
..\ALAC\codec\ALACEncoder.cpp(686): warning C4805: '==': unsafe mix of type 'uint8_t' and type 'bool' in operation [C:\
Users\RRJ\Desktop\New folder\node_modules\libalac\build\binding.vcxproj]
..\ALAC\codec\ALACEncoder.cpp(690): warning C4805: '==': unsafe mix of type 'uint8_t' and type 'bool' in operation [C:\
Users\RRJ\Desktop\New folder\node_modules\libalac\build\binding.vcxproj]
..\ALAC\codec\ALACEncoder.cpp(920): warning C4805: '==': unsafe mix of type 'uint8_t' and type 'bool' in operation [C:\
Users\RRJ\Desktop\New folder\node_modules\libalac\build\binding.vcxproj]
..\ALAC\codec\ALACEncoder.cpp(924): warning C4805: '==': unsafe mix of type 'uint8_t' and type 'bool' in operation [C:\
Users\RRJ\Desktop\New folder\node_modules\libalac\build\binding.vcxproj]
..\ALAC\codec\ALACEncoder.cpp(1255): warning C4244: '=': conversion from 'alac_float64_t' to 'uint32_t', possible loss
of data [C:\Users\RRJ\Desktop\New folder\node_modules\libalac\build\binding.vcxproj]
C:\Users\RRJ\Desktop\New folder\node_modules\libalac\ALAC\codec\ALACBitUtilities.h(68): error C2371: 'ELEMENT_TYPE': re
definition; different basic types (compiling source file ..\binding.cc) [C:\Users\RRJ\Desktop\New folder\node_modules\l
ibalac\build\binding.vcxproj]
  C:\Program Files (x86)\Windows Kits\8.1\Include\um\winioctl.h(3944): note: see declaration of 'ELEMENT_TYPE' (compili
  ng source file ..\binding.cc)
..\binding.cc(124): error C2131: expression did not evaluate to a constant [C:\Users\RRJ\Desktop\New folder\node_module
s\libalac\build\binding.vcxproj]
  ..\binding.cc(124): note: failure was caused by non-constant arguments or reference to a non-constant symbol
  ..\binding.cc(124): note: see usage of 'cookieSize'
..\binding.cc(196): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [C:\Users\
RRJ\Desktop\New folder\node_modules\libalac\build\binding.vcxproj]
..\binding.cc(216): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data [C:\Users\
RRJ\Desktop\New folder\node_modules\libalac\build\binding.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\RRJ\Desktop\New folder\node_modules\libalac
gyp ERR! node -v v6.3.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok