OpenCV2.4.10 Mac Qt Configuration

 

Download OpenCV 2.4.10

Download CMake 2.8

 

Open CMake and choose the source code directory and build binary directory

 

Then click "Configure", and "Generate"

 

Go to the build binary directory, open terminal, and run the following command:

make

 

After "make" is done, then type

sudo make install

 

Download Qt for Mac

Open Qt Creator, in the .pro file, add

INCLUDEPATH+= /usr/local/include
INCLUDEPATH+=/usr/local/include/opencv
INCLUDEPATH+=/usr/local/include/opencv2
LIBS += -L /usr/local/lib/libopencv*

 

你可能感兴趣的:(configuration)