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 !)