Configure OpenCV - FrankBau/meta-marsboard-bsp GitHub Wiki

Prerequisites

A working OpenCV installation as described in OpenCV on MarS Board

The purpose of configuration is to fine-tune OpenCV, e.g.

  • to change CMake settings
  • to add some extra modules
  • to set HW acceleration to the max. possible level.

Procedure

From a bitbake shell enter

bitbake -c devshell opencv

This will open a new shell in the OpenCV folder like build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/opencv/2.4.11+gitAUTOINC+2c9547e314-r0/git#

In this terminal window enter cmake-gui . The CMake GUI is now opened with some reasonable settings. The source folder is git, the build folder should be ../build and the toolchain file for cross-compilation is ../toolchain.cmake.

Now, you can check the configuration, change it (configure)and finally generate a new set of Makefiles. Exit cmake-gui. Switch to the build folder ../build where the Makefiles were generated. Enter make and watch the build process.