graphdeco-inria / gaussian-splatting

Original reference implementation of "3D Gaussian Splatting for Real-Time Radiance Field Rendering"
https://repo-sam.inria.fr/fungraph/3d-gaussian-splatting/
Other
13.57k stars 1.74k forks source link

Error after executing "cmake -Bbuild . -DCMAKE_BUILD_TYPE=Release" (I am using Ubuntu 20.04) #405

Open jjpatino-byte opened 10 months ago

jjpatino-byte commented 10 months ago

After executing "git checkout fossa_compatibility", and then trying to execute "cmake -Bbuild . -DCMAKE_BUILD_TYPE=Release ", I get the following error:

** Handling core dependencies ** Activating EGL support for headless GLFW/GLEW There is no provided GLEW library for your compiler, relying on find_package to find it -- FindGLEW: did not find GLEW CMake config file. Searching for libraries. -- FindGLEW: GLEW_USE_STATIC_LIBS is undefined. Treated as FALSE. -- FindGLEW: GLEW_INCLUDE_DIR: /usr/include -- FindGLEW: GLEW_INCLUDE_DIRS: /usr/include -- FindGLEW: CMAKE_FIND_LIBRARY_SUFFIXES for SHARED: .so;.a -- FindGLEW: CMAKE_FIND_LIBRARY_SUFFIXES for STATIC: .so -- FindGLEW: GLEW_SHARED_LIBRARY_RELEASE: /usr/lib/x86_64-linux-gnu/libGLEW.so -- FindGLEW: GLEW_STATIC_LIBRARY_RELEASE: GLEW_STATIC_LIBRARY_RELEASE-NOTFOUND -- FindGLEW: GLEW_SHARED_LIBRARY_DEBUG: GLEW_SHARED_LIBRARY_DEBUG-NOTFOUND -- FindGLEW: GLEW_STATIC_LIBRARY_DEBUG: GLEW_STATIC_LIBRARY_DEBUG-NOTFOUND -- FindGLEW: GLEW_SHARED_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLEW.so -- FindGLEW: GLEW_STATIC_LIBRARY: GLEW_STATIC_LIBRARY-NOTFOUND -- FindGLEW: GLEW_LIBRARIES: /usr/lib/x86_64-linux-gnu/libGLEW.so -- FindGLEW: GLEW_VERSION_MAJOR: 2 -- FindGLEW: GLEW_VERSION_MINOR: 1 -- FindGLEW: GLEW_VERSION_MICRO: 0 -- FindGLEW: GLEW_VERSION: 2.1.0 -- FindGLEW: Creating GLEW::glew imported target. -- FindGLEW: Creating GLEW::GLEW imported target. There is no provided ASSIMP library for your compiler, relying on find_package to find it NO ASSIMP DIR ASSIMP_DIR SETTING ASSIMP DIR ASSIMP_DIR ASSIMP DIR ASSIMP_DIR There is no provided OpenCV library for your compiler, relying on find_package to find it -- Library imgui already available, skipping. -- Library nativefiledialog already available, skipping. -- Library mrf already available, skipping. -- Library nanoflann already available, skipping. -- Library picojson already available, skipping. -- Library rapidxml already available, skipping. -- Library xatlas already available, skipping. -- ****

-- Adding dataset_tools project -- BUILD_IBR_DATASET_TOOLS is OFF -- Adding ulr project -- BUILD_IBR_ULR is OFF -- Adding basic project -- BUILD_IBR_BASIC is ON -- Adding gaussianviewer project -- BUILD_IBR_GAUSSIANVIEWER is ON -- The CUDA compiler identification is unknown -- Check for working CUDA compiler: /usr/bin/nvcc -- Check for working CUDA compiler: /usr/bin/nvcc -- broken CMake Error at /usr/share/cmake-3.16/Modules/CMakeTestCUDACompiler.cmake:46 (message): The CUDA compiler

"/usr/bin/nvcc"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /home/jjpatino/gaussian-splatting/SIBR_viewers/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_3c93c/fast && /usr/bin/make -f CMakeFiles/cmTC_3c93c.dir/build.make CMakeFiles/cmTC_3c93c.dir/build
make[1]: Entering directory '/home/jjpatino/gaussian-splatting/SIBR_viewers/build/CMakeFiles/CMakeTmp'
Building CUDA object CMakeFiles/cmTC_3c93c.dir/main.cu.o
/usr/bin/nvcc     -x cu -c /home/jjpatino/gaussian-splatting/SIBR_viewers/build/CMakeFiles/CMakeTmp/main.cu -o CMakeFiles/cmTC_3c93c.dir/main.cu.o
ptxas fatal   : Value 'sm_30' is not defined for option 'gpu-name'
make[1]: *** [CMakeFiles/cmTC_3c93c.dir/build.make:66: CMakeFiles/cmTC_3c93c.dir/main.cu.o] Error 255
make[1]: Leaving directory '/home/jjpatino/gaussian-splatting/SIBR_viewers/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_3c93c/fast] Error 2

CMake will not be able to correctly generate this project. Call Stack (most recent call first): src/projects/gaussianviewer/apps/gaussianViewer/CMakeLists.txt:12 (project)

-- Configuring incomplete, errors occurred! See also "/home/jjpatino/gaussian-splatting/SIBR_viewers/build/CMakeFiles/CMakeOutput.log". See also "/home/jjpatino/gaussian-splatting/SIBR_viewers/build/CMakeFiles/CMakeError.log".

JosTheBossX commented 3 months ago

Hi, even I got the same error, did you find any solution on it?