I am trying to configure opencv_contrib ( https://github.com/Itseez/opencv_contrib ) on my Mac, but cannot overcome this problem. Below I copied the steps I took and the current error output.
Steps:
1 - Download opencv 2.4.10 and opencv_contrib. Unzip both to a new empty directory. File structure - new folder / opencv -2.4.10, newfolder / opencv_contrib
2 - create assembly directors in opencv-2.4.10. File structure - new folder / opencv -2.4.10 / build
3 - cd build
4 - Run the following commands
cmake -G "Unix Makefiles" -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules .. make -j8
At this point, I get the following output through make:
Scanning dependencies of target opencv_surface_matching [ 25%] Building CXX object modules/surface_matching/CMakeFiles/opencv_surface_matching.dir/src/icp.cpp.o In file included from <path to folder>/newfolder/opencv_contrib/modules/surface_matching/src/icp.cpp:41: In file included from <path to folder>/newfolder/opencv_contrib/modules/surface_matching/src/precomp.hpp:45: <path to newfolder>/newfolder/opencv_contrib/modules/surface_matching/include/opencv2/surface_matching/ppf_match_3d.hpp:62:10: fatal error: 'opencv2/core.hpp' file not found
I'm not sure what to do to fix this, I followed the installation instructions almost verbatim. The only change is the addition of -G "Unix Makefiles" (which I got from http://tilomitra.com/opencv-on-mac-osx/ , based on my success when I originally installed opencv standalone).
In the past, I was able to install opencv without opencv_contrib without any problems.
Thanks for any ideas on what I can do to figure this out!
source share