The Vulkan-Loader package contains a library which provides the Vulkan API and provides core support for graphics drivers for Vulkan.
Development versions of GLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
CMake-3.30.3, Vulkan-Headers-1.3.295, and Xorg Libraries
Mesa-24.2.2 (runtime: for Vulkan drivers) and Wayland-1.23.1
If this package is being installed on a system where Mesa has already been installed previously, please rebuild Mesa 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
This package does not come with a working test suite.
Now, as the root
user:
ninja install
-DCMAKE_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.
-D
BUILD_WSI_WAYLAND_SUPPORT=OFF
: This option allows
building the library without Wayland.
First clean the build directory:
rm -rf *
Install lib32-Vulkan-Loader by running the following commands:
ASFLAGS=--32 CFLAGS=-m32 CXXFLAGS=-m32 \ PKG_CONFIG_PATH=/usr/lib32/pkgconfig \ cmake -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_INSTALL_LIBDIR=lib32 \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_SKIP_INSTALL_RPATH=ON \ -G Ninja .. ninja
Now, as the root
user:
DESTDIR=$PWD/DESTDIR ninja install cp -vr DESTDIR/usr/lib32/* /usr/lib32 rm -rf DESTDIR ldconfig