Quick configuration of Ubuntu + EclipseCDT + Opencv2.3.1 Environment

Source: Internet
Author: User
We need to use OpenCV for Development recently and use it in a linux environment. Think about Ubuntu, which I have been using, as a very good linux platform. It is fast to install and easy to solve problems (community-based ). Because of its powerful cross-platform and open-source features and support for multi-Programming Language Environments, Ubuntu + Eclipse has become the first choice in a variety of combinations. The tutorial begins with the installation of Eclipse: 1. The setting Shortcut of Eclipse + CDT Ctrl + alt +

We need to use OpenCV for Development recently and use it in a linux environment. Think about Ubuntu, which I have been using, as a very good linux platform. It is fast to install and easy to solve problems (community-based ). Because of its powerful cross-platform and open-source features and support for multi-Programming Language Environments, Ubuntu + Eclipse has become the first choice in a variety of combinations. The tutorial begins with Eclipse installation:

1. Eclipse + CDT Construction

Shortcut Key Ctrl + alt + T summon terminal run

Sudo apt-get install eclipse

The eclipse integrated development environment (including JDK) is automatically downloaded and installed. By default, only the java environment is available. Because OpenCV is based on the C/C ++ language, we need to install CDT. Open Eclipse> Help> Install New Software and enter

Cdt-http://download.eclipse.org/tools/cdt/releases/indigo

(The leftmost cdt is your own name, which can be changed at will, but the URL later must be correct.) as of today, the eclipse version obtained from the source is indigo, so we also need to select the indigo version for CDT. after entering the text, wait for a moment in pengding ..... after parsing, check the CDT Main Features and click Next. until finish.

It will take a while to install it automatically. So far, our eclipse integrates the C/C ++ development environment, that is, the Eclipse + CDT environment.

Ii. Installation of G ++ and OpenCV

The installation of G ++ is also very simple. The shortcut key Ctrl + alt + T calls the terminal to run

Sudo apt-get install g ++

For the installation of OpenCV library, refer to idea

Apt-get install libcv-dev libcvaux-dev libhighgui-dev

At this time, the header file has been installed in/usr/include/opencv and/usr/include/opencv2 (why do you need to mention this? Because it will be used later !)

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.