Changes between Version 4 and Version 5 of Eclipse


Ignore:
Timestamp:
May 20, 2014, 4:28:24 AM (5 years ago)
Author:
Timothy_Gu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Eclipse

    v4 v5  
    1 * '''Download basic "Eclipse Classic" from http://www.eclipse.org/downloads/''' [[BR]]
    2   Some of you might say "Oh, you could download 'Eclipse IDE for C/C++ Developers' all in one installation", but the point is a lot of developers are already using their own version of Eclipse, with various plugins/addons installed, so it is better to show in this tutorial how to do all that in the modular way. That way developers, who already have Eclipse installed with Java/C++/Lua/PHP/custom addons, can just skip this first step and continue, without the need to search on Google how to do all this without breaking heir currently installed version of Eclipse.
     1== Download basic "Eclipse Classic" from http://www.eclipse.org/downloads/ ==
     2Some of you might say "Oh, you could download 'Eclipse IDE for C/C++ Developers' all in one installation", but the point is a lot of developers are already using their own version of Eclipse, with various plugins/addons installed, so it is better to show in this tutorial how to do all that in the modular way. That way developers, who already have Eclipse installed with Java/C++/Lua/PHP/custom addons, can just skip this first step and continue, without the need to search on Google how to do all this without breaking heir currently installed version of Eclipse.
    33
    4 * '''Uncompress and run the Eclipse''' [[BR]]
    5   After uncompressing (usually with "tar xzf eclipse.<version info here>.tar.gz"), you can simply enter the eclipse directory (with "cd eclipse") and run the Eclipse (usually using "./eclipse"). After you start the Eclipse for the first time, it will ask you for the "workspace" directory. This directory will contain your future projects in subdirectories. You can also switch between workspaces if you work for example in Java`/`Lua`/`PHP`/`C++ (as I do) and that way you can organize your projects better, by making separate directories for each programming language, with subdirectories for each new project you work on. Also, you can close the "Welcome" tab, to be able to see the workspace behind it.
     4== Uncompress and run the Eclipse ==
     5After uncompressing (usually with "tar xzf eclipse.<version info here>.tar.gz"), you can simply enter the eclipse directory (with "cd eclipse") and run the Eclipse (usually using "./eclipse"). After you start the Eclipse for the first time, it will ask you for the "workspace" directory. This directory will contain your future projects in subdirectories. You can also switch between workspaces if you work for example in Java`/`Lua`/`PHP`/`C++ (as I do) and that way you can organize your projects better, by making separate directories for each programming language, with subdirectories for each new project you work on. Also, you can close the "Welcome" tab, to be able to see the workspace behind it.
    66
    7 
    8 * '''Install "Eclipse CDT project plugin" (C++ Development Tools)''' [[BR]]
    9   The usual way to do this is to start the Eclipse and go to the "Help - Install New Software" menu option. When the new dialog window shows, you'll have to do 2 things. The first thing is to tell Eclipse from where do you want to download/install stuff. In the latest Eclipse, the field name is named "Work with" and you should select the latest Eclipse version there. In my case, the option was named "Indigo - http://download.eclipse.org/releases/indigo". After that, you should type "C/C++ Development Tools" in the search filter field, below the "Work with" field. The results will appear depending on your Eclipse version, so select all CDT related packages and click "Next", accept the license agreement and install all that. Restart Eclipse if asked.
     7== Install "Eclipse CDT project plugin" (C/C++ Development Tools) ==
     8The usual way to do this is to start the Eclipse and go to the "Help - Install New Software" menu option. When the new dialog window shows, you'll have to do 2 things. The first thing is to tell Eclipse from where do you want to download/install stuff. In the latest Eclipse, the field name is named "Work with" and you should select the latest Eclipse version there. In my case, the option was named "Indigo - http://download.eclipse.org/releases/indigo". After that, you should type "C/C++ Development Tools" in the search filter field, below the "Work with" field. The results will appear depending on your Eclipse version, so select all CDT related packages and click "Next", accept the license agreement and install all that. Restart Eclipse if asked.
    109
    1110  [[Image(snapshot1.png)]]
    1211
    13   If there were any errors during the installation, you can view the error log by going to "Help - About Eclipse SDK", then press the button "Installation Details", switch to the "Configuration" tab and press "View error log" :) Simple, right? :))) I had some issues with certificates, because I was using Debian. More info here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=258301 If that's the case with you too, you can solve that issue by typing in console the following command: "update-ca-certificates -f -v" and repeating the installation process for CDT. Restart Eclipse if asked.
     12If there were any errors during the installation, you can view the error log by going to "Help - About Eclipse SDK", then press the button "Installation Details", switch to the "Configuration" tab and press "View error log" :) Simple, right? :))) I had some issues with certificates, because I was using Debian. More info here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=258301 If that's the case with you too, you can solve that issue by typing in console the following command: "update-ca-certificates -f -v" and repeating the installation process for CDT. Restart Eclipse if asked.
    1413
    15 * '''Install GIT plugin''' [[BR]]
    16   You can use this tutorial: http://www.vogella.de/articles/EGit/article.html or you can just repeat the same installation process as for "cdt" but instead of "C/C++ Development Tools" you need to type "git". The rest is the same. Restart Eclipse if asked.
     14== Install EGit plugin ==
     15EGit allows you to use Git inside Eclipse. You can use this tutorial: http://www.vogella.de/articles/EGit/article.html or you can just repeat the same installation process as for CDT but instead of "C/C++ Development Tools" you need to type "egit". The rest is the same. Restart Eclipse if asked.
    1716
    1817  [[Image(snapshot2.png)]]
    1918
    20 * '''Clone the FFmpeg's git repository''' [[BR]]
    21   In the Eclipse, go to main menu option "File - Import - Git - Projects From Git", paste the git url "git://source.ffmpeg.org/ffmpeg.git" and press the "Clone" button.
     19== Clone the FFmpeg's git repository ==
     20In Eclipse, go to main menu option "File - Import - Git - Projects From Git", paste the git url "git://source.ffmpeg.org/ffmpeg.git" and press the "Clone" button.
    2221
    23 * '''Create new C++ project using existing FFmpeg's source code''' [[BR]]
    24   In the Eclipse, go to main menu option "File - New - Project", then choose "C/C++" and then "Makefile Project with Existing Code" and navigate to the FFmpeg's source code directory you have cloned in the previous step (usually "/home/<username>/git/ffmpeg").
     22== Create new C++ project using existing FFmpeg's source code ==
     23In the Eclipse, go to main menu option "File - New - Project", then choose "C/C++" and then "Makefile Project with Existing Code" and navigate to the FFmpeg's source code directory you have cloned in the previous step (usually "/home/<username>/git/ffmpeg").
    2524
    26 * '''Compile the source code''' [[BR]]
    27   First of all, make sure you have c++, g++, make and other build tools installed. If you are using debian/ubuntu, you can type "apt-get install build-essential". Before you compile the source code for the first time, you'll have to go to your local git directory ("/home/<username>/git/ffmpeg") and type "./configure". After it finishes, go back to Eclipse and use the main menu option "Project - Build All".
     25== Compile the source code ==
     26First of all, make sure you have c++, g++, make and other build tools installed. If you are using debian/ubuntu, you can type "apt-get install build-essential". Before you compile the source code for the first time, you'll have to go to your local git directory ("/home/<username>/git/ffmpeg") and type "./configure". After it finishes, go back to Eclipse and use the main menu option "Project - Build All".
    2827
    2928  [[Image(snapshot3.png)]]