-
-
Notifications
You must be signed in to change notification settings - Fork 177
Installation fails with Microsoft Visual Studio 2015 #196
Comments
is it missing a header / stdlib? |
Hi @ArtskydJ Can you confirm the version of node-gyp please FYI I think you are running into this issue here |
I have node-gyp v2.0.2. Maybe |
|
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{6F02BF96-E041-75BC-770B-5DBCE6285C31}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>leveldb</RootNamespace>
<IgnoreWarnCompileDuplicatedFilename>true</IgnoreWarnCompileDuplicatedFilename>
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props"/>
<PropertyGroup Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
</PropertyGroup>
<PropertyGroup Label="Locals">
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props"/>
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.props"/>
<ImportGroup Label="ExtensionSettings"/>
<ImportGroup Label="PropertySheets">
<Import Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"/>
</ImportGroup>
<PropertyGroup Label="UserMacros"/>
<PropertyGroup>
<ExecutablePath>$(ExecutablePath);$(MSBuildProjectDirectory)\.\bin\;$(MSBuildProjectDirectory)\.\bin\</ExecutablePath>
<IntDir>$(Configuration)\obj\$(ProjectName)\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
<TargetName>$(ProjectName)</TargetName>
<TargetPath>$(OutDir)\$(ProjectName)$(TargetExt)</TargetPath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>C:\Users\Michael\.node-gyp\0.12.5\src;C:\Users\Michael\.node-gyp\0.12.5\deps\uv\include;C:\Users\Michael\.node-gyp\0.12.5\deps\v8\include;leveldb-1.17.0;leveldb-1.17.0\include;leveldb-1.17.0\port\win;port-libuv;..\snappy\snappy-1.1.1;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<BufferSecurityCheck>true</BufferSecurityCheck>
<CompileAsWinRT>false</CompileAsWinRT>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<DisableSpecificWarnings>4355;4530;4267;4244;4351;4355;4800;4251;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<ExceptionHandling>Async</ExceptionHandling>
<FunctionLevelLinking>true</FunctionLevelLinking>
<MinimalRebuild>false</MinimalRebuild>
<OmitFramePointers>false</OmitFramePointers>
<Optimization>Disabled</Optimization>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PreprocessorDefinitions>NODE_GYP_MODULE_NAME=leveldb;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;BUILDING_V8_SHARED=1;BUILDING_UV_SHARED=1;SNAPPY=1;LEVELDB_PLATFORM_UV=1;NOMINMAX=1;_HAS_EXCEPTIONS=0;DEBUG;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<StringPooling>true</StringPooling>
<SuppressStartupBanner>true</SuppressStartupBanner>
<TreatWarningAsError>false</TreatWarningAsError>
<WarningLevel>Level3</WarningLevel>
</ClCompile>
<Lib>
<OutputFile>$(OutDir)$(ProjectName)$(TargetExt)</OutputFile>
</Lib>
<Link>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;"C:\Users\Michael\.node-gyp\0.12.5\$(Configuration)\node.lib"</AdditionalDependencies>
<AllowIsolation>true</AllowIsolation>
<DataExecutionPrevention>true</DataExecutionPrevention>
<GenerateDebugInformation>true</GenerateDebugInformation>
<RandomizedBaseAddress>true</RandomizedBaseAddress>
<SuppressStartupBanner>true</SuppressStartupBanner>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<ResourceCompile>
<AdditionalIncludeDirectories>C:\Users\Michael\.node-gyp\0.12.5\src;C:\Users\Michael\.node-gyp\0.12.5\deps\uv\include;C:\Users\Michael\.node-gyp\0.12.5\deps\v8\include;leveldb-1.17.0;leveldb-1.17.0\include;leveldb-1.17.0\port\win;port-libuv;..\snappy\snappy-1.1.1;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NODE_GYP_MODULE_NAME=leveldb;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;BUILDING_V8_SHARED=1;BUILDING_UV_SHARED=1;SNAPPY=1;LEVELDB_PLATFORM_UV=1;NOMINMAX=1;_HAS_EXCEPTIONS=0;DEBUG;_DEBUG;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>C:\Users\Michael\.node-gyp\0.12.5\src;C:\Users\Michael\.node-gyp\0.12.5\deps\uv\include;C:\Users\Michael\.node-gyp\0.12.5\deps\v8\include;leveldb-1.17.0;leveldb-1.17.0\include;leveldb-1.17.0\port\win;port-libuv;..\snappy\snappy-1.1.1;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/MP %(AdditionalOptions)</AdditionalOptions>
<BufferSecurityCheck>true</BufferSecurityCheck>
<CompileAsWinRT>false</CompileAsWinRT>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<DisableSpecificWarnings>4355;4530;4267;4244;4351;4355;4800;4251;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<ExceptionHandling>false</ExceptionHandling>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<FunctionLevelLinking>true</FunctionLevelLinking>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<IntrinsicFunctions>true</IntrinsicFunctions>
<OmitFramePointers>true</OmitFramePointers>
<Optimization>Full</Optimization>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PreprocessorDefinitions>NODE_GYP_MODULE_NAME=leveldb;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;BUILDING_V8_SHARED=1;BUILDING_UV_SHARED=1;SNAPPY=1;LEVELDB_PLATFORM_UV=1;NOMINMAX=1;_HAS_EXCEPTIONS=0;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<StringPooling>true</StringPooling>
<SuppressStartupBanner>true</SuppressStartupBanner>
<TreatWarningAsError>false</TreatWarningAsError>
<WarningLevel>Level3</WarningLevel>
<WholeProgramOptimization>true</WholeProgramOptimization>
</ClCompile>
<Lib>
<AdditionalOptions>/LTCG %(AdditionalOptions)</AdditionalOptions>
<OutputFile>$(OutDir)$(ProjectName)$(TargetExt)</OutputFile>
</Lib>
<Link>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;"C:\Users\Michael\.node-gyp\0.12.5\$(Configuration)\node.lib"</AdditionalDependencies>
<AllowIsolation>true</AllowIsolation>
<DataExecutionPrevention>true</DataExecutionPrevention>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<GenerateDebugInformation>true</GenerateDebugInformation>
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
<OptimizeReferences>true</OptimizeReferences>
<RandomizedBaseAddress>true</RandomizedBaseAddress>
<SuppressStartupBanner>true</SuppressStartupBanner>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<ResourceCompile>
<AdditionalIncludeDirectories>C:\Users\Michael\.node-gyp\0.12.5\src;C:\Users\Michael\.node-gyp\0.12.5\deps\uv\include;C:\Users\Michael\.node-gyp\0.12.5\deps\v8\include;leveldb-1.17.0;leveldb-1.17.0\include;leveldb-1.17.0\port\win;port-libuv;..\snappy\snappy-1.1.1;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NODE_GYP_MODULE_NAME=leveldb;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;BUILDING_V8_SHARED=1;BUILDING_UV_SHARED=1;SNAPPY=1;LEVELDB_PLATFORM_UV=1;NOMINMAX=1;_HAS_EXCEPTIONS=0;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemGroup>
<None Include="leveldb.gyp"/>
</ItemGroup>
<ItemGroup>
<ClInclude Include="leveldb-1.17.0\db\builder.h"/>
<ClInclude Include="leveldb-1.17.0\db\db_impl.h"/>
<ClInclude Include="leveldb-1.17.0\db\db_iter.h"/>
<ClInclude Include="leveldb-1.17.0\db\filename.h"/>
<ClInclude Include="leveldb-1.17.0\db\dbformat.h"/>
<ClInclude Include="leveldb-1.17.0\db\log_format.h"/>
<ClInclude Include="leveldb-1.17.0\db\log_reader.h"/>
<ClInclude Include="leveldb-1.17.0\db\log_writer.h"/>
<ClInclude Include="leveldb-1.17.0\db\memtable.h"/>
<ClInclude Include="leveldb-1.17.0\db\skiplist.h"/>
<ClInclude Include="leveldb-1.17.0\db\snapshot.h"/>
<ClInclude Include="leveldb-1.17.0\db\table_cache.h"/>
<ClInclude Include="leveldb-1.17.0\db\version_edit.h"/>
<ClInclude Include="leveldb-1.17.0\db\version_set.h"/>
<ClInclude Include="leveldb-1.17.0\db\write_batch_internal.h"/>
<ClInclude Include="leveldb-1.17.0\helpers\memenv\memenv.h"/>
<ClInclude Include="leveldb-1.17.0\include\leveldb\cache.h"/>
<ClInclude Include="leveldb-1.17.0\include\leveldb\comparator.h"/>
<ClInclude Include="leveldb-1.17.0\include\leveldb\db.h"/>
<ClInclude Include="leveldb-1.17.0\include\leveldb\env.h"/>
<ClInclude Include="leveldb-1.17.0\include\leveldb\filter_policy.h"/>
<ClInclude Include="leveldb-1.17.0\include\leveldb\iterator.h"/>
<ClInclude Include="leveldb-1.17.0\include\leveldb\options.h"/>
<ClInclude Include="leveldb-1.17.0\include\leveldb\slice.h"/>
<ClInclude Include="leveldb-1.17.0\include\leveldb\status.h"/>
<ClInclude Include="leveldb-1.17.0\include\leveldb\table.h"/>
<ClInclude Include="leveldb-1.17.0\include\leveldb\table_builder.h"/>
<ClInclude Include="leveldb-1.17.0\include\leveldb\write_batch.h"/>
<ClInclude Include="leveldb-1.17.0\port\port.h"/>
<ClInclude Include="leveldb-1.17.0\table\block.h"/>
<ClInclude Include="leveldb-1.17.0\table\block_builder.h"/>
<ClInclude Include="leveldb-1.17.0\table\filter_block.h"/>
<ClInclude Include="leveldb-1.17.0\table\format.h"/>
<ClInclude Include="leveldb-1.17.0\table\iterator_wrapper.h"/>
<ClInclude Include="leveldb-1.17.0\table\merger.h"/>
<ClInclude Include="leveldb-1.17.0\table\two_level_iterator.h"/>
<ClInclude Include="leveldb-1.17.0\util\arena.h"/>
<ClInclude Include="leveldb-1.17.0\util\coding.h"/>
<ClInclude Include="leveldb-1.17.0\util\crc32c.h"/>
<ClInclude Include="leveldb-1.17.0\util\hash.h"/>
<ClInclude Include="leveldb-1.17.0\util\logging.h"/>
<ClInclude Include="leveldb-1.17.0\util\mutexlock.h"/>
<ClInclude Include="leveldb-1.17.0\util\random.h"/>
</ItemGroup>
<ItemGroup>
<ClCompile Include="leveldb-1.17.0\db\builder.cc"/>
<ClCompile Include="leveldb-1.17.0\db\db_impl.cc"/>
<ClCompile Include="leveldb-1.17.0\db\db_iter.cc"/>
<ClCompile Include="leveldb-1.17.0\db\filename.cc"/>
<ClCompile Include="leveldb-1.17.0\db\dbformat.cc"/>
<ClCompile Include="leveldb-1.17.0\db\log_reader.cc"/>
<ClCompile Include="leveldb-1.17.0\db\log_writer.cc"/>
<ClCompile Include="leveldb-1.17.0\db\memtable.cc"/>
<ClCompile Include="leveldb-1.17.0\db\repair.cc"/>
<ClCompile Include="leveldb-1.17.0\db\table_cache.cc"/>
<ClCompile Include="leveldb-1.17.0\db\version_edit.cc"/>
<ClCompile Include="leveldb-1.17.0\db\version_set.cc"/>
<ClCompile Include="leveldb-1.17.0\db\write_batch.cc"/>
<ClCompile Include="leveldb-1.17.0\helpers\memenv\memenv.cc"/>
<ClCompile Include="leveldb-1.17.0\table\block.cc"/>
<ClCompile Include="leveldb-1.17.0\table\block_builder.cc"/>
<ClCompile Include="leveldb-1.17.0\table\filter_block.cc"/>
<ClCompile Include="leveldb-1.17.0\table\format.cc"/>
<ClCompile Include="leveldb-1.17.0\table\iterator.cc"/>
<ClCompile Include="leveldb-1.17.0\table\merger.cc"/>
<ClCompile Include="leveldb-1.17.0\table\table.cc"/>
<ClCompile Include="leveldb-1.17.0\table\table_builder.cc"/>
<ClCompile Include="leveldb-1.17.0\table\two_level_iterator.cc"/>
<ClCompile Include="leveldb-1.17.0\util\arena.cc"/>
<ClCompile Include="leveldb-1.17.0\util\bloom.cc"/>
<ClCompile Include="leveldb-1.17.0\util\cache.cc"/>
<ClCompile Include="leveldb-1.17.0\util\coding.cc"/>
<ClCompile Include="leveldb-1.17.0\util\comparator.cc"/>
<ClCompile Include="leveldb-1.17.0\util\crc32c.cc"/>
<ClCompile Include="leveldb-1.17.0\util\env.cc"/>
<ClCompile Include="leveldb-1.17.0\util\filter_policy.cc"/>
<ClCompile Include="leveldb-1.17.0\util\hash.cc"/>
<ClCompile Include="leveldb-1.17.0\util\logging.cc"/>
<ClCompile Include="leveldb-1.17.0\util\options.cc"/>
<ClCompile Include="leveldb-1.17.0\util\status.cc"/>
<ClCompile Include="port-libuv\port_uv.cc"/>
<ClCompile Include="port-libuv\env_win.cc"/>
<ClCompile Include="port-libuv\win_logger.cc"/>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets"/>
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets"/>
<ImportGroup Label="ExtensionTargets"/>
</Project> |
The article says
It will look something like
|
Added newlines:
|
Thanks @ArtskydJ Could you run that command you gave with /Zc:inline- instead of /Zc:inline Also can you tell me if |
Right ok that's probably because you need a VS comandprompt. So here is the build anyway. `npm i [email protected]`` |
Ok, thanks. I have multiple versions of MSVS installed; I don't know if they overwrite each other, so I don't know if I am able to use an old version. Do you know if it's possible to force node-gyp to use a different version of MSVS? |
Well you could try running "Developer Command Prompt for VS2013" Then |
I am experiencing the VS2015 issue as well ... Have been trying a number of things to try and resolve, Python, VC++, etc. I receive this error a number of times in the log ..\src\odbc_connection.cpp(436): error C2668: 'NanThrowError': ambiguous call t Here is a larger portion of the logode_gyp (node "H:\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\n |
Hi @donaldhook
Can I suggest you raise the issue there https://github.com/wankdanker/node-odbc |
I was trying to port What I'm planning to add is something like below; (into leveldb.gyp)
This solves the problem given by @ArtskydJ yet lots of others to go for UWP.. (fingers crossed) |
Fixes #196 and is my first merge into core :)
Installation does not work using MSVS 2015.
Is this due to node-pre-gyp, leveldown, or my configuration?
The text was updated successfully, but these errors were encountered: