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

Missing CUDA link directories #7

Open
mklingen opened this issue Feb 4, 2016 · 1 comment
Open

Missing CUDA link directories #7

mklingen opened this issue Feb 4, 2016 · 1 comment

Comments

@mklingen
Copy link

mklingen commented Feb 4, 2016

When compiling using cuda-enabled OpenCV, I get the following:

/usr/bin/ld: cannot find -lcufft
/usr/bin/ld: cannot find -lnpps
/usr/bin/ld: cannot find -lnppi
/usr/bin/ld: cannot find -lnppc

I solved this on my own machine by adding this at line 18 to CMakeLists.txt:

  link_directories(/usr/local/cuda-7.0/lib64)

Ideally, the CMakeLists.txt file should deal with this automatically by detecting if CUDA is enabled and linking against it if it is.

@Tnll
Copy link

Tnll commented Apr 11, 2017

I also encountered the same problem, but i do not know how to solve?

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