Skip to main content

Notice: This Wiki is now read only and edits are no longer 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.3 (Europa) and CDT 4.0)
(Eclipse 3.4 (Ganymede) and CDT 5.0)
Line 29: Line 29:
 
=== Eclipse 3.4 (Ganymede) and CDT 5.0 ===
 
=== Eclipse 3.4 (Ganymede) and CDT 5.0 ===
  
This needs to be updated for Eclipse 3.4 (Ganymede and CDT 5.0.x) and the UPC support is included in that as well.
+
Installation instructions for Eclipse 3.4.x and CDT 5.0.x
Installation is roughly the same.
+
  
Installation instructions for Eclipse 3.3.x and CDT 4.0.x
+
# Download Eclipse 3.4.x and CDT 5.0.x - either:
 
+
## Eclipse 3.4.x (aka Ganymede, such as "Eclipse Classic" version) from the [http://www.eclipse.org/downloads Eclipse downloads site], then install CDT on top of that, or
# Download Eclipse 3.3.x and CDT 4.0.x - either:
+
## 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)
## Eclipse 3.3.x (aka Europa, 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.)
+
 
# To use the update manager to install CDT+UPC support, or just UPC support:
 
# To use the update manager to install CDT+UPC support, or just UPC support:
 
## Start Eclipse
 
## Start Eclipse
## Help > Software Updates > Find and Install ...  Search for New Features to Install, hit Next.
+
## Help > Software Updates ...   
## 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"
+
## Select "Available Software" tab at top
## Make sure it's checked, and hit Finish.
+
## Select "Add Site..."
## Select a mirror; if you have trouble with mirrors, scroll to the bottom and select the last one.  Hit OK.
+
## Select "New Remote Site" and enter http://download.eclipse.org/tools/cdt/releases/ganymede
## 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.
+
## Expand the item to see the features it includes.
## Step through the next few screens to accept license agreements, etc. and restart Eclipse when prompted.
+
## Check the features you want to install.  For example, check the CDT Main Features, and under CDT Optional Features, check "Unified Parallel C Support"
 +
## Click the "Install" Button in the upper right corner.
 +
## Review the items that appear in the "Install" Dialog, and click "Next>"
 +
## Accept the license terms, and click "Finish"
 +
## The CDT features are downloaded and installed; restart Eclipse when prompted.
 +
 
 
# To install without using a remote update site:
 
# To install without using a remote update site:
## Download the "cdt master" file from the [http://download.eclipse.org/tools/cdt/builds/ 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.
+
## Download the "cdt master" file from the [http://download.eclipse.org/tools/cdt/builds/ 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.
 
## Launch Eclipse, bring up software updates as described above
 
## Launch Eclipse, bring up software updates as described above
##* Help, Software Updates, Find and Install...  Search for New Features to Install, hit Next.
+
##* Help, Software Updates...  Under Available Software, Click "Add Site" then click "Archive..."
## Select "New Archived Site" and enter the location of the cdt-master zip you downloaded.
+
## Enter the location of the cdt-master zip you downloaded.
 
## Continue as above and select the CDT and/or UPC features you want to install.
 
## Continue as above and select the CDT and/or UPC features you want to install.
 
## Restart eclipse when prompted.
 
## 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.
+
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:
 +
# Open Eclipse Preferences (Window> Preferences or Eclipse>Preferences on Mac OSX)
 +
# Modify Content types / File associations to recognize ".c" files for UPC (Need to document exactly how to do this.)

Revision as of 18:05, 8 December 2008

Setup to use UPC with CDT

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.

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 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)
  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.
  1. 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.

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. Modify Content types / File associations to recognize ".c" files for UPC (Need to document exactly how to do this.)

Back to the top