OpenCV with Ubuntu on PandaBoard


This post is for those unfamiliar with OpenCV to obtain and build OpenCV with Ubuntu on PandaBoard.

Source code

Obtain the bzipped source package for Unix. Extract it with tar xvjf so that the source folder is created, e.g. OpenCV-2.3.1.

Additional packages

You’ll need to have the following packages to configure the build. I’ll assume you have the GNU compiler collection installed already.

  • cmake
  • cmake-qt-gui

Configure build

Execute cmake-gui from the command line. Set the source and binaries folders (see figure below for reference). Choose the Unix Makefiles as the build generation mechanism. Configure as appropriate and generate the files required by make. You can build static libraries by unchecking the BUILD_SHARED_LIBS option.

Build

Run make in the binaries folder. If all goes well, the binaries should be available in the bin folder and the libraries in the lib folder.

Run samples

Try and run the drawing sample from the bin folder. Here’s a screenshot of it running for reference.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s