InstantWebP2P / nodejs-httpp

Run HTTP over UDP with Node.js
Other
145 stars 25 forks source link

Unable to build on windows with VS 2013 #10

Closed kambeena closed 9 years ago

kambeena commented 9 years ago

I am not able to build with Visual studio 2013 with VC v12. I get lots of error in win32-math.h and math.h. Do I have to install VS 2010?

sequoiar commented 9 years ago

I never try build with 2013. what's the failure screenshot?

kambeena commented 9 years ago

Here i sthe screen shot. I still get same error if I change mcvs=2012 in configure file.

C:\tools\node-httpp\node-httpp-0.8-httpp>vcbuild.bat { 'target_defaults': { 'cflags': [], 'default_configuration': 'Release', 'defines': [], 'include_dirs': [], 'libraries': []}, 'variables': { 'clang': 0, 'host_arch': 'ia32', 'node_install_npm': 'true', 'node_install_waf': 'true', 'node_prefix': '', 'node_shared_openssl': 'false', 'node_shared_v8': 'false', 'node_shared_zlib': 'false', 'node_tag': '', 'node_unsafe_optimizations': 0, 'node_use_dtrace': 'false', 'node_use_etw': 'true', 'node_use_openssl': 'true', 'target_arch': 'ia32', 'v8_no_strict_aliasing': 1, 'v8_use_snapshot': 'true', 'visibility': ''}} creating config.gypi creating config.mk Traceback (most recent call last): File "tools/gyp_node", line 58, in run_gyp(gyp_args) File "tools/gyp_node", line 18, in run_gyp rc = gyp.main(args) File ".\tools\gyp\pylib\gypinit.py", line 511, in main return gyp_main(args) File ".\tools\gyp\pylib\gypinit.py", line 494, in gyp_main options.circular_check) File ".\tools\gyp\pylib\gypinit.py", line 101, in Load generator.CalculateVariables(default_variables, params) File ".\tools\gyp\pylib\gyp\generator\msvs.py", line 1696, in CalculateVariabl es generator_flags.get('msvs_version', 'auto')) File ".\tools\gyp\pylib\gyp\MSVSVersion.py", line 346, in SelectVisualStudioVe rsion versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)

