NVlabs / instant-ngp

Instant neural graphics primitives: lightning fast NeRF and more
https://nvlabs.github.io/instant-ngp
Other
15.87k stars 1.91k forks source link

on Ubuntu 20.04 when compiling instant-ngp error. #1465

Open luogyu7 opened 12 months ago

luogyu7 commented 12 months ago

`(base) l1@l1:~/instant-ngp/instant-ngp$ cmake . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -- Obtained CUDA architectures automatically from installed GPUs -- Automatic GPU detection failed. Building for Turing and Ampere as a best guess. -- Targeting CUDA architectures: 75;86 -- Module support is disabled. -- Version: 9.1.1 -- Build type: RelWithDebInfo -- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) (found version "") CMake Warning at CMakeLists.txt:117 (message): Vulkan was not found. Instant neural graphics primitives will still compile and run correctly, but DLSS will not be supported.

CMake Deprecation Warning at dependencies/OpenXR-SDK/CMakeLists.txt:24 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

CMake Warning (dev) at dependencies/OpenXR-SDK/CMakeLists.txt:27 (find_package): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_INCLUDE_DIR) -- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) (found version "") -- Could NOT find JsonCpp (missing: JsonCpp_INCLUDE_DIR JsonCpp_LIBRARY) -- Presentation backend selected for hello_xr, loader_test, conformance: xlib -- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB) -- Checking for one of the modules 'xcb;xcb-glx' -- Checking for one of the modules 'wayland-client' -- BUILD_WITH_XLIB_HEADERS: OFF -- BUILD_WITH_XCB_HEADERS: OFF -- BUILD_WITH_WAYLAND_HEADERS: OFF CMake Error at dependencies/OpenXR-SDK/src/cmake/presentation.cmake:47 (message): xlib backend selected, but BUILD_WITH_XLIB_HEADERS either disabled or unavailable due to missing dependencies. Call Stack (most recent call first): dependencies/OpenXR-SDK/src/CMakeLists.txt:189 (include)

-- Configuring incomplete, errors occurred! `

what should I do?

num-doc commented 11 months ago

I had the same error . My cuda is 11.8. Now I don't have this problem when I use 11.7

gheaeckkseqrz commented 6 months ago

sudo apt install libx11-dev should do the trick

moranli-aca commented 3 months ago

For centos, try yum install libX11-devel --nogpg will fix this issue.