Tuesday, October 29, 2013

OpenCV + Mac OS X 10.9

I received my new MacBookPro and decided I will feel it with dev stuff.

One of the things I wanted to install first for a project at Uni was the OpenCV library for Computer Vision, and I met around 12 hours of failures, and tests.

The short version is : Every make and make install were failing with different errors, and all because the new OS X had some changes made.

Here is the solution I found:


1. Install GitHub : GitHub & cMake


2. Pull the latest version of OpenCV from here.

-> Go to the folder you would like to use for github
-> Console: mkdir openCV
-> Console: cd openCV
-> Console: git clone git@github.com:Itseez/opencv.git

3. Now the next part:

-> Console: mkdir build
-> Console: cd build
-> Console: cmake "Unix Makefile" -D CMAKE_OSX_ARCHITECTURES=x86_64 -D BUILD_PERF_TESTS=OFF ..
-> Console: sudo make
-> Console: sudo make install

4. Don't close the window very fast

-> Look at the log generated from the make, it will show you exactly where your libraries are. 

5. Theoretically your openCV is installed and working, the errors are gone.

6. Use any OpenCV+Eclipse or OpenCV+XCode tutorial.




Good luck !