Issue when running build-extern.cmd on win10
VitaMeanC opened this issue · 2 comments
Hi Sebastian,
when I ran build-extern.cmd
on my win10 PC, I got this error:
[1/11] Performing build step for 'glviz-debug'
FAILED: glviz-debug-prefix/src/glviz-debug-stamp/glviz-debug-build
cmd.exe /C "cd /D H:\Repos\surface_splatting\.extern\build\glviz-debug-prefix\src\glviz-debug-build && D:\cmake-3.17.0-win64-x64\bin\cmake.exe -P H:/Repos/surface_splatting/.extern/build/glviz-debug-prefix/src/glviz-debug-stamp/glviz-debug-build-.cmake && D:\cmake-3.17.0-win64-x64\bin\cmake.exe -E touch H:/Repos/surface_splatting/.extern/build/glviz-debug-prefix/src/glviz-debug-stamp/glviz-debug-build"
CMake Error at H:/Repos/surface_splatting/.extern/build/glviz-debug-prefix/src/glviz-debug-stamp/glviz-debug-build-.cmake:49 (message):
Command failed: 1
'D:/cmake-3.17.0-win64-x64/bin/cmake.exe' '--build' '.'
See also
H:/Repos/surface_splatting/.extern/build/glviz-debug-prefix/src/glviz-debug-stamp/glviz-debug-build-*.log
ninja: build stopped: subcommand failed.
I checked out glviz-debug-build-out.log
(btw glviz-debug-build-err.log
is empty), and found this:
Error: This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
Then I followed a tip from google and added SET(CMAKE_CXX_FLAGS "-std=c++11 -O3")
to ~\.extern\build\glviz-prefix\src\glviz\CMakeLists.txt
But the output from cmd stayed the same, and I found this in glviz-debug-build-out.log
:
[1/19] Generating mesh3_vs_glsl.cpp
FAILED: glviz/mesh3_vs_glsl.cpp
cmd.exe /C "cd /D H:\Repos\surface_splatting\.extern\build\glviz-debug-prefix\src\glviz-debug-build\glviz && H:\Repos\surface_splatting\.extern\build\glviz-debug-prefix\src\glviz-debug-build\bin\embed_resourced.exe mesh3_vs_glsl H:/Repos/surface_splatting/.extern/build/glviz-prefix/src/glviz/glviz/src/shader/mesh3_vs.glsl"
terminate called after throwing an instance of 'std::ios_base::failure'
what(): basic_ios::clear
[2/19] Generating mesh3_fs_glsl.cpp
FAILED: glviz/mesh3_fs_glsl.cpp
cmd.exe /C "cd /D H:\Repos\surface_splatting\.extern\build\glviz-debug-prefix\src\glviz-debug-build\glviz && H:\Repos\surface_splatting\.extern\build\glviz-debug-prefix\src\glviz-debug-build\bin\embed_resourced.exe mesh3_fs_glsl H:/Repos/surface_splatting/.extern/build/glviz-prefix/src/glviz/glviz/src/shader/mesh3_fs.glsl"
terminate called after throwing an instance of 'std::ios_base::failure'
what(): basic_ios::clear
[3/19] Generating mesh3_gs_glsl.cpp
FAILED: glviz/mesh3_gs_glsl.cpp
cmd.exe /C "cd /D H:\Repos\surface_splatting\.extern\build\glviz-debug-prefix\src\glviz-debug-build\glviz && H:\Repos\surface_splatting\.extern\build\glviz-debug-prefix\src\glviz-debug-build\bin\embed_resourced.exe mesh3_gs_glsl H:/Repos/surface_splatting/.extern/build/glviz-prefix/src/glviz/glviz/src/shader/mesh3_gs.glsl"
terminate called after throwing an instance of 'std::ios_base::failure'
what(): basic_ios::clear
[4/19] Generating sphere_fs_glsl.cpp
FAILED: glviz/sphere_fs_glsl.cpp
cmd.exe /C "cd /D H:\Repos\surface_splatting\.extern\build\glviz-debug-prefix\src\glviz-debug-build\glviz && H:\Repos\surface_splatting\.extern\build\glviz-debug-prefix\src\glviz-debug-build\bin\embed_resourced.exe sphere_fs_glsl H:/Repos/surface_splatting/.extern/build/glviz-prefix/src/glviz/glviz/src/shader/sphere_fs.glsl"
terminate called after throwing an instance of 'std::ios_base::failure'
what(): basic_ios::clear
[5/19] Generating sphere_vs_glsl.cpp
FAILED: glviz/sphere_vs_glsl.cpp
cmd.exe /C "cd /D H:\Repos\surface_splatting\.extern\build\glviz-debug-prefix\src\glviz-debug-build\glviz && H:\Repos\surface_splatting\.extern\build\glviz-debug-prefix\src\glviz-debug-build\bin\embed_resourced.exe sphere_vs_glsl H:/Repos/surface_splatting/.extern/build/glviz-prefix/src/glviz/glviz/src/shader/sphere_vs.glsl"
terminate called after throwing an instance of 'std::ios_base::failure'
what(): basic_ios::clear
ninja: build stopped: subcommand failed.
Could you help me out with this problem?
Thanks in advance!
Do you have a GNU C/C++ compiler in your PATH
? The CMake Ninja generator defaults to gcc
, g++
if its available in the path.
You can attempt to set CMAKE_C_COMPILER
, CMAKE_CXX_COMPILER
explicitly to cl.exe
in the CMake generate run.
I found myself using a wrong version of minGW, and it's OK now.
Thanks a lot for your help : )