Panzerschrek / HexGPU

A game in a world of hexagonal prisms with all game logic calculated by the GPU
GNU General Public License v3.0
11 stars 1 forks source link

Separate build dir results in error at first shader compile #3

Open jopadan opened 1 month ago

jopadan commented 1 month ago
mkdir HexGPU-build && cd HexGPU-build && cmake ../HexGPU/src --install-prefix=/usr  && make
CMake Deprecation Warning at /usr/src/Panzerschrek/HexGPU/snappy/CMakeLists.txt:29 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Configuring done (0.2s)
Warning: Source file "/usr/src/Panzerschrek/HexGPU-build/ShaderList.cpp" is listed multiple times for target "HexGPU".
-- Generating done (0.1s)
-- Build files have been written to: /usr/src/Panzerschrek/HexGPU-build
[  1%] Building CXX object CMakeFiles/ImGui.dir/usr/src/Panzerschrek/HexGPU/imgui/imgui.cpp.o
[  1%] Building CXX object CMakeFiles/ImGui.dir/usr/src/Panzerschrek/HexGPU/imgui/imgui_draw.cpp.o
[  2%] Building CXX object CMakeFiles/ImGui.dir/usr/src/Panzerschrek/HexGPU/imgui/imgui_tables.cpp.o
[  3%] Building CXX object CMakeFiles/ImGui.dir/usr/src/Panzerschrek/HexGPU/imgui/imgui_widgets.cpp.o
[  4%] Building CXX object CMakeFiles/ImGui.dir/usr/src/Panzerschrek/HexGPU/imgui/backends/imgui_impl_sdl2.cpp.o
[  5%] Building CXX object CMakeFiles/ImGui.dir/usr/src/Panzerschrek/HexGPU/imgui/backends/imgui_impl_vulkan.cpp.o
[  6%] Linking CXX static library libImGui.a
[  6%] Built target ImGui
[  7%] Building CXX object snappy/CMakeFiles/snappy.dir/snappy-c.cc.o
[  8%] Building CXX object snappy/CMakeFiles/snappy.dir/snappy-sinksource.cc.o
[  9%] Building CXX object snappy/CMakeFiles/snappy.dir/snappy-stubs-internal.cc.o
[ 10%] Building CXX object snappy/CMakeFiles/snappy.dir/snappy.cc.o
[ 11%] Linking CXX static library libsnappy.a
[ 11%] Built target snappy
[ 12%] Generating shaders/world_render_pass_present_supersampling.frag.h
/usr/src/Panzerschrek/HexGPU/src/shaders/world_render_pass_present_supersampling.frag.glsl
ERROR: Failed to open file: /usr/src/Panzerschrek/HexGPU-build/shaders/world_render_pass_present_supersampling.frag.h
make[2]: *** [CMakeFiles/HexGPU.dir/build.make:2281: shaders/world_render_pass_present_supersampling.frag.h] Error 1
make[1]: *** [CMakeFiles/Makefile2:128: CMakeFiles/HexGPU.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Panzerschrek commented 1 month ago

@jopadan , please, provide build logs.