node-raylib icon indicating copy to clipboard operation
node-raylib copied to clipboard

npm install with raylib dep fails

Open Bloodyaugust opened this issue 3 years ago • 1 comments

...
info CMD BUILD
info RUN cmake --build "C:\Code\flappy\node_modules\raylib\build" --config Relea
se
Microsoft (R) Build Engine version 16.7.0+b89cb5fde for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.


C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft
\VC\v160\Microsoft.CppCommon.targets(234,5): error MSB6001: Invalid command lin
e switch for "cmd.exe". System.ArgumentException: Item has already been added.
Key in dictionary: 'Path'  Key being added: 'PATH' [C:\Code\flappy\node_modules
\raylib\build\ZERO_CHECK.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft
\VC\v160\Microsoft.CppCommon.targets(234,5): error MSB6001:    at System.Collec
tions.Hashtable.Insert(Object key, Object nvalue, Boolean add) [C:\Code\flappy\
node_modules\raylib\build\ZERO_CHECK.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft
\VC\v160\Microsoft.CppCommon.targets(234,5): error MSB6001:    at System.Collec
tions.Hashtable.Add(Object key, Object value) [C:\Code\flappy\node_modules\rayl
ib\build\ZERO_CHECK.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft
\VC\v160\Microsoft.CppCommon.targets(234,5): error MSB6001:    at System.Collec
tions.Specialized.StringDictionaryWithComparer.Add(String key, String value) [C
:\Code\flappy\node_modules\raylib\build\ZERO_CHECK.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft
\VC\v160\Microsoft.CppCommon.targets(234,5): error MSB6001:    at System.Diagno
stics.ProcessStartInfo.get_EnvironmentVariables() [C:\Code\flappy\node_modules\
raylib\build\ZERO_CHECK.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft
\VC\v160\Microsoft.CppCommon.targets(234,5): error MSB6001:    at Microsoft.Bui
ld.Utilities.ToolTask.GetProcessStartInfo(String pathToTool, String commandLine
Commands, String responseFileSwitch) [C:\Code\flappy\node_modules\raylib\build\
ZERO_CHECK.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft
\VC\v160\Microsoft.CppCommon.targets(234,5): error MSB6001:    at Microsoft.Bui
ld.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommand
s, String commandLineCommands) [C:\Code\flappy\node_modules\raylib\build\ZERO_C
HECK.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft
\VC\v160\Microsoft.CppCommon.targets(234,5): error MSB6001:    at Microsoft.Bui
ld.CPPTasks.TrackedVCToolTask.TrackerExecuteTool(String pathToTool, String resp
onseFileCommands, String commandLineCommands) [C:\Code\flappy\node_modules\rayl
ib\build\ZERO_CHECK.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft
\VC\v160\Microsoft.CppCommon.targets(234,5): error MSB6001:    at Microsoft.Bui
ld.CPPTasks.CustomBuild.ExecuteTool(String pathToTool, String responseFileComma
nds, String commandLineCommands) [C:\Code\flappy\node_modules\raylib\build\ZERO
_CHECK.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft
\VC\v160\Microsoft.CppCommon.targets(234,5): error MSB6001:    at Microsoft.Bui
ld.Utilities.ToolTask.Execute() [C:\Code\flappy\node_modules\raylib\build\ZERO_
CHECK.vcxproj]
...

I can attach a more complete log if it helps, but I think this is the relevant bits.

Bloodyaugust avatar Jan 28 '21 20:01 Bloodyaugust

Hmm, good find. This will be an important thing to tackle for larger compatibility across different platforms... It might get fixed with some of the new CMake updates in raylib.

RobLoach avatar Jan 31 '21 02:01 RobLoach