运行 vulkaninfo 时出现 vulkan 错误

运行 vulkaninfo 时出现 vulkan 错误

当我使用命令 vulkaninfo 时出现此错误,我在 Ubuntu 18.04 上使用 Nvidia-driver-460

WARNING: [Loader Message] Code 0 : loader_icd_scan: Can not find 'ICD' object in ICD JSON file /usr/share/vulkan/icd.d/nvidia_layers.json.  Skipping ICD JSON
ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Could not get 'vkCreateInstance' via 'vk_icdGetInstanceProcAddr' for ICD libGLX_nvidia.so.0
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_radeon.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_intel.so: wrong ELF class: ELFCLASS32
'DISPLAY' environment variable not set... skipping surface info
/build/vulkan-tools-136mCR/vulkan-tools-1.1.126.0+dfsg1/vulkaninfo/vulkaninfo.h:399: failed with ERROR_INITIALIZATION_FAILED

答案1

你使用的是正确的二进制文件吗?看起来 64 位程序试图加载 32 位库

/usr/lib/i386-linux-gnu/libvulkan_radeon.so

/usr/lib/i386-linux-gnu/libvulkan_intel.so

uname -a会有所帮助,而且file vulkaninfo

相关内容