Monday, January 31, 2011

Installing OpenCV on Mac OS

Here is the official installation guide.

I'll show you how to build opencv from source using the CMake build system.

1.  Open Terminal. Move to a folder where you want to download opencv source code.

2. Type in the following commands.

$ svn co https://code.ros.org/svn/opencv/trunk/opencv
(This will download source code from repository)

$ cd opencv
(moving into the opencv folder just downloaded)

$ mkdir build
$ cd build
$ cmake ..

If you want to configure the make
$ ccmake .
(This will give you an opportunity to choose to build samples and install examples)

3. Build and install opencv
$ make -j8
$ sudo make install

No comments:

Post a Comment