ceres-solver / ceres-solver

A large scale non-linear optimization library

Home Page:http://ceres-solver.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Couldn't find CUDA library root

JuniJoo opened this issue · comments

Hello, thank you for this wonderful work.

I have encountered a problem while cmake, particularly this step.
"cmake ../ceres-solver-2.2.0"

The full error message that I am having is,

>> cmake ../ceres-solver-2.2.0
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - 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: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_BIGOBJ
-- Performing Test HAVE_BIGOBJ - Failed
-- Looking for pow in m
-- Looking for pow in m - found
-- Detected Ceres version: 2.2.0 from /home/cvlab/Juni/ceres-solver/ceres-solver-2.2.0/include/ceres/version.h
-- Found Eigen version 3.3.4: /usr/lib/cmake/eigen3
-- Enabling use of Eigen as a sparse linear algebra library.
-- 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 version 10.1.105 installed in: /usr/local/cuda-10.1
CMake Error at /usr/local/share/cmake-3.28/Modules/Internal/CMakeCUDAFindToolkit.cmake:148 (message):
  Couldn't find CUDA library root.
Call Stack (most recent call first):
  /usr/local/share/cmake-3.28/Modules/CMakeDetermineCUDACompiler.cmake:89 (cmake_cuda_find_toolkit)
  CMakeLists.txt:249 (enable_language)


-- Configuring incomplete, errors occurred!

I have tried setting up the path to the root or changing version of CUDA but it doesn't seem to solve this problem. I am starting to wonder if it is a version mismatch error of cmake.
Any help would be helpful.

This seems more a cmake problem rather than a ceres solver problem.

Closing because this does not look like a ceres solver issue. Please feel free to reopen if you think this is a problem with out cmake files.