Giter Site home page Giter Site logo

MSVS 2011 beta doesn't work? about node-gyp HOT 27 CLOSED

 avatar commented on April 28, 2024
MSVS 2011 beta doesn't work?

from node-gyp.

Comments (27)

sminodonte avatar sminodonte commented on April 28, 2024 4

node-gyp build didn't find this library "atlstr.h",..... I'm using MVS 11

from node-gyp.

ianscrivener avatar ianscrivener commented on April 28, 2024 1

500Mb of prerequisites just to run node-gyp on Windows 7 x64.... WTF!

from node-gyp.

TooTallNate avatar TooTallNate commented on April 28, 2024

@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.

 avatar commented on April 28, 2024

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.

TooTallNate avatar TooTallNate commented on April 28, 2024

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.

 avatar commented on April 28, 2024

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.

TooTallNate avatar TooTallNate commented on April 28, 2024

Yup

from node-gyp.

 avatar commented on April 28, 2024

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.

domenic avatar domenic commented on April 28, 2024

Is there a gyp issue we could subscribe to/vote on?

from node-gyp.

 avatar commented on April 28, 2024

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.

 avatar commented on April 28, 2024

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.

domenic avatar domenic commented on April 28, 2024

@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.

 avatar commented on April 28, 2024

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.

 avatar commented on April 28, 2024

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.

domenic avatar domenic commented on April 28, 2024

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.

 avatar commented on April 28, 2024

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.

 avatar commented on April 28, 2024

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.

TooTallNate avatar TooTallNate commented on April 28, 2024

Is there an upstream gyp issue that's tracking this?

from node-gyp.

 avatar commented on April 28, 2024

waiting for https://github.com/svn2github to make http://github.com/svn2github/gyp so I can do the change.

from node-gyp.

 avatar commented on April 28, 2024

https://github.com/Benvie/gyp/commit/800287c6c77303bb50668b8b89513edb2e1cec6a

from node-gyp.

domenic avatar domenic commented on April 28, 2024

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.

TooTallNate avatar TooTallNate commented on April 28, 2024

nodejs/node-v0.x-archive@f90c9ce looks like it might help.

from node-gyp.

JayBeavers avatar JayBeavers commented on April 28, 2024

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.

TooTallNate avatar TooTallNate commented on April 28, 2024

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.

staxmanade avatar staxmanade commented on April 28, 2024

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.

staxmanade avatar staxmanade commented on April 28, 2024

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.

dch avatar dch commented on April 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.