Install OpenCV2.0 in Ubuntu9.10

Source: Internet
Author: User
When OpenCV2.0 is installed in Ubuntu9.10, there will always be errors in the compilation process. However, in 8.04, everything went smoothly and there was no problem. I found a tutorial on the Internet and reinstalled it on my computer, installation steps are as follows: 1. First install the relevant Library: sudoapt-getinstalllibv4l-devlibv4l-0libboost1.40-all-devlibusb-1.0-0-devlibgtk2.0-devli

When OpenCV2.0 is installed in Ubuntu 9.10, there will always be errors in the compilation process, but in Ubuntu 8.04, everything went well and there was no problem. I found a tutorial on the Internet, the installation steps are as follows:

1. Install the relevant libraries first:

Sudo apt-get install libv4l-dev libv4l-0 libboost1.40-all-dev libusb-1.0-0-dev libgtk2.0-dev libgsl0-dev

2. decompress the OpenCV2.0 source code and enter the directory. Use the following statement to configure and install it:

./Configure -- with-v4l = yes -- with-dc1394v2 = no -- with-quicktime = no -- disable-debug -- with-swig = no -- with-python = no -- with-ffmpeg = no

Make

Sudo make install

3. Set the relevant library path:

Echo/usr/local/opencv/lib>/etc/ld. so. conf. d/opencv. conf

4. Reload the library path:

Ldconfig-v | grep opencv

5. Set the pkg-config constant:

Export PKG_CONFIG_PATH = $ PKG_CONFIG_PATH:/usr/local/opencv/lib/pkgconfig

Now the entire development environment has been set up. The configuration parameters in Section 2 need to be modified as needed.

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.