小编Eug*_*ene的帖子

在小牛队上用CUDA编译OpenCV 2.4.9

配置ccmake时我收到了这个警告:

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.
Run Code Online (Sandbox Code Playgroud)

当我尝试制作项目时,会收到此错误:

ld: warning: directory not found for option '-L-Wl,/Developer/NVIDIA/CUDA-6.0' …
Run Code Online (Sandbox Code Playgroud)

c++ opencv osx-mavericks

2
推荐指数
1
解决办法
2045
查看次数

标签 统计

c++ ×1

opencv ×1

osx-mavericks ×1