Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA compilation is broken #240

Closed
gpanders opened this issue Aug 1, 2017 · 4 comments
Closed

CUDA compilation is broken #240

gpanders opened this issue Aug 1, 2017 · 4 comments

Comments

@gpanders
Copy link

gpanders commented Aug 1, 2017

After commit 54766b9 OpenMVS fails to build with the following error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_CUDA_LIBRARY (ADVANCED)
    linked by target "MVS" in directory /src/openmvs/libs/MVS

Reverting 54766b9 fixes the issue and allows OpenMVS to compile normally.

I am building OpenMVS in a Docker container based on the NVIDIA CUDA Docker image.

@cdcseacave
Copy link
Owner

since CUDA_CUDA_LIBRARY is not set only if if(CUDA_FOUND) is true, then there is a problem with the CMake module which should set CUDA_CUDA_LIBRARY. Pls make sure you have the latest version of CMake. Ubuntu 16.04 is compiling fine with the default CMake from apt-get.

@gpanders
Copy link
Author

gpanders commented Aug 1, 2017

I am using Ubuntu 16.04 with CMake version 3.5.1 from apt-get

@gpanders
Copy link
Author

gpanders commented Aug 2, 2017

To anyone else who may stumble upon this problem, the solution was to add the following CMake flag -DCMAKE_LIBRARY_PATH=/usr/local/cuda/lib64/stubs/

See here for more info.

@cdcseacave
Copy link
Owner

thx @gpanders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants