Difference between revisions of "Slicer3::New Eclipse Instructions"

From Slicer Wiki
Jump to: navigation, search
(Creating revised Eclipse instructions)
 
Line 4: Line 4:
 
I currently use Eclipse "Ganymede" (3.4) and "Galileo" (3.5) versions, but this also works with Eclipse Version 3.3 and higher.  The easiest way to get started is to select an eclipse distribution which already includes CDT (the C++ tools) integrated.  This is available from [http://www.eclipse.org/downloads http://www.eclipse.org/downloads].  Download Eclipse and unpack the downloaded archive to the destination you want. You start Eclipse with ./eclipse from the base directory of your eclipse installation.  
 
I currently use Eclipse "Ganymede" (3.4) and "Galileo" (3.5) versions, but this also works with Eclipse Version 3.3 and higher.  The easiest way to get started is to select an eclipse distribution which already includes CDT (the C++ tools) integrated.  This is available from [http://www.eclipse.org/downloads http://www.eclipse.org/downloads].  Download Eclipse and unpack the downloaded archive to the destination you want. You start Eclipse with ./eclipse from the base directory of your eclipse installation.  
 
==Configure Eclipse:==
 
==Configure Eclipse:==
As computers become more powerful, it is less necessary to adjust the runtime parameters of Eclipse, but some tweaking hints are listed on the original Eclipse page [Eclipse | here].
+
As computers become more powerful, it is less necessary to adjust the runtime parameters of Eclipse, but some tweaking hints are listed on the original Eclipse page [Slicer3::Eclipse | here].
  
 
==Modules for Eclipse you need:==
 
==Modules for Eclipse you need:==
Before integrate the source-code into Eclipse we need two separate modules.
+
As mentioned above, it is easiest to start with an integrated Eclipse containing CDT already.  However these prebuilt configurations were available only in 32-bit versions the time of this writing.  So some users who need full 64-bit versions may need to configure Eclipse by hand.  If this is the case,  the CDT tools can be integrated by hand into Eclipse.  If you want to use Eclipse to connect to Slicer's SVN repository and compare versions, update source, etc. (highly recommended), then you'll need to add the Subclipse package to Eclipse.   Please see the original Eclipse Wiki page [Slicer3::Eclipse | here] for instructions adding these packages into Eclipse. The URLs for these two Eclipse plug-ins are:
# CDT – C++ Environment: [http://www.eclipse.org/cdt/downloads.php http://www.eclipse.org/cdt/downloads.php]
 
# SubClipse: [http://subclipse.tigris.org/install.html http://subclipse.tigris.org/install.html]
 
  
I use right now [http://download.eclipse.org/tools/cdt/builds/4.0.0/index.html CDT 4.0 - nightly build] which is much more feature rich then 3.1.
+
# CDT – C++ Environment: [http://www.eclipse.org/cdt http://www.eclipse.org/cdt]
On the other Hand this is still under development and though not stable in any situation.
+
# Subclipse: [http://subclipse.tigris.org/install.html http://subclipse.tigris.org/install.html]
  
* To install these Modules, start Eclipse and go to Help->Software Updates->Find And Install
 
[[Image:Eclipse-Step1.png]]
 
* Click on “Search for new features to install” and then on “Next”:
 
[[Image:Eclipse-Step2.png]]
 
* Now click the “New Remote Site...” Button and insert the appropriate informations in the input fields.
 
* For CDT this should look like this:
 
[[Image:Eclipse-Step3.png]]
 
* For SubClipse:
 
[[Image:Eclipse-Step4.png]]
 
After adding these to module Site just click on the “Next” Button and Install both items.
 
  
You will be prompt to restart Eclipse. After the restart you're ready to get the sources into Eclipse.
 
 
==Creating Project and getting the Source-Code for it:==
 
==Creating Project and getting the Source-Code for it:==
  

Revision as of 18:06, 18 February 2010

Home < Slicer3::New Eclipse Instructions

Revised Howto Setup Eclipse to build/edit the Slicer3 Development Environment:

Installing Eclipse:

I currently use Eclipse "Ganymede" (3.4) and "Galileo" (3.5) versions, but this also works with Eclipse Version 3.3 and higher. The easiest way to get started is to select an eclipse distribution which already includes CDT (the C++ tools) integrated. This is available from http://www.eclipse.org/downloads. Download Eclipse and unpack the downloaded archive to the destination you want. You start Eclipse with ./eclipse from the base directory of your eclipse installation.

Configure Eclipse:

As computers become more powerful, it is less necessary to adjust the runtime parameters of Eclipse, but some tweaking hints are listed on the original Eclipse page [Slicer3::Eclipse | here].

Modules for Eclipse you need:

As mentioned above, it is easiest to start with an integrated Eclipse containing CDT already. However these prebuilt configurations were available only in 32-bit versions the time of this writing. So some users who need full 64-bit versions may need to configure Eclipse by hand. If this is the case, the CDT tools can be integrated by hand into Eclipse. If you want to use Eclipse to connect to Slicer's SVN repository and compare versions, update source, etc. (highly recommended), then you'll need to add the Subclipse package to Eclipse. Please see the original Eclipse Wiki page [Slicer3::Eclipse | here] for instructions adding these packages into Eclipse. The URLs for these two Eclipse plug-ins are:

  1. CDT – C++ Environment: http://www.eclipse.org/cdt
  2. Subclipse: http://subclipse.tigris.org/install.html


Creating Project and getting the Source-Code for it:

  • Right-Click on the project folder
  • click on properties (or just press Alt+Enter)

Eclipse-Step5.png

  • then at C/C++ Make Project

Eclipse-Step6.png

  • click on “Workspace...”
  • select the unix folder from tcl or tk

Eclipse-Step7.png

Compile the projects:

After successfully configuring all projects eclipse should start automatically building the application. If this is not the case, right click on project and select “Build Project” and see how the project is compiling.

Download

How to Setup Eclipse – Slicer3 Development Environment