Totoro97 / f2-nerf

Fast neural radiance field training with free camera trajectories
https://totoro97.github.io/projects/f2-nerf/
Apache License 2.0
932 stars 69 forks source link

Build error :cmake . -B build #111

Open LIUXIN4558 opened 1 year ago

LIUXIN4558 commented 1 year ago

When I input this command, “cmake . -B build”

the following error occurred:

-- The CUDA compiler identification is NVIDIA 11.3.58
-- The CXX compiler identification is GNU 9.4.0
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No release type specified. Setting to 'Release'.
-- Obtained CUDA architectures automatically from installed GPUs
-- Targeting CUDA architectures: 86
-- Module support is disabled.
-- Version: 9.1.1
-- Build type: Release
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- 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 CUDA: /usr/local/cuda (found version "11.3") 
-- Caffe2: CUDA detected: 11.3
-- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda
-- Caffe2: Header version is: 11.3
-- Could NOT find CUDNN (missing: CUDNN_LIBRARY_PATH CUDNN_INCLUDE_PATH) 
CMake Warning at External/libtorch/share/cmake/Caffe2/public/cuda.cmake:120 (message):
  Caffe2: Cannot find cuDNN library.  Turning the option off
Call Stack (most recent call first):
  External/libtorch/share/cmake/Caffe2/Caffe2Config.cmake:92 (include)
  External/libtorch/share/cmake/Torch/TorchConfig.cmake:68 (find_package)
  CMakeLists.txt:39 (find_package)

-- /usr/local/cuda/lib64/libnvrtc.so shorthash is 8aa72235
-- Autodetected CUDA architecture(s):  8.6
-- Added CUDA NVCC flags for: -gencode;arch=compute_86,code=sm_86
CMake Error at External/libtorch/share/cmake/Caffe2/Caffe2Config.cmake:100 (message):
  Your installed Caffe2 version uses cuDNN but I cannot find the cuDNN
  libraries.  Please set the proper cuDNN prefixes and / or install cuDNN.
Call Stack (most recent call first):
  External/libtorch/share/cmake/Torch/TorchConfig.cmake:68 (find_package)
  CMakeLists.txt:39 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/ipsg2/code/lx/f2-nerf/build/CMakeFiles/CMakeOutput.log".
See also "/home/ipsg2/code/lx/f2-nerf/build/CMakeFiles/CMakeError.log".

The configuration of my computer is:

gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2) cmake version 3.20.0

yangpaul123 commented 1 year ago

gcc version is high. Please use gcc-7.5.0.

yangpaul123 commented 1 year ago

sorry,you need to install cuddn.

USTBVEO commented 10 months ago

I met the same problem in env:gcc 9.4.0,cuda11.7,ubuntu20.04.

could you please tell me how to switch the version of gcc to a lower one like 7.5.0? image

SSXXSSXX commented 6 months ago

Hello, may I ask how you resolved this issue?

USTBVEO commented 6 months ago

您发给我的信件已收到。from Vien Yann/杨威

This is an automatic reply, confirming that your e-mail was received. Thank you!