Cant build on x64 platform #67

Closed
elarcent opened this Issue Aug 30, 2012 · 3 comments

Projects

None yet

2 participants

@elarcent

I'm receiving the following error, when trying to build the driver:

C:\dev\WindowsAzure-node-sqlserver>node-gyp build
gyp info it worked if it ends with ok
gyp info using node-gyp@0.6.8
gyp info using node@0.8.8 | win32 | x64
gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/property:TargetExt=.node',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform
.Targets(23,7): error MSB8007: The Platform for project 'sqlserver.vcxproj' is
invalid.  Platform='x64'. You may be seeing this message because you are trying
 to build a project without a solution file, and have specified a non-default P
latform that doesn't exist for this project. [C:\dev\WindowsAzure-node-sqlserve
r\build\sqlserver.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\DG\AppData\Roaming\npm\node_
modules\node-gyp\lib\build.js:219:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! stack     at Process._handle.onexit (child_process.js:674:10)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Users\\DG\\AppData\\Roaming\\npm\\node_modules\\nod
e-gyp\\bin\\node-gyp.js" "build"
gyp ERR! cwd C:\dev\WindowsAzure-node-sqlserver
gyp ERR! node -v v0.8.8
gyp ERR! node-gyp -v v0.6.8
gyp ERR! not ok```
@elarcent

I managed to build by installing Windows 7 SDK http://www.microsoft.com/download/en/details.aspx?displayLang=en&id=8279, required for node-gyp(so it's not just npm install node-gyp now). Installing the SDK, in turn, can be very tricky if you've got latest VC++ 2010 redistributable installed(installed automatically via windows update). SDK installation will fail until you uninstall latest version of the redistributable.

@jguerin

So, did the Windows SDK resolve your issue....?

@elarcent

Yes, and I believe installation instructions should be updated with that. Also one will have to compile from SDK Command Prompt in order to build on x64 platform, otherwise the error is still thrown

@elarcent elarcent closed this Aug 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment