build error opencv 2.4.5 OS X 10.8
Trying to build opencv 2.4.5 on OS X 10.8, but the 'make' step runs into a compile error. Thanks in advance for any help! I was following these steps:
tar xvf ~/Downloads/opencv-2.4.5.tar.gz cd opencv-2.4.5 mkdir build cd build cmake -G "Unix Makefiles" .. make
Everything seems to work fine, until this:
Scanning dependencies of target opencv_highgui [ 31%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap.cpp.o ... [ 32%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_cocoa.mm.o In file included from /Applications/opencv-2.4.5/modules/highgui/src/window_cocoa.mm:71: /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:34: error: Foundation/Foundation.h: No such file or directory /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13:26: error: AppKit/AppKit.h: No such file or directory