Comments (4)
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.
from raytracinginvulkan.
And what if I would like to package it for my distribution (and thus use the system libs)?
from raytracinginvulkan.
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:
RayTracingInVulkan/CMakeLists.txt
Lines 50 to 57 in 9e4b225
and here:
RayTracingInVulkan/src/CMakeLists.txt
Lines 169 to 171 in 9e4b225
from raytracinginvulkan.
Here is a same issue on version 2023.12.26 when I compile the code in CLion IDE, ubuntu 22.04, and the error log is:
CMake Error at CMakeLists.txt:62 (find_package):
By not providing "FindStb.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Stb", but
CMake did not find one.
Could not find a package configuration file provided by "Stb" with any of
the following names:
StbConfig.cmake
stb-config.cmake
Add the installation prefix of "Stb" to CMAKE_PREFIX_PATH or set "Stb_DIR"
to a directory containing one of the above files. If "Stb" provides a
separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!
[Failed to reload]
and I added the following line in CMakeLists.txt ,
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/build/vcpkg.linux/packages/stb_x64-linux/share/stb")
then it worked!
All things go perfectly!
from raytracinginvulkan.
Related Issues (20)
- Can not compile on Ubuntu 22.04 HOT 4
- Benchmark results on RTX 3060 Ti (1440p) HOT 1
- Failed to launch when Vulkan 1.0 GPU present HOT 3
- FATAL: failed to load icon HOT 2
- Benchmark results on RTX 4090 (1440p) HOT 2
- Currently not running on Intel Arc GPUs HOT 6
- Performance on Intel Arc A770 GPU HOT 1
- Benchmark results on RX 7900 XTX (1440p) HOT 6
- Option to select GPU HOT 1
- Benchmark results on RTX 3070 mobile. iGPU -- AMD
- Rebuild after Vulkan SDK Upgrade HOT 1
- Please support MSYS2 MINGW64
- VK_BUFFER_USAGE_VERTEX_BUFFER_BIT and VK_BUFFER_USAGE_INDEX_BUFFER_BIT HOT 4
- windows rx 7600 test result
- where to find the imguiConfig.cmake ,imgui-config.cmake, and tinyobjloaderConfig.cmake, and tinyobjloader-config.cmake? HOT 2
- Benchmark comparison between the RTX 3060 and RX 5600 XT HOT 1
- validation-error: acceleration-structure-buffer is missing 'VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT' HOT 1
- Benchmark Results on AMD Radeon RX6600XT HOT 1
- Make it easier to build on aarch64-linux
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raytracinginvulkan.