I have VS2019 installed on my device and I tried to install node-raylib. Unfortunately, the install is failing and from the error it seems the new version of VS might be the issue. Can you please add support for VS2019?
my cmake is 3.16.2
PS C:\Users\risharan\DevSpace\nodejs\raynode> npm install raylib --save
> raylib@0.2.0 postinstall C:\Users\risharan\DevSpace\nodejs\raynode\node_modules\raylib
> cmake-js compile
[
'C:\\Users\\risharan\\scoop\\apps\\nodejs\\current\\node.exe',
'C:\\Users\\risharan\\DevSpace\\nodejs\\raynode\\node_modules\\cmake-js\\bin\\cmake-js',
'compile'
]
info TOOL Using Visual Studio 16 2019 generator.
info DIST Downloading distribution files.
http DIST - https://nodejs.org/dist/v13.5.0/SHASUMS256.txt
http DIST - https://nodejs.org/dist/v13.5.0/win-x64/node.lib
http DIST - https://nodejs.org/dist/v13.5.0/node-v13.5.0-headers.tar.gz
info CMD CONFIGURE
info RUN cmake "C:\Users\risharan\DevSpace\nodejs\raynode\node_modules\raylib" --no-warn-unused-cli -G"Visual Studio 16 2019" -DCMAKE_JS_VERSION="5.3.2" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_RUNTIME_OUTPUT_DIRECTORY="C:\Users\risharan\DevSpace\nodejs\raynode\node_modules\raylib\build" -DCMAKE_JS_INC="C:\Users\risharan\.cmake-js\node-x64\v13.5.0\include\node" -DCMAKE_JS_SRC="C:/Users/risharan/DevSpace/nodejs/raynode/node_modules/cmake-js/lib/cpp/win_delay_load_hook.cc" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="13.5.0" -DNODE_ARCH="x64" -DCMAKE_JS_LIB="C:\Users\risharan\.cmake-js\node-x64\v13.5.0\win-x64\node.lib" -DCMAKE_SHARED_LINKER_FLAGS="/DELAYLOAD:NODE.EXE"
Not searching for unused variables given on the command line.
-- Selecting Windows SDK version to target Windows 10.0.18363.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.
-- Configuring incomplete, errors occurred!
See also "C:/Users/risharan/DevSpace/nodejs/raynode/node_modules/raylib/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/risharan/DevSpace/nodejs/raynode/node_modules/raylib/build/CMakeFiles/CMakeError.log".
info REP Build has been failed, trying to do a full rebuild.
info CMD CLEAN
info RUN cmake -E remove_directory "C:\Users\risharan\DevSpace\nodejs\raynode\node_modules\raylib\build"
info CMD CONFIGURE
info RUN cmake "C:\Users\risharan\DevSpace\nodejs\raynode\node_modules\raylib" --no-warn-unused-cli -G"Visual Studio 16 2019" -DCMAKE_JS_VERSION="5.3.2" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_RUNTIME_OUTPUT_DIRECTORY="C:\Users\risharan\DevSpace\nodejs\raynode\node_modules\raylib\build" -DCMAKE_JS_INC="C:\Users\risharan\.cmake-js\node-x64\v13.5.0\include\node" -DCMAKE_JS_SRC="C:/Users/risharan/DevSpace/nodejs/raynode/node_modules/cmake-js/lib/cpp/win_delay_load_hook.cc" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="13.5.0" -DNODE_ARCH="x64" -DCMAKE_JS_LIB="C:\Users\risharan\.cmake-js\node-x64\v13.5.0\win-x64\node.lib" -DCMAKE_SHARED_LINKER_FLAGS="/DELAYLOAD:NODE.EXE"
Not searching for unused variables given on the command line.
-- Selecting Windows SDK version to target Windows 10.0.18363.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.
-- Configuring incomplete, errors occurred!
See also "C:/Users/risharan/DevSpace/nodejs/raynode/node_modules/raylib/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/risharan/DevSpace/nodejs/raynode/node_modules/raylib/build/CMakeFiles/CMakeError.log".
ERR! OMG Process terminated: 1
npm WARN raynode@1.0.0 No description
npm WARN raynode@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! raylib@0.2.0 postinstall: `cmake-js compile`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the raylib@0.2.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\risharan\scoop\persist\nodejs\cache\_logs\2020-01-07T15_59_57_263Z-debug.log
hi
I have VS2019 installed on my device and I tried to install node-raylib. Unfortunately, the install is failing and from the error it seems the new version of VS might be the issue. Can you please add support for VS2019?
my cmake is 3.16.2