sunny.in.th

Installing OpenCV on Snow Leopard

Checkout the latest version of OpenCV from SVN:

$ svn co https://code.ros.org/svn/opencv/trunk opencv
$ cd opencv
$ mkdir opencv/build
$ cmake ..
$ ccmake .

Press t to toggle to advance mode and change the following variables:

CMAKE_CXX_COMPILER: /usr/bin/c++-4.0 
CMAKE_C_COMPILER: /usr/bin/gcc-4.0

Terminal

Press c to to configure and then g to generate and quit. Compile the code by:

$ make -j8
$ sudo make install