OSX:构建OpenCV 3.0.0,未声明的标识符clEnqueueSVMMap

时间:2015-07-14 09:15:31

标签: macos opencv cmake

我正在尝试按照本指南在OSX(Yosemite)上构建OpenCV:http://blogs.wcode.org/2014/10/howto-install-build-and-use-opencv-macosx-10-10/

构建了静态库但是在构建共享库时出现错误,包括以下内容:

  

/Users/chrismash/Development/OSX/WireframeUpscaler/WireframeUpscaler/ThirdParty/opencv-3.0.0/modules/core/src/ocl.cpp:2700:49:   错误:         使用未声明的标识符'clEnqueueSVMUnmap';你的意思是         'SVM :: SVMFunctions :: fn_clEnqueueSVMUnmap'? ... = clEnqueueSVMUnmap;          ^ ~~~~~~~~~~~~~~~~          SVM :: SVMFunctions :: fn_clEnqueueSVMUnmap

     

/Users/chrismash/Development/OSX/WireframeUpscaler/WireframeUpscaler/ThirdParty/opencv-3.0.0/modules/core/src/ocl.cpp:2700:49:   错误:         无效使用非静态数据成员'fn_clEnqueueSVMUnmap'               svmFunctions.fn_clEnqueueSVMUnmap = clEnqueueSVMUnmap;

我可能会出错的任何想法......?

1 个答案:

答案 0 :(得分:0)

正如@jprice指出的那样,似乎我在CMake中启用了WITH_OPENCL_SVM选项。因为OS X不支持OpenCL 2.0,但它应该被取消。