OpenCV
From ArmadeusWiki
Page under construction... Informations on this page are not guaranteed !!
Forewords
This page explains how to (cross-)compile OpenCV 2.1.0 for your APF-board.
Pre-requisite
You need to have CMake >=2.6 installed on your system.
Build OpenCV
- Edit your toolchain.cmake file
- Create source and build directories
mkdir -pv opencv-on-armadeus/{src,build}
- Grab the source archive
cd opencv-on-armadeus/src && wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.1/OpenCV-2.1.0.tar.bz2/dowload && tar xvvjf OpenCV-2.1.0.tar.bz2
- Run CMake (generate Makefiles)
-
cd ../build && cmake -DCMAKE_TOOLCHAIN_FILE:PATH=/path/to/toolchain.cmake ../src/OpenCV-2.1.0
- It will certainly complain about unfound libraries and some other things, so adjust these things running:
cmake-gui
-
- Compile OpenCV libraries
VERBOSE=1 make
Available features
CMake looks for all required tool in the path specified in toolchain.cmake file toolchain.cmake file; therefore, some options, targets, libraries, ... are not available:
- Build:
- Latex Doc : Not available in Buildroot
- New Python support : Not available (require Python >=2.6, Buildroot provides Python 2.4)
- Swing Python support : Not available (require Python >=2.6, Buildroot provides Python 2.4)
- Octave support : Not available in Buildroot
- Python
- Executable : Not found (require Python >=2.6, Buildroot provides Python 2.4)
- Include dirs. : Found
- Library : Not found (require Python >=2.6, Buildroot provides Python 2.4)
- With
- V4L : Disable it (Buildroot provides it, but linker failed)
- OpenCV
- 3rd party libs. : You can enable it.
Note: You may need to enable some packages in your Armadeus configuration to get some libraries (libjpeg, libpng and libtiff) found by CMake. |