Ask Your Question
3

Compiling OpenCV 2.4.9 with CUDA on Mavericks

asked 2014-04-26 03:14:27 -0600

LORDIF gravatar image

While configuring ccmake I got this warning:

CMake Warning (dev) at cmake/OpenCVDetectCUDA.cmake:245 (link_directories): This command specifies the relative path

 -Wl,/Developer/NVIDIA/CUDA-6.0

as a link directory.

Policy CMP0015 is not set: link_directories() treats paths relative to the source dir. Run "cmake --help-policy CMP0015" for policy details. Use the
cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first):
cmake/OpenCVFindLibsPerf.cmake:24 (include) CMakeLists.txt:468 (include) This warning is for project developers. Use -Wno-dev to suppress it.

When i try to make the project, get this error:

ld: warning: directory not found for option '-L-Wl,/Developer/NVIDIA/CUDA-6.0' ld: can't map file, errno=22 for architecture x86_64 collect2: error: ld returned 1 exit status make[2]: * [lib/libopencv_core.2.4.9.dylib] Error 1 make[1]: [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 make: ** [all] Error 2

edit retag flag offensive close merge delete

Comments

What is weird is the command -L-Wl,/Developer/NVIDIA/CUDA-6.0, as far as I know this should be -L /Developer/NVIDIA/CUDA-6.0 and then it should work. No idea why it adds the -WI, option however...

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-15 07:31:03 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2014-10-14 09:21:57 -0600

Dmelladom gravatar image

Same problem here :( But my error folder is -L-Wl,/usr/local/cuda Any help?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-04-26 03:14:27 -0600

Seen: 753 times

Last updated: Oct 14 '14