cdcseacave / openMVS

open Multi-View Stereo reconstruction library
http://cdcseacave.github.io
GNU Affero General Public License v3.0
3.17k stars 891 forks source link

No CMAKE_CUDA_COMPILER could be found #930

Open aswin071997 opened 1 year ago

aswin071997 commented 1 year ago

During the installation of OpenMVS library, while running the cmake using the command: "cmake .." ,we are getting an error message like this: "No CMAKE_CUDA_COMPILER could be found". CUDA is already installed on the server

Steps to reproduce the behavior:

  1. Clone OpenMVS git clone --recurse-submodules https://github.com/cdcseacave/openMVS.git

  2. Make build directory: cd openMVS mkdir make cd make

  3. Run CMake: cmake ..

image

System Configuration:

Anyone has any possible explanation on why this issue is occurring, and please share any possible solution to solve this issue.

rennu commented 1 year ago

I installed CUDA from nvidia and then run cmake using switch -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc.