The Vulkan-Loader package contains a library which provides the Vulkan API and provides core support for graphics drivers for Vulkan.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://github.com/KhronosGroup/Vulkan-Loader/archive/v1.3.301/Vulkan-Loader-1.3.301.tar.gz
Download MD5 sum: b89d1991469b67b61c4352cc4d0d9433
Download size: 1.7 MB
Estimated disk space required: 11 MB
Estimated build time: less than 0.1 SBU
CMake-3.31.1, Vulkan-Headers-1.3.301, Wayland-1.23.0, and Xorg Libraries
Mesa-24.3.1 (for Vulkan drivers)
An Internet connection is needed for some tests of this package.
If this package is being installed on a system where Mesa has already been installed previously, please rebuild Mesa-24.3.1 after this package to install Vulkan graphics drivers.
Install Vulkan-Loader by running the following commands:
mkdir build && cd build && cmake -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_SKIP_INSTALL_RPATH=ON \ -G Ninja .. && ninja
To run the test suite, issue (note that the command will use git-2.47.1 to download a copy of GoogleTest for building the test suite):
sed "s/'git', 'clone'/&, '--depth=1', '-b', self.commit/" \ -i ../scripts/update_deps.py && cmake -D BUILD_TESTS=ON -D UPDATE_DEPS=ON .. && ninja && ninja test
Now, as the root
user:
ninja install
-D
CMAKE_SKIP_INSTALL_RPATH=ON
: This switch makes
cmake remove
hardcoded library search paths (rpath) when installing a binary
executable file or a shared library. This package does not need
rpath once it's installed into the standard location, and rpath may
sometimes cause unwanted effects or even security issues.