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

PTP/other tools setup

< PTP
Revision as of 18:12, 8 December 2008 by Tibbitts.us.ibm.com (Talk | contribs) (Using UPC features)

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.

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"

Back to the top