KeyError: '2013' Project files generated. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t argets(64,5): error MSB8020: The build tools for Visual Studio 2012 (Platform T oolset = 'v110') cannot be found. To build using the v110 build tools, please i nstall Visual Studio 2012 build tools. Alternatively, you may upgrade to the c urrent Visual Studio tools by selecting the Project menu or right-click the sol ution, and then selecting "Upgrade Solution...". [C:\tools\node-httpp\node-http p-0.8-httpp\deps\v8\tools\gyp\js2c.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t argets(64,5): error MSB8020: The build tools for Visual Studio 2012 (Platform T oolset = 'v110') cannot be found. To build using the v110 build tools, please i nstall Visual Studio 2012 build tools. Alternatively, you may upgrade to the c urrent Visual Studio tools by selecting the Project menu or right-click the sol ution, and then selecting "Upgrade Solution...". [C:\tools\node-httpp\node-http p-0.8-httpp\node_dtrace_header.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t argets(64,5): error MSB8020: The build tools for Visual Studio 2012 (Platform T oolset = 'v110') cannot be found. To build using the v110 build tools, please i nstall Visual Studio 2012 build tools. Alternatively, you may upgrade to the c urrent Visual Studio tools by selecting the Project menu or right-click the sol ution, and then selecting "Upgrade Solution...". [C:\tools\node-httpp\node-http p-0.8-httpp\deps\http_parser\http_parser.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t argets(64,5): error MSB8020: The build tools for Visual Studio 2012 (Platform T oolset = 'v110') cannot be found. To build using the v110 build tools, please i nstall Visual Studio 2012 build tools. Alternatively, you may upgrade to the c urrent Visual Studio tools by selecting the Project menu or right-click the sol ution, and then selecting "Upgrade Solution...". [C:\tools\node-httpp\node-http p-0.8-httpp\node_dtrace_ustack.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t argets(64,5): error MSB8020: The build tools for Visual Studio 2012 (Platform T oolset = 'v110') cannot be found. To build using the v110 build tools, please i nstall Visual Studio 2012 build tools. Alternatively, you may upgrade to the c urrent Visual Studio tools by selecting the Project menu or right-click the sol ution, and then selecting "Upgrade Solution...". [C:\tools\node-httpp\node-http p-0.8-httpp\node_etw.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t argets(64,5): error MSB8020: The build tools for Visual Studio 2012 (Platform T oolset = 'v110') cannot be found. To build using the v110 build tools, please i nstall Visual Studio 2012 build tools. Alternatively, you may upgrade to the c urrent Visual Studio tools by selecting the Project menu or right-click the sol ution, and then selecting "Upgrade Solution...". [C:\tools\node-httpp\node-http p-0.8-httpp\node_js2c.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t argets(64,5): error MSB8020: The build tools for Visual Studio 2012 (Platform T oolset = 'v110') cannot be found. To build using the v110 build tools, please i nstall Visual Studio 2012 build tools. Alternatively, you may upgrade to the c urrent Visual Studio tools by selecting the Project menu or right-click the sol ution, and then selecting "Upgrade Solution...". [C:\tools\node-httpp\node-http p-0.8-httpp\node_dtrace_provider.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t argets(64,5): error MSB8020: The build tools for Visual Studio 2012 (Platform T oolset = 'v110') cannot be found. To build using the v110 build tools, please i nstall Visual Studio 2012 build tools. Alternatively, you may upgrade to the c urrent Visual Studio tools by selecting the Project menu or right-click the sol ution, and then selecting "Upgrade Solution...". [C:\tools\node-httpp\node-http p-0.8-httpp\deps\openssl\openssl.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t argets(64,5): error MSB8020: The build tools for Visual Studio 2012 (Platform T oolset = 'v110') cannot be found. To build using the v110 build tools, please i nstall Visual Studio 2012 build tools. Alternatively, you may upgrade to the c urrent Visual Studio tools by selecting the Project menu or right-click the sol ution, and then selecting "Upgrade Solution...". [C:\tools\node-httpp\node-http p-0.8-httpp\deps\uv\uv.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t argets(64,5): error MSB8020: The build tools for Visual Studio 2012 (Platform T oolset = 'v110') cannot be found. To build using the v110 build tools, please i nstall Visual Studio 2012 build tools. Alternatively, you may upgrade to the c urrent Visual Studio tools by selecting the Project menu or right-click the sol ution, and then selecting "Upgrade Solution...". [C:\tools\node-httpp\node-http p-0.8-httpp\deps\v8\tools\gyp\v8_base.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t argets(64,5): error MSB8020: The build tools for Visual Studio 2012 (Platform T oolset = 'v110') cannot be found. To build using the v110 build tools, please i nstall Visual Studio 2012 build tools. Alternatively, you may upgrade to the c urrent Visual Studio tools by selecting the Project menu or right-click the sol ution, and then selecting "Upgrade Solution...". [C:\tools\node-httpp\node-http p-0.8-httpp\deps\zlib\zlib.vcxproj]

C:\tools\node-httpp\node-httpp-0.8-httpp>

No9 commented 9 years ago

OK I have seen similar issues else where Please make sure you have all the latest service packs for your visual studio.

After that please make sure you run

set GYP_MSVS_VERSION=2012

In the same console before doing the install. Please try and let me know how you get on.

kambeena commented 9 years ago

Thanks No9. I tried setting GYP_MSVS_VERSION. Not working. I drooped idea of compiling with VS 2013. I am using 2010 version but getting following? Any idea? C:\tools\UDT_solutions\node-httpp\node-httpp-0.8-httpp\node.sln.metaproj : error MSB4126: The speci fied solution configuration "Release|Any CPU" is invalid. Please specify a valid solution configura tion using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuratio n=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configur ation. [C:\tools\UDT_solutions\node-httpp\node-httpp-0.8-httpp\node.sln]

kambeena commented 9 years ago

I found the problem. There was a platform environment variable which was interfering. I removed it and project got build. But I think again I got stuck in creating msi.

vcbuild.bat release msi

error:

SignTool Error: No certificates were found that met all the given criteria. C:\tools\UDT_solutions\node-httpp\node-httpp-0.8-httpp\tools\msvs\msi\nodemsi.wixproj(51,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\Wix.targets" was n ot found. Confirm that the path in the declaration is correct, and that the file exists on disk.

kambeena commented 9 years ago

Great. I installed Wix tools. Finally I am able to create build using VC++ 2010 express. Now I am ready to test.