Ubuntu14.04+cuda6.5+opencv2.4.9+matlab2013a+caffe Configuration Record (iii)--Installation Opencv2.4.9

Source: Internet
Author: User

This article provides two ways to install:

1. Manual installation using the official website installation package;

2. Install automatically using the install script on GitHub

1. Manually install using the official website installation package 1. Download opencv2.4.9

: http://opencv.org/

Now the latest version of the Opencv3.0 Alpha version has come out, you can also try.

2. Install the necessary dependent libraries
sudo apt-get install build-essential libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg62-dev Libtiff4-dev Libswscale-dev libjasper-dev Libopencv-dev pkg-config python-dev python-numpy
3. Installing OPENCV

Switch to the directory where the OPENCV installation package is located:cd/home/fishce

Unzip the downloaded OPENCV installation package:Unzip Opencv-2.4.9.zip

Go to unzip directory:CD opencv-2.4.9

New Release directory:mkdir release

Enter release:CD release

Cmake-d cmake_build_type=release-dcmake_install_prefix=/usr/local.

Make

sudo make install

4. Configure the Library

Open/etc/ld.so.conf.d/opencv.conf

sudo vim/etc/ld.so.conf.d/opencv.conf

Enter/usr/local/lib in the file

Save exit

sudo ldconfig

Since this opencv2.4.9 installation is complete!

2. Install using the GitHub installation script 1. Download the installation script

: Https://github.com/jayrambhia/Install-OpenCV

2. Unzip the script and enter the appropriate installation folder for the system.

Unzip Install-opencv-master.zip

CD Install-opnecv-master/ubuntu

3. Install the dependent libraries and install them

sudo./dependencies.sh

sudo 2.4/opencv2_4_9.sh

It is recommended to install it in the second way, which is simple and automatic. If the installation is unsuccessful, you can consider the first way.

Reference blog:

Http://www.cnblogs.com/jeakon/archive/2013/05/08/3066469.html

http://my.oschina.net/u/1757926/blog/293976

http://blog.csdn.net/a1429331875/article/details/31539129

Ubuntu14.04+cuda6.5+opencv2.4.9+matlab2013a+caffe Configuration Record (iii)--Installation Opencv2.4.9

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.