Download the OpenCV 2.4.4 source code and, inside the root directory, run the following commands:
mkdir build cd build cmake -DBUILD_EXAMPLES=ON ../ make sudo make install
If this does not work, and if you have OpenCV installed on your system, go to the samples/MacOSX/FaceTracker and run :
g++ FaceTracker.cpp -o FaceTracker `pkg-config --cflags --libs opencv` -framework Cocoa
The above command will compile the application after editing the FaceTracker.cpp file and replace all of its #include instructions as follows:
#include <CoreFoundation/CoreFoundation.h> #include <cv.h> #include <highgui.h> #include <cassert> #include <iostream>
source share