Cannot build on Windows8 x64 #240

Closed
zemd opened this Issue Jan 2, 2013 · 2 comments

Comments

Projects
None yet
2 participants

zemd commented Jan 2, 2013

Installed on windows 8 x32 first and it is ok. After that tried to install on win8 x64(with nodejs x64), and it is fails with error:

  init.cc
c:\users\dmitry\.node-gyp\0.8.16\deps\uv\include\ares.h(49): fatal error C1083:
 Cannot open include file: 'winsock2.h': No such file or directory [E:\dev\node
js\node_modules\canvas\build\canvas.vcxproj]
c:\users\dmitry\.node-gyp\0.8.16\deps\uv\include\ares.h(49): fatal error C1083:
 Cannot open include file: 'winsock2.h': No such file or directory [E:\dev\node
js\node_modules\canvas\build\canvas.vcxproj]
  Image.cc
  CanvasGradient.cc
c:\users\dmitry\.node-gyp\0.8.16\deps\uv\include\ares.h(49): fatal error C1083:
 Cannot open include file: 'winsock2.h': No such file or directory [E:\dev\node
js\node_modules\canvas\build\canvas.vcxproj]
c:\users\dmitry\.node-gyp\0.8.16\deps\uv\include\ares.h(49): fatal error C1083:
 Cannot open include file: 'winsock2.h': No such file or directory [E:\dev\node
js\node_modules\canvas\build\canvas.vcxproj]
c:\users\dmitry\.node-gyp\0.8.16\deps\uv\include\ares.h(49): fatal error C1083:
 Cannot open include file: 'winsock2.h': No such file or directory [E:\dev\node
js\node_modules\canvas\build\canvas.vcxproj]
c:\users\dmitry\.node-gyp\0.8.16\deps\uv\include\ares.h(49): fatal error C1083:
 Cannot open include file: 'winsock2.h': No such file or directory [E:\dev\node
js\node_modules\canvas\build\canvas.vcxproj]
c:\users\dmitry\.node-gyp\0.8.16\deps\uv\include\ares.h(49): fatal error C1083:
 Cannot open include file: 'winsock2.h': No such file or directory [E:\dev\node
js\node_modules\canvas\build\canvas.vcxproj]
c:\users\dmitry\.node-gyp\0.8.16\deps\uv\include\ares.h(49): fatal error C1083:
 Cannot open include file: 'winsock2.h': No such file or directory [E:\dev\node
js\node_modules\canvas\build\canvas.vcxproj]

Before that installed: VS 2012, WinSDK(http://msdn.microsoft.com/en-us/windows/hardware/hh852363.aspx)

When I open canvas.vcxproj with visual studio - it shows winsock2.h in dependancies tree and I can view its content, but while compilation fails with several errors.

zemd commented Jan 6, 2013

Tried to execute install command with --msvs-version=2012 (npm -g install canvas --msvs-version=2012) and now I have another error:
cmd

If I use --msvs-version=2010 there are errors like in first post.

zemd commented Jan 6, 2013

Found issue with the same errors LearnBoost#214
Installing GTK 64 fixed compilation problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment