Install And Test Vulkan On Linux

本文指导如何在Ubuntu上为AMD和NVIDIA显卡安装最新的Vulkan驱动。通过添加PPA并更新Apt,可以获取到Mesa的最新驱动,从而支持Vulkan图形API。对于AMD,使用oibaf/graphics-drivers PPA;对于NVIDIA,则使用graphics-drivers/ppa。安装过程包括升级系统,然后安装Vulkan相关的软件包。
https://linuxconfig.org/install-and-test-vulkan-on-linux

 

Ubuntu
AMD It's best to enable a PPA for the latest Mesa drivers. There is a PPA that packages and releases the latest changes straight from Mesa's Git. Add the PPA to your system and update. Then, upgrade your system. It will automatically upgrade your existing Mesa packages.

$ sudo add-apt-repository ppa:oibaf/graphics-drivers
$ sudo apt update
$ sudo apt upgrade
When it's done, install the Vulkan packages.
# apt install libvulkan1 mesa-vulkan-drivers vulkan-utils
NVIDIA Ubuntu also has a great repository for the NVIDIA proprietary drivers. Add it to your system, and update Apt.

$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt upgrade
Now, install your drivers and Vulkan.
$ sudo apt install nvidia-graphics-drivers-396 nvidia-settings vulkan vulkan-utils

 

 

vulkaninfo | less
derrick@derrick-VMware-Virtual-Platform:~/OpenXR-SDK/build$ cmake -DCMAKE_SYSTEM_NAME=Linux \ -DCMAKE_SYSTEM_PROCESSOR=aarch64 \ -DCMAKE_C_COMPILER=/opt/industio/evb3568-qt5.14-host-sdk/bin/aarch64-linux-gcc \ -DCMAKE_CXX_COMPILER=/opt/industio/evb3568-qt5.14-host-sdk/bin/aarch64-linux-g++ \ -DCMAKE_INSTALL_PREFIX=./install \ -DBUILD_TESTS=OFF \ .. -- The C compiler identification is GNU 9.3.0 -- The CXX compiler identification is GNU 9.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /opt/industio/evb3568-qt5.14-host-sdk/bin/aarch64-linux-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /opt/industio/evb3568-qt5.14-host-sdk/bin/aarch64-linux-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Python3: /usr/bin/python3 (found version "3.12.3") found components: Interpreter -- Performing Test HAVE_FILESYSTEM_IN_STD -- Performing Test HAVE_FILESYSTEM_IN_STD - Failed -- Performing Test HAVE_FILESYSTEM_IN_STDEXPERIMENTAL -- Performing Test HAVE_FILESYSTEM_IN_STDEXPERIMENTAL - Success -- Performing Test HAVE_FILESYSTEM_IN_STD_17 -- Performing Test HAVE_FILESYSTEM_IN_STD_17 - Failed -- Performing Test HAVE_FILESYSTEM_WITHOUT_LIB -- Performing Test HAVE_FILESYSTEM_WITHOUT_LIB - Failed -- Performing Test HAVE_FILESYSTEM_NEEDING_LIBSTDCXXFS -- Performing Test HAVE_FILESYSTEM_NEEDING_LIBSTDCXXFS - Success -- Performing Test HAVE_FILESYSTEM_NEEDING_LIBCXXFS -- Performing Test HAVE_FILESYSTEM_NEEDING_LIBCXXFS - Failed CMake Warning at src/CMakeLists.txt:33 (find_package): By not providing "FindSanitizers.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Sanitizers", but CMake did not find one. Could not find a package configuration file provided by "Sanitizers" with any of the following names: SanitizersConfig.cmake sanitizers-config.cmake Add the installation prefix of "Sanitizers" to CMAKE_PREFIX_PATH or set "Sanitizers_DIR" to a directory containing one of the above files. If "Sanitizers" provides a separate development package or SDK, be sure it has been installed. -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY) -- Could NOT find Vulkan (missing: Vulkan_LIBRARY) (found version "1.3.275") -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found JsonCpp: /usr/include/jsoncpp -- Presentation backend selected for hello_xr, loader_test, conformance: xlib -- Could NOT find X11 (missing: X11_X11_LIB) -- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1") -- Checking for one of the modules 'xcb' -- Checking for one of the modules 'xcb-glx' -- Checking for one of the modules 'wayland-client' -- BUILD_WITH_XLIB_HEADERS: OFF -- BUILD_WITH_XCB_HEADERS: OFF -- BUILD_WITH_WAYLAND_HEADERS: ON CMake Error at src/cmake/presentation.cmake:48 (message): xlib backend selected, but BUILD_WITH_XLIB_HEADERS either disabled or unavailable due to missing dependencies. Call Stack (most recent call first): src/CMakeLists.txt:264 (include) -- Configuring incomplete, errors occurred!
08-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值