Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build on Windows8 x64 #240

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

Cannot build on Windows8 x64 #240

zemd opened this issue Jan 2, 2013 · 2 comments

Comments

@zemd
Copy link

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
Copy link
Author

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
Copy link
Author

zemd commented Jan 6, 2013

Found issue with the same errors #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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants