Difference between revisions of "OpenCV"
From ArmadeusWiki
(Create page) |
m (Adjust links) |
||
Line 4: | Line 4: | ||
== Pre-requisite == | == Pre-requisite == | ||
− | You need to have [[CMake]] installed on your system. | + | You need to have [[CMake]] >=2.6 installed on your system. |
== Build OpenCV == | == Build OpenCV == | ||
− | # Edit your | + | # Edit your [[CMake#The_toolchain_file| toolchain.cmake file]] |
# Create source and build directories <source lang="bash"> | # Create source and build directories <source lang="bash"> | ||
mkdir -pv opencv-on-armadeus/{src,build} | mkdir -pv opencv-on-armadeus/{src,build} | ||
Line 36: | Line 36: | ||
== Available features == | == Available features == | ||
− | CMake looks for all required tool in the path specified in | + | CMake looks for all required tool in the path specified in [[CMake#The_toolchain_file| toolchain.cmake file]] toolchain.cmake file; therefore, some options, targets, libraries, ... are not available: |
* Build: | * Build: | ||
Line 54: | Line 54: | ||
{{Note|You may need to enable some packages in your Armadeus configuration to get some libraries (libjpeg, libpng and libtiff) found by CMake.}} | {{Note|You may need to enable some packages in your Armadeus configuration to get some libraries (libjpeg, libpng and libtiff) found by CMake.}} | ||
+ | |||
+ | == See also == | ||
+ | * [http://opencv.willowgarage.com/wiki/InstallGuide| OpenCV install guide] |
Revision as of 00:30, 5 June 2010
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. |