-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Windows can't build Hello World example #27
Comments
Hey @arturadib, so except for the last one, these are more or less expected:
Yes this is actually expected, and arguably a usability bug in node-gyp. But basically the Windows target generates a
This is also expected. Node renames the resulting shared object to
Again, this is just a Windows-ism of the build system. The same thing happens when building node.exe itself! There is never an
"unknown error", lovely : |
So Problem #4 is fixed by nodejs/node-v0.x-archive#2828. I'll open a new issue to glob for .sln files on Windows, so that the Closing. |
@arturadib Check out nodejs/node-v0.x-archive#2833 which fixes Windows to build addons properly in the |
@TooTallNate Awesome, thanks Nate. I was actually going to ask you about those random files scattered around root :) I suppose this feature will not work when the user has older versions of Node installed, right? (Since as I understand it, node-gyp will download the corresponding minor version source, which won't have the new features in yet). |
@arturadib You're correct about node-gyp downloading the source tarball, however node-gyp also copies over newer versions of the gyp config files when they exist from its "legacy" dir. Eventually this "fixing" hopefully won't be necessary, and node-gyp can just use the node version's gypi files as they come, but for now (at least until 0.8) node-gyp has to do some "cleanup" on the dev files. |
Using MSVC++ Express on Windows 7, Python 2.7, node-gyp v0.1.3 (via npm -g).
Problem happens when trying to build a fresh copy of the Hello World addon from the Node-Gyp page.
The same Hello World example works out-of-the-box on OS X.
Problem 1
At first node-gyp seems to look for a
bindings.gyp
file rather thanbinding.gyp
:Problem 2
If I rename
binding.gyp
tobindings.gyp
then it seems to build OK, except for a warning message concerning a mismatch of extensions (.dll
vs.node
):Problem 3
Since the build was seemingly OK, I tried to run
test.js
, but it complains that there is no binary in./out/Release/binding
. Instead, the binary was produced in./Release/binding
.Problem 4
Fixing the path issue above and running
test.js
again now leads to the following error:I assume this is related to Problem 3 (.dll vs .node)?
Anyway, any help here is much appreciated.
Thanks Nate, for the superb tool.
The text was updated successfully, but these errors were encountered: