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

x64 #54

Closed
malixsys opened this issue Apr 16, 2012 · 11 comments
Closed

x64 #54

malixsys opened this issue Apr 16, 2012 · 11 comments

Comments

@malixsys
Copy link
Contributor

I'm trying node-gyp rebuild from the contextify master and get:
(Note: VC++ 2010 and python 2..x are installed)

C:\Source\contextify>node-gyp build -v
info it worked if it ends with ok
verb command 'build' []
verb build args []
verb build type: 'Release'
verb architecture: 'x64'
verb node version: '0.6.14'
verb found first Solution file 'build/binding.sln'
verb could not find "msbuild.exe". guessing location
verb "Release" dir needed to be created? false
spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe [ 'build/binding
.sln',
'/nologo',
'/p:Configuration=Release;Platform=x64' ]
Build started 16/04/2012 5:20:29 PM.
Project "C:\Source\contextify\build\binding.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|x64".
Project "C:\Source\contextify\build\binding.sln" (1) is building "C:\Source\con
textify\build\contextify.vcxproj" (2) on node 1 (default targets).
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform
.Targets(23,7): error MSB8007: The Platform for project 'contextify.vcxproj' is
invalid. Platform='x64'. You may be seeing this message because you are tryin
g to build a project without a solution file, and have specified a non-default
Platform that doesn't exist for this project. [C:\Source\contextify\build\conte
xtify.vcxproj]
Done Building Project "C:\Source\contextify\build\contextify.vcxproj" (default
targets) -- FAILED.

Done Building Project "C:\Source\contextify\build\binding.sln" (default targets
) -- FAILED.

@TooTallNate
Copy link
Contributor

Do you have the Windows 7 SDK installed? http://www.microsoft.com/download/en/details.aspx?displayLang=en&id=8279

Also, once that's installed, be sure to invoke node-gyp from inside the 64-bit Visual Studio Command Prompt! Errors are thrown if you try to build a 64-bit module from any other command prompt.

@malixsys
Copy link
Contributor Author

I have Visual Studio 2010 C++ express...

I get this when using that command prompt:

C:\Source\contextify>node-gyp clean
info it worked if it ends with ok
info done ok

C:\Source\contextify>node-gyp configure
info it worked if it ends with ok
spawn python [ 'C:\Users\malixsys.node-gyp\0.6.14\tools\gyp_addon',
'binding.gyp',
'-IC:\Source\contextify\build\config.gypi',
'-f',
'msvs',
'-G',
'msvs_version=2010' ]
info done ok

C:\Source\contextify>node-gyp build
info it worked if it ends with ok
spawn msbuild [ 'build/binding.sln',
'/clp:Verbosity=minimal',
'/nologo',
'/p:Configuration=Release;Platform=x64' ]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform
.Targets(23,7): error MSB8007: The Platform for project 'contextify.vcxproj' is
invalid. Platform='x64'. You may be seeing this message because you are tryin
g to build a project without a solution file, and have specified a non-default
Platform that doesn't exist for this project. [C:\Source\contextify\build\conte
xtify.vcxproj]
ERR! Error: msbuild failed with exit code: 1
at ChildProcess.onExit (C:\Users...\npm\node_modules\n
ode-gyp\lib\build.js:209:23)
at ChildProcess.emit (events.js:70:17)
at maybeExit (child_process.js:360:16)
at Process.onexit (child_process.js:396:5)
ERR! not ok

@TooTallNate
Copy link
Contributor

@malixsys You also need to install the Windows 7 SDK and open up a Windows 7 64-bit SDK Command Prompt window to compile inside of.

@malixsys
Copy link
Contributor Author

malixsys commented May 9, 2012

@TooTallNate
With SDK command prompt:

C:\Source\contextify>node-gyp clean
info it worked if it ends with ok
info done ok

C:\Source\contextify>node-gyp configure
info it worked if it ends with ok
spawn python [ 'C:\Users\malixsys.node-gyp\0.6.14\tools\gyp_addon',
'binding.gyp',
'-IC:\Source\contextify\build\config.gypi',
'-f',
'msvs',
'-G',
'msvs_version=2010' ]
info done ok

C:\Source\contextify>node-gyp build
info it worked if it ends with ok
spawn msbuild [ 'build/binding.sln',
'/clp:Verbosity=minimal',
'/nologo',
'/p:Configuration=Release;Platform=x64' ]
C:\Source\contextify\build\contextify.vcxproj(1,161): error MSB4066: The attribute "Label" in element is unrecognized.
ERR! Error: msbuild failed with exit code: 1
at ChildProcess.onExit (C:\Users\malixsys\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:209:23)
at ChildProcess.emit (events.js:70:17)
at maybeExit (child_process.js:360:16)
at Process.onexit (child_process.js:396:5)
ERR! not ok

C:\Source\contextify>

@TooTallNate
Copy link
Contributor

@malixsys It looks like this is related: http://stackoverflow.com/a/5108233/376773

@malixsys
Copy link
Contributor Author

malixsys commented May 9, 2012

I'm reinstalling the SDK with .Net 4...

@malixsys
Copy link
Contributor Author

malixsys commented May 9, 2012

Same:
C:\Source\contextify>node-gyp configure
info it worked if it ends with ok
spawn python [ 'C:\Users\malixsys.node-gyp\0.6.14\tools\gyp_addon',
'binding.gyp',
'-IC:\Source\contextify\build\config.gypi',
'-f',
'msvs',
'-G',
'msvs_version=2010' ]
info done ok

C:\Source\contextify>node-gyp build
info it worked if it ends with ok
spawn msbuild [ 'build/binding.sln',
'/clp:Verbosity=minimal',
'/nologo',
'/p:Configuration=Release;Platform=x64' ]
C:\Source\contextify\build\contextify.vcxproj(1,161): error MSB4066: The attribute "Label" in element is unrecognized.
ERR! Error: msbuild failed with exit code: 1
at ChildProcess.onExit (C:\Users\malixsys\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:209:23)
at ChildProcess.emit (events.js:70:17)
at maybeExit (child_process.js:360:16)
at Process.onexit (child_process.js:396:5)
ERR! not ok

@ThomasDeutsch
Copy link

I tryed this on Windows Server 2008 and Windows 7 with Visual Studio Premium 2010 and Python 2.7 installed.

I get the error MSB8007, too. (Platform for the Project is invalid. Platform='x64')

I think that one solution is to switch to a win32 node installation
or to get the compiler-settings to work for 64 bit.

@Paratron
Copy link

Paratron commented Oct 2, 2012

I get the error, too - even with the 32bit version of node installed.
Why is the issue closed?

@TooTallNate
Copy link
Contributor

@Paratron Because I don't have time to debug everybody's configs. Both 32-bit and 64-bit work for me using the Windows download links in the README. So if you have both of those (MSVC Express 2010 and the Windows 7 64-bit SDK) installed and are still having problems, then I accept patches.

@pherris
Copy link

pherris commented Nov 16, 2012

Thx, installing Windows 7 64-bit SDK and using Visual Studio cmd prompt fixed it for me. Cheers.

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

5 participants