I am getting a linking error while compiling opencv with cuda on Mac OS X high Sierra (10.13.6).
The error does not appear without cuda.
[ 21%] Linking CXX shared library ../../lib/libopencv_cudev.dylib ld: warning: directory not found for option '-L/Users/unknownn/opencv/-Wl,-rpath,/usr/local/cuda' ld: warning: directory not found for option '-L-Wl,-rpath,/usr/local/cuda' ld: library not found for -llib clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [lib/libopencv_cudev.4.0.1.dylib] Error 1 make: *** [modules/cudev/CMakeFiles/opencv_cudev.dir/all] Error 2 make: *** [all] Error 2
I have already tried pretty much every cuda (9, 9.2, 10) and opencv (3.4, 4.0.1) version. Also I am aware that every cuda version requires a specific Xcode version.
I have also tried various cmake versions
I checked for the correct cuda paths in ccmake.
I dont know why the ld warnings appear since /usr/local/cuda exist.
What is -llib?