RayTracingInVulkan icon indicating copy to clipboard operation
RayTracingInVulkan copied to clipboard

STB not found

Open meerfrau opened this issue 2 years ago • 4 comments

I've installed stb 20210910, but it is not found by raytracinginvulkan's CMake:

  Could not find a package configuration file provided by "Stb" with any of
  the following names:

    StbConfig.cmake
    stb-config.cmake

meerfrau avatar Apr 20 '23 11:04 meerfrau

The CMake files assume you've called one of the vcpkg_* script before. It's designed to use its own dependencies rather than any system-wide package/files.

GPSnoopy avatar Apr 20 '23 19:04 GPSnoopy

And what if I would like to package it for my distribution (and thus use the system libs)?

meerfrau avatar Apr 20 '23 19:04 meerfrau

Then it gets a bit iffy. Exact CMake code will be dependent on the versions of CMake and the libraries you have; also not all libraries might be supported/have an existing find_package script.

The relevant code is here: https://github.com/GPSnoopy/RayTracingInVulkan/blob/9e4b22553b7a120bd989fcd1851d243b590ba5cc/CMakeLists.txt#L50-L57

and here: https://github.com/GPSnoopy/RayTracingInVulkan/blob/9e4b22553b7a120bd989fcd1851d243b590ba5cc/src/CMakeLists.txt#L169-L171

GPSnoopy avatar Apr 20 '23 20:04 GPSnoopy