Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "PTP/other tools setup"

< PTP
(Eclipse 3.5 (Galileo) and CDT 6.0)
(Eclipse 3.5 (Galileo) and CDT 6.0)
Line 3: Line 3:
 
=== Eclipse 3.5 (Galileo) and CDT 6.0 ===
 
=== Eclipse 3.5 (Galileo) and CDT 6.0 ===
  
Installation instructions for Eclipse 3.5.x and CDT 5.0.x
+
Installation instructions for Eclipse 3.5.x and CDT 6.0.x
  
# Download Eclipse 3.5.x and CDT 6.0.x - either:
+
* Download Eclipse 3.5.x and CDT 6.0.x - either:
## Eclipse 3.5.x (aka Galileo, such as "Eclipse Classic" version) from the [http://www.eclipse.org/downloads Eclipse downloads site], then install CDT on top of that, or
+
# Eclipse 3.5.x (aka Galileo, such as "Eclipse Classic" version) from the [http://www.eclipse.org/downloads Eclipse downloads site], then install CDT on top of that, or
## Download the "Eclipse IDE for C/C++ Developers" from the [http://www.eclipse.org/downloads Eclipse downloads site] which already includes basic Eclipse + CDT (without Java, Plug-in development environment, etc. - but also without the optional features including UPC support)
+
# Download the "Eclipse IDE for C/C++ Developers" from the [http://www.eclipse.org/downloads Eclipse downloads site] which already includes basic Eclipse + CDT (without Java, Plug-in development environment, etc. - but also '''without''' the optional features including UPC support)
# To use the update manager to install CDT+UPC support, or just UPC support:
+
# Now, do ''either'' of the steps below...
## Start Eclipse
+
* '''Online install to get the current stable released version of CDT: ''' To use the update manager to install CDT+UPC support, or just UPC support:
## Help > Install New Software ...   
+
# Start Eclipse
## Select "Add ..." to add an update site
+
# Help > Install New Software ...   
## Select "New Remote Site" and enter http://download.eclipse.org/tools/cdt/releases/galileo
+
# Select "Add ..." to add an update site
## Expand the item to see the features it includes.
+
# Select "New Remote Site" and enter http://download.eclipse.org/tools/cdt/releases/galileo
## Check the features you want to install.  For example, check the CDT Main Features, and under CDT Optional Features, check "Unified Parallel C Support" - suggest you also OMIT the "Eclipse CDT Testing Feature" as it can be confusing for users.
+
# Expand the item to see the features it includes.
## Click the "Install" Button in the upper right corner.
+
# Check the features you want to install.  For example, check the CDT Main Features, and under CDT Optional Features, check "Unified Parallel C Support" - suggest you also OMIT the "Eclipse CDT Testing Feature" as it can be confusing for users.
## Review the items that appear in the "Install" Dialog, and click "Next>"
+
# Click the "Install" Button in the upper right corner.
## Accept the license terms, and click "Finish"  
+
# Review the items that appear in the "Install" Dialog, and click "Next>"
## The CDT features are downloaded and installed; restart Eclipse when prompted.
+
# Accept the license terms, and click "Finish"  
# To install without using a remote update site:
+
# The CDT features are downloaded and installed; restart Eclipse when prompted.
## Download the "cdt master" file from the [http://download.eclipse.org/tools/cdt/builds/ CDT builds site] - choose the 6.0.x (whatever is latest) release of CDT and download the lastest "cdt-master-YYMMDD.zip" file.  Save it on your computer.
+
* '''Offline install of CDT which can also be used to get even more recent builds of CDT:''' To install without using a remote update site:
## Launch Eclipse, bring up software updates as described above
+
# Download the "cdt master" file from the [http://download.eclipse.org/tools/cdt/builds/ CDT builds site] - choose the 6.0.x (whatever is latest) release of CDT and download the lastest "cdt-master-YYMMDD.zip" file.  Save it on your computer.
##* Help, Install New Software...  Click "Add" then click "Archive..."
+
# Launch Eclipse, bring up software updates as described above
## Enter the location of the cdt-master zip you downloaded.
+
#* Help, Install New Software...  Click "Add" then click "Archive..."
## Continue as above and select the CDT and/or UPC features you want to install.
+
# Enter the location of the cdt-master zip you downloaded.
## Restart eclipse when prompted.
+
# Continue as above and select the CDT and/or UPC features you want to install.
 +
# Restart eclipse when prompted.
  
 
=== Eclipse 3.4 (Ganymede) and CDT 5.0 ===
 
=== Eclipse 3.4 (Ganymede) and CDT 5.0 ===

Revision as of 15:34, 18 September 2009

Setup to use UPC with CDT

Eclipse 3.5 (Galileo) and CDT 6.0

