Project

General

Profile

OpenCV in Ubuntu » History » Version 4

Joseph Foley, 2011-05-03 10:59
wrote up fix so that examples build

1 1 Joseph Foley
h1. OpenCV in Ubuntu
2 2 Joseph Foley
3 1 Joseph Foley
There are two main ways to install OpenCV.  You can build it from source or you can install the Ubuntu packages.
4 2 Joseph Foley
5 1 Joseph Foley
h2. Installing packages
6 2 Joseph Foley
7
inspired by https://help.ubuntu.com/community/OpenCV
8
* @sudo apt-get install python-opencv opencv-doc libcv-dev libcvaux-dev libhighgui-dev@
9 3 Joseph Foley
* Test the build:
10
** @cd ~@
11
** @cp -r /usr/share/doc/opencv-doc/examples .@
12
** @cd examples/c@
13 4 Joseph Foley
** you should be able to build most programs.  
14
* Unfortunately, the build program has an error in it.  It is easy to fix though.
15
** @gedit build_all.sh@
16
** change the line that says: @if [ $# > 0 ] ; then@
17
** it should say @if [ $# -gt 0 ] ; then@
18
* @/bin/bash build_all.sh@
19 2 Joseph Foley
20 1 Joseph Foley
h2. Building from Source
21 2 Joseph Foley
22 1 Joseph Foley
* http://opencv.willowgarage.com/wiki/InstallGuide%20%3A%20Debian
23
* http://opencv.willowgarage.com/wiki/InstallGuide