I've been trying to build OpenCV in a mac (Yosemite 10.10) using cmake-gui and the compilers gcc,g++ and gfortran given by MacPorts.
I HAVE to use those compilers.
I configured WITH_OPENCL to be OFF and generated the binaries. But when I try to make it in the terminal I get the following error :
[ 65%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/fast.cpp.o /Users/imecindia/Desktop/Downloaded Libraries/opencv-3.0.0-beta/modules/features2d/src/fast.cpp: In function 'bool cv::ocl_FAST(cv::InputArray, std::vector<cv::KeyPoint>&, int, bool, int)': /Users/imecindia/Desktop/Downloaded Libraries/opencv-3.0.0-beta/modules/features2d/src/fast.cpp:267:53: error: 'fast_oclsrc' is not a member of 'cv::ocl::features2d' ocl::Kernel fastKptKernel("FAST_findKeypoints", ocl::features2d::fast_oclsrc); ^ /Users/imecindia/Desktop/Downloaded Libraries/opencv-3.0.0-beta/modules/features2d/src/fast.cpp:305:60: error: 'fast_oclsrc' is not a member of 'cv::ocl::features2d' ocl::Kernel fastNMSKernel("FAST_nonmaxSupression", ocl::features2d::fast_oclsrc); ^ make: *** [modules/features2d/CMakeFiles/opencv_features2d.dir/src/fast.cpp.o] Error 1 make: *** [modules/features2d/CMakeFiles/opencv_features2d.dir/all] Error 2 make: *** [all] Error 2
I do not know why I'm receiving this error. Is there some other configuration I should be doing? Can anyone help me out with this?