Comments (27)
node-gyp build didn't find this library "atlstr.h",..... I'm using MVS 11
from node-gyp.
500Mb of prerequisites just to run node-gyp on Windows 7 x64.... WTF!
from node-gyp.
@gedw99 Is there somewhere to download a free version of the 2011 beta so I can test this out? gyp
itself may or may not support version 2011 yet, but if I could get my hands on it I could try test it.
from node-gyp.
http://www.microsoft.com/visualstudio/11/en-us/downloads
is here
:)
gerard
On 25 March 2012 21:32, Nathan Rajlich <
[email protected]
wrote:
@gedw99 Is there somewhere to download a free version of the 2011 beta so
I can test this out?gyp
itself may or may not support version 2011 yet,
but if I could get my hands on it I could try test it.
Reply to this email directly or view it on GitHub:
#44 (comment)
from node-gyp.
Ok so it looks like gyp
doesn't yet support version 2011. This is what I get:
spawn python [ 'C:\\Documents and Settings\\Administrator\\.node-gyp\\0.6.12\\tools\\gyp_addon',
'binding.gyp',
'-IC:\\Documents and Settings\\Administrator\\My Documents\\node-weak\\build\\config.gypi',
'-f',
'msvs',
'-G',
'msvs_version=2011' ]
Traceback (most recent call last):
File "C:\Documents and Settings\Administrator\.node-gyp\0.6.12\tools\gyp_addon", line 38, in <module>
rc = gyp.main(gyp_args)
File "C:\Documents and Settings\Administrator\.node-gyp\0.6.12\tools\gyp\pylib\gyp\__init__.py", line 471, in main
options.circular_check)
File "C:\Documents and Settings\Administrator\.node-gyp\0.6.12\tools\gyp\pylib\gyp\__init__.py", line 79, in Load
generator.CalculateVariables(default_variables, params)
File "C:\Documents and Settings\Administrator\.node-gyp\0.6.12\tools\gyp\pylib\gyp\generator\msvs.py", line 1657, in C
alculateVariables
generator_flags.get('msvs_version', 'auto'))
File "C:\Documents and Settings\Administrator\.node-gyp\0.6.12\tools\gyp\pylib\gyp\MSVSVersion.py", line 264, in Selec
tVisualStudioVersion
return _CreateVersion(version)
File "C:\Documents and Settings\Administrator\.node-gyp\0.6.12\tools\gyp\pylib\gyp\MSVSVersion.py", line 188, in _Crea
teVersion
return versions[str(name)]
KeyError: '2011'
So for now you have to install 2010, and/or wait for the gyp
devs to add 2011 support.
from node-gyp.
ok so its pass the buck time to the gyp people ?
G
On 25 March 2012 22:42, Nathan Rajlich <
[email protected]
wrote:
Ok so it looks like
gyp
doesn't yet support version 2011. This is what I
get:spawn python [ 'C:\\Documents and Settings\\Administrator\\.node-gyp\\0.6.12\\tools\\gyp_addon', 'binding.gyp', '-IC:\\Documents and Settings\\Administrator\\My Documents\\node-weak\\build\\config.gypi', '-f', 'msvs', '-G', 'msvs_version=2011' ] Traceback (most recent call last): File "C:\Documents and Settings\Administrator\.node-gyp\0.6.12\tools\gyp_addon", line 38, in <module> rc = gyp.main(gyp_args) File "C:\Documents and Settings\Administrator\.node-gyp\0.6.12\tools\gyp\pylib\gyp\__init__.py", line 471, in main options.circular_check) File "C:\Documents and Settings\Administrator\.node-gyp\0.6.12\tools\gyp\pylib\gyp\__init__.py", line 79, in Load generator.CalculateVariables(default_variables, params) File "C:\Documents and Settings\Administrator\.node-gyp\0.6.12\tools\gyp\pylib\gyp\generator\msvs.py", line 1657, in C alculateVariables generator_flags.get('msvs_version', 'auto')) File "C:\Documents and Settings\Administrator\.node-gyp\0.6.12\tools\gyp\pylib\gyp\MSVSVersion.py", line 264, in Selec tVisualStudioVersion return _CreateVersion(version) File "C:\Documents and Settings\Administrator\.node-gyp\0.6.12\tools\gyp\pylib\gyp\MSVSVersion.py", line 188, in _Crea teVersion return versions[str(name)] KeyError: '2011'
Reply to this email directly or view it on GitHub:
#44 (comment)
from node-gyp.
Yup
from node-gyp.
i went back to VS 10, but good to know if does not work so the gyp people
can fix it before vs11 become too mainstream
g
On 25 March 2012 22:43, Nathan Rajlich <
[email protected]
wrote:
Yup
Reply to this email directly or view it on GitHub:
#44 (comment)
from node-gyp.
Is there a gyp issue we could subscribe to/vote on?
from node-gyp.
I think this may fix it: http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/0f6aef3d-9778-47fe-a70d-4c9c6bd106e3/
process.env.VisualStudioVersion = "11.0"
from node-gyp.
Ahah I got it. Quick hack that does it. Line 2398 of gyp/pylib/generator/msvs.py
_AddConditionalProperty(properties, condition, 'PlatformToolset', 'v110')
from node-gyp.
@Benvie, @TooTallNate What's the status these days?
Looking near the line you cited above, the closest I could find was http://code.google.com/p/gyp/source/browse/trunk/pylib/gyp/generator/msvs.py#2459 which seems to support configuring the value of 'PlatformToolset'
in some way. Could node-gyp use this to become VS2012 compatible?
from node-gyp.
Almost, looks like it should go on line 2450 in the global props. The way I determined it was by looking at what was near where <PlatformToolset>v100</PlatformToolset>
is inserted by the default MS generator, and it lives right next to 'ConfigurationType' and 'CharacterSet'.
from node-gyp.
Oh and yeah I have sucesssfully compiled both Node itself and modules using node-gyp with VS2012 with only this change being required to make it work.
from node-gyp.
Hmm, I think I am too much of a gyp noob to know what line 2450 in the global props means. Basically, how can I get this working? And what patches would one of us have to submit to get it working out of the box, for everyone? :)
from node-gyp.
Also MozillaBuild has a launcher for the newer platform now as well. I think it's included in the latest release: http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-Latest.exe. If not, it's just the two .bat files which are somewhere on there or I can post them if anyone needs them.
from node-gyp.
You can paste the line in entirety. Should work if you stick it on its own line before the 'ConfigurationType' line on 2450. It's verbose but once its in there you'll see it's almost the same as code as the other two lines, so that helps confirm you're doing it right.
from node-gyp.
Is there an upstream gyp issue that's tracking this?
from node-gyp.
waiting for https://github.com/svn2github to make http://github.com/svn2github/gyp so I can do the change.
from node-gyp.
https://github.com/Benvie/gyp/commit/800287c6c77303bb50668b8b89513edb2e1cec6a
from node-gyp.
I just looked at it again. Isn't the point of the line
_AddConditionalProperty(properties, condition, 'PlatformToolset', msbuild_attributes['PlatformToolset'])
to allow us, the gyp users, to set the correct toolset version, by setting msbuild_attributes
? Couldn't node-gyp to detection on installation of which compilers are available, and set the correct msbuild_attributes
? (Somehow?)
We unfortunately can't make VS11 the default yet, because there's no Express (free) edition for non-Metro development yet
from node-gyp.
nodejs/node-v0.x-archive@f90c9ce looks like it might help.
from node-gyp.
I have validated that I am unable to install nodejs from git clone with just Visual Studio 2012 Express for Windows Desktop installed. It complains that the vcxproj files are generated for tooling v100 (e.g. VC++ 2010). The first failure I see is that deps\cares.vcxproj.
from node-gyp.
Guys, Windows 8 and MSVC 2012 support just landed in 63a3426 (v0.7.2 release). If somebody could try it out and verify that it works, that would rock!
from node-gyp.
I just tried to npm install tobi
and received an error probably related to this thread. Is there a way you can instruct a node noob to configure tobi (or one of it's depencencies) to use the latest/greatest node-gyp? (including your most recent change-set)...
from node-gyp.
Ah, so it's the 'contextify' project that's raising the error...
> [email protected] install C:\Code\temp\3\node_modules\contextify
> node-gyp rebuild
C:\Code\temp\3\node_modules\contextify>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.targets(34,5): error MSB8020: The builds tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install Visual Studio 2010 to build using the Visual Studio 2010 build tools. [C:\Code\temp\3\node_modules\contextify\build\contextify.vcxproj]
from node-gyp.
Is there a reason you are not targeting SDK 7.1 as a baseline and avoiding the VS20* licencing and complexity entirely? Apologies if this has been discussed ad nauseam elsewhere.
I still need to test on a clean box but checks on my dev machine suggest at least for some modules I quickly tested, the compilation is fine (e.g. serialport, bcrypt, time) time, of course won't work on windows but it does compile at least!
from node-gyp.
Related Issues (20)
- msvs_version option seems ineffectual in selecting correct msbuild.exe HOT 4
- node-gyp keep downloading header even there is cache
- M2 yarn install failed? HOT 4
- Why gyp is using unofficial-builds.nodejs.org to download node-headers ? HOT 1
- cannot install better-sqlite3 HOT 2
- Mutable default arguments in Python code HOT 1
- tar.Extract is not a function HOT 2
- find-python broke with 18.20.0 (?) on ARM HOT 5
- gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe ENOENT
- [Request] Upgrade tar to v6.2.1 HOT 6
- test/test-find-visualstudio.js may fail on Windows on ARM
- complie_commands.json generated by node-gyp doesn't be in clangd search path. HOT 6
- generate compile_commands.json automatically
- Generate .gitignore and .hgignore in build
- Customize default generator
- error when using node-gyp from yarn command HOT 3
- node-gyp `binding.gyp not found` error HOT 1
- some suggestions about node-gyp build command
- error saat menjalankan "npm install imagemin-webpack-plugin [email protected] --save-dev" HOT 2
- Install of local node packages fails for node-gyp with error "Cannot assign to read only property 'cflags' of object" HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-gyp.