Install the required OpenCV2.4.1 package under UbuntuLinux

Source: Internet
Author: User
Opencv2.4.1required installation package (opencv_tutorials.pdf of the reference official) 1. GCC4.4.xorlatersudoapt-getinstallbuild-essential2.CMake2.6orlater (cmake-gui can also be installed) sudoapt-getinstallcmakeca

Opencv2.4.1required installation package (opencv_tutorials.pdf of the reference party)

1. GCC 4.4.x or later
Sudo apt-get install build-essential

2. CMake 2.6 or later (you can install cmake-gui)
Sudo apt-get install cmake camke-gui

3. Subversion (svn) client
Sudo apt-get install svn

4. GTK + 2.x or higher, including headers (in the package: libgtk2.0-dev)
Sudo apt-get install libgtk2.0-dev

5. pkgconfig

6. Python 2.6 or later and Numpy 1.5 or later with developer packages
Sudo apt-get install python-dev python-numpy

7. ffmpeg or libav development packages:
Sudo apt-get install libavcodec-dev libavformat-dev libswcale-dev

8. [Optional] libdc1394 2.x
9. [Optional] libjpeg-dev, libpng-dev, libtiff-dev, libjasper-dev


You can copy the following code and run it as an sh file. For details about installing svn, see the notes.
Method: 1 ).~ $ Touch install. sh
2). Copy the following code to the file install. sh.
3 ).~ $ Chmod 775 install. sh
4 ).~ $ Sh install. sh

Sudo apt-get install build-essential cmake-gui libgtk2.0-dev python-numpy libavcodec-dev libavformat-dev libswscale-dev

Note: svn download official address http://subversion.apache.org/download/
Svn Installation DetailsHttp://www.linuxidc.com/Linux/2012-08/68185.htm

Ps: tested in Ubuntu 12.04

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.