我正在尝试在我的Mac Pro上安装OpenCv(我已经成功地将它安装在我的Macbook上),但是在执行时我收到错误消息
sudo make install
在我正在努力安装它的目录中。我正在运行Snow Leopard(10.6.8)并安装了Xcode(以及MacPorts)。我的问题类似于这个问题(截至今天尚无人问津):Trying to install opencv using homebrew. ERROR: modules/highgui/CMakeFiles/opencv_highgui.dir/all Error 2
以下是错误消息:
[ 67%] Building CXX object modules/ocl/CMakeFiles/opencv_ocl.dir/src/error.cpp.o
/Users/maxweissenbacher/Documents/OpenCV/opencv-2.4.5/modules/ocl/src/error.cpp:
In function ‘const char* cv::ocl::getOpenCLErrorString(int)’:
/Users/maxweissenbacher/Documents/OpenCV/opencv-2.4.5/modules/ocl/src/error.cpp:82:
error: ‘CL_MISALIGNED_SUB_BUFFER_OFFSET’ was not declared in this scope
/Users/maxweissenbacher/Documents/OpenCV/opencv-2.4.5/modules/ocl/src/error.cpp:84:
error: ‘CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST’ was not declared in this scope
make[2]: *** [modules/ocl/CMakeFiles/opencv_ocl.dir/src/error.cpp.o] Error 1
make[1]: *** [modules/ocl/CMakeFiles/opencv_ocl.dir/all] Error 2
make: *** [all] Error 2
我感谢任何帮助。
提前致谢, 最大