Installation instructions for Eclipse 3.5.x and CDT 6.0.x

  • Download Eclipse 3.5.x and CDT 6.0.x - either:
  1. Eclipse 3.5.x (aka Galileo, such as "Eclipse Classic" version) from the Eclipse downloads site, then install CDT on top of that, or
  2. Download the "Eclipse IDE for C/C++ Developers" from the Eclipse downloads site which already includes basic Eclipse + CDT (without Java, Plug-in development environment, etc. - but also without the optional features including UPC support)
  3. Now, do either of the steps below...
  • Online install to get the current stable released version of CDT: To use the update manager to install CDT+UPC support, or just UPC support:
  1. Start Eclipse
  2. Help > Install New Software ...
  3. Select "Add ..." to add an update site
  4. Select "New Remote Site" and enter http://download.eclipse.org/tools/cdt/releases/galileo
  5. Expand the item to see the features it includes.
  6. Check the features you want to install. For example, check the CDT Main Features, and under CDT Optional Features, check "Unified Parallel C Support" - suggest you also OMIT the "Eclipse CDT Testing Feature" as it can be confusing for users.
  7. Click the "Install" Button in the upper right corner.
  8. Review the items that appear in the "Install" Dialog, and click "Next>"
  9. Accept the license terms, and click "Finish"
  10. The CDT features are downloaded and installed; restart Eclipse when prompted.
  • Offline install of CDT which can also be used to get even more recent builds of CDT: To install without using a remote update site:
  1. Download the "cdt master" file from the CDT builds site - choose the 6.0.x (whatever is latest) release of CDT and download the lastest "cdt-master-YYMMDD.zip" file. Save it on your computer.
  2. Launch Eclipse, bring up software updates as described above
    • Help, Install New Software... Click "Add" then click "Archive..."
  3. Enter the location of the cdt-master zip you downloaded.
  4. Continue as above and select the CDT and/or UPC features you want to install.
  5. Restart eclipse when prompted.

Eclipse 3.4 (Ganymede) and CDT 5.0

Installation instructions for Eclipse 3.4.x and CDT 5.0.x

  1. Download Eclipse 3.4.x and CDT 5.0.x - either:
    1. Eclipse 3.4.x (aka Ganymede, such as "Eclipse Classic" version) from the Eclipse Ganymede downloads site, then install CDT on top of that, or
    2. Download the "Eclipse IDE for C/C++ Developers" from the -- need URL for older version of this -- Eclipse downloads site which already includes basic Eclipse + CDT (without Java, Plug-in development environment, etc. - but also without the optional features including UPC support) - need URL for (older) Ganymede version of this.
  2. To use the update manager to install CDT+UPC support, or just UPC support:
    1. Start Eclipse
    2. Help > Software Updates ...
    3. Select "Available Software" tab at top
    4. Select "Add Site..."
    5. Select "New Remote Site" and enter http://download.eclipse.org/tools/cdt/releases/ganymede
    6. Expand the item to see the features it includes.
    7. Check the features you want to install. For example, check the CDT Main Features, and under CDT Optional Features, check "Unified Parallel C Support"
    8. Click the "Install" Button in the upper right corner.
    9. Review the items that appear in the "Install" Dialog, and click "Next>"
    10. Accept the license terms, and click "Finish"
    11. The CDT features are downloaded and installed; restart Eclipse when prompted.
  3. To install without using a remote update site:
    1. Download the "cdt master" file from the CDT builds site - choose the 5.0.x (whatever is latest) release of CDT and download the lastest "cdt-master-YYMMDD.zip" file. Save it on your computer.
    2. Launch Eclipse, bring up software updates as described above
      • Help, Software Updates... Under Available Software, Click "Add Site" then click "Archive..."
    3. Enter the location of the cdt-master zip you downloaded.
    4. Continue as above and select the CDT and/or UPC features you want to install.
    5. Restart eclipse when prompted.

Eclipse 3.3 (Europa) and CDT 4.0

Note: this is similar to http://www.eclipse.org/ptp/docs/install.html which includes screen shots, but that describes an older release of Eclipse and CDT. This description is a bit newer and mentions UPC..

Installation instructions for Eclipse 3.3.x and CDT 4.0.x

  1. Download Eclipse 3.3.x and CDT 4.0.x - either:
    1. See Setting up PTP development Environment for 2.0
  2. To use the update manager to install CDT+UPC support, or just UPC support:
    1. Start Eclipse
    2. Help > Software Updates > Find and Install ... Search for New Features to Install, hit Next.
    3. Select "New Remote Site" and enter http://download.eclipse.org/tools/cdt/releases/europa which can be named e.g. "CDT 4.0 Update Site"
    4. Make sure it's checked, and hit Finish.
    5. Select a mirror; if you have trouble with mirrors, scroll to the bottom and select the last one. Hit OK.
    6. When the Update site is loaded you see another Dialog. Expand the item for the new update site and check the features you want to install. Either the CDT runtime as well as the UPC feature, or just the UPC feature.
    7. Step through the next few screens to accept license agreements, etc. and restart Eclipse when prompted.
  3. To install without using a remote update site:
    1. Download the "cdt master" file from the CDT builds site - choose the 4.0.x (whatever is latest) release of CDT and download the lastest "cdt-master-YYMMDD.zip" file. Save it on your computer.
    2. Launch Eclipse, bring up software updates as described above
      • Help, Software Updates, Find and Install... Search for New Features to Install, hit Next.
    3. Select "New Archived Site" and enter the location of the cdt-master zip you downloaded.
    4. Continue as above and select the CDT and/or UPC features you want to install.
    5. Restart eclipse when prompted.

Create a C project in CDT, and edit a file whose extension is ".upc" and you will get the UPC extensions to the editor.

Using UPC features

Switch to the C/C++ Perspective if it's not already active (Window -> Open Perspective...) Create a C project in CDT, and edit a file whose extension is ".upc" and you will get the UPC extensions to the editor, e.g. syntax highlighting on UPC language features.

To get the UPC editor extensions on .c files, do the following:

  1. Open Eclipse Preferences (Window> Preferences or Eclipse>Preferences on Mac OSX)
  2. Open C/C++, Language Mappings add a content type "C Source File" Language "UPC"
  3. To set this for project-specific settings (not on all projects),
    • Open Project Properties for a CDT project (right mouse on project name)
    • Select C/C++ General and check "enable project-specific settings"

You probably also want to change some build settings in CDT to match your UPC compiler. See project properties for this.

Back to the top