JeanPhilippeKernel / RendererEngine

3D Renderer Engine builds with Vulkan and C++ 20
MIT License
182 stars 18 forks source link

CMake Error in Tetragrama/src/CMakeLists.txt #352

Closed Martinfx closed 1 month ago

Martinfx commented 1 month ago

Hi,

  1. git clone repo
  2. git submodule init
  3. git submodule update --recursive --force --remote
  4. mkdir build
  5. cd build
  6. cmake ..
~/D/R/build (develop)> cmake ..
-- {fmt} version: 11.0.1
-- Build type: Release
-- Including Wayland support
-- Including X11 support
-- Documentation generation requires Doxygen 1.9.8 or later
-- Build spdlog: 1.14.1
-- Build type: Release
-- GLM: Version 1.0.2
-- GLM: Disable -Wc++98-compat warnings
-- GLM: Build with C++ features auto detection
-- Shared libraries disabled
-- Looking for ZLIB...
-- Checking for module 'zzip-zlib-config'
--   Package 'zzip-zlib-config' not found
-- Found ZLIB: optimized;/usr/lib/libz.a;debug;/usr/lib/libz.a
-- tinyusdz disabled
-- Enabled importer formats: AMF 3DS AC ASE ASSBIN B3D BVH COLLADA DXF CSM HMP IRRMESH IQM IRR LWO LWS M3D MD2 MD3 MD5 MDC MDL NFF NDO OFF OBJ OGRE OPENGEX PLY MS3D COB BLEND IFC XGL FBX Q3D Q3BSP RAW SIB SMD STL TERRAGEN 3D X X3D GLTF 3MF MMD
-- Disabled importer formats: USD
-- Enabled exporter formats: OBJ OPENGEX PLY 3DS ASSBIN ASSXML M3D COLLADA FBX STL X X3D GLTF 3MF PBRT ASSJSON STEP
-- Disabled exporter formats:
-- Treating all warnings as errors (for assimp library only)
Skipping symbol exports test for SPIRV-Tools-opt
Skipping symbol exports test for SPIRV-Tools-reduce
Skipping symbol exports test for SPIRV-Tools-link
Skipping symbol exports test for SPIRV-Tools-lint
Skipping symbol exports test for SPIRV-Tools-diff
Skipping symbol exports test for SPIRV-Tools-shared
Skipping symbol exports test for SPIRV-Tools-static
-- Did not find googletest, tests will not be built. To enable tests place googletest in '<spirv-dir>/external/googletest'.
-- optimizer enabled
-- SPIRV-Cross: Finding Git version for SPIRV-Cross.
-- SPIRV-Cross: Git hash: vulkan-sdk-1.3.283.0-50-g68d40111
SPIRV-Cross:  Testing will be disabled for SPIRV-Cross. Could not find glslang or SPIRV-Tools build under external/. To enable testing, run ./checkout_glslang_spirv_tools.sh and ./build_glslang_spirv_tools.sh first.
CMake Warning at __externals/Vulkan-Loader/CMakeLists.txt:222 (message):
  Using non-secure environmental lookups.  This loader will not properly
  disable environent variables when run with elevated permissions.

-- Configuring done (0.9s)
CMake Error in Tetragrama/src/CMakeLists.txt:
  Imported target "imported::zEngineLib" includes non-existent path

    "/home/maxfx/Documents/RendererEngine/__externals/Vulkan-Headers/build/install/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.
JeanPhilippeKernel commented 1 month ago

Hi @Martinfx the project has its own script for building - all your steps above has been automated so no need to manually type (and it won't' work if you do so) I'll invite you to follow the Readme -> Building Section here: https://github.com/JeanPhilippeKernel/RendererEngine?tab=readme-ov-file#setup-window-machine https://github.com/JeanPhilippeKernel/RendererEngine?tab=readme-ov-file#building

From your log, I can see that you are trying to run it on a Unix sys - like mentioned on the readme, those platforms are out-dated and need particular attention/changes to for the engine to run on it