nwjs / nw-gyp

native addon build tool for node-webkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NW-GYP not recognising Visual Studio 2015 as a valid build tool on Windows 10

jpcharlesworth opened this issue · comments

I have been investigating at some length why I cannot build sqlite 3 for Node-Webkit on Windows 10.

I have installed Visual Studio Community Version with C++ but nw-gyp does not recognise GYP_MSVS_VERSION=2015 as referring to a valid version; see attached file MSVSVersionError.txt.
MSVSVersionError.txt

I looked in the code on the nw-gyp repository and it appears that there have been no commits for 2 years, so clearly no changes have been made to accommodate VS2015.
MSVSVersionError.txt

👍 for this. Building against 0.13 betas requires MSVS 2015 compliments V8, but at present nw-gyp doesn't support it. Seeing the same errors.

There is a pull request that fix this for non-enterprise editions. I use the 2015 Enterprise Edition and had to add another value in the versions object (in this file).

'2015e': VisualStudioVersion('2015', 'Visual Studio 2015', solution_version='12.00', project_version='14.0', flat_sln=False, uses_vcxproj=True, path=path, sdk_based=sdk_based, default_toolset='v140'),

Also added this in the version_map:

'2015e': ('14.0',),

It should be fixed by our latest release of nw-gyp.