Difference between revisions of "PTP/environment setup"

From Eclipsepedia

< PTP
Jump to: navigation, search
(Setup)
(Checkout PTP Plugins)
Line 55: Line 55:
 
| Remote Tools Plugins (optional) || [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp-remotetools-2.0-committer.psf?cvsroot=Tools_Project ptp-remotetools-2.0-committer.psf] ||  [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp-remotetools-2.0-anonymous.psf?cvsroot=Tools_Project ptp-remotetools-2.0-anonymous.psf]
 
| Remote Tools Plugins (optional) || [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp-remotetools-2.0-committer.psf?cvsroot=Tools_Project ptp-remotetools-2.0-committer.psf] ||  [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp-remotetools-2.0-anonymous.psf?cvsroot=Tools_Project ptp-remotetools-2.0-anonymous.psf]
 
|-
 
|-
| RSE Support (optional) || [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp-rse-2.0-committer.psf?cvsroot=Tools_Project ptp-rse-2.0-committer.psf] ||  [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp-rse-2.0-anonymous.psf?cvsroot=Tools_Project ptp-rse-2.0-anonymous.psf]
+
| RSE Support Plugins (optional) || [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp-rse-2.0-committer.psf?cvsroot=Tools_Project ptp-rse-2.0-committer.psf] ||  [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp-rse-2.0-anonymous.psf?cvsroot=Tools_Project ptp-rse-2.0-anonymous.psf]
 
|-
 
|-
 
| Parallel Language Development Tools (optional) || [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp-pldt-2.0-committer.psf?cvsroot=Tools_Project ptp-pldt-2.0-committer.psf] ||  [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp-pldt-2.0-anonymous.psf?cvsroot=Tools_Project ptp-pldt-2.0-anonymous.psf]
 
| Parallel Language Development Tools (optional) || [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp-pldt-2.0-committer.psf?cvsroot=Tools_Project ptp-pldt-2.0-committer.psf] ||  [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp-pldt-2.0-anonymous.psf?cvsroot=Tools_Project ptp-pldt-2.0-anonymous.psf]
Line 61: Line 61:
 
|}
 
|}
  
## Expand '''Head->org.eclipse.ptp'''
+
Use the files in the '''Committer Access''' column if you are a committer. Otherwise, use the files in the '''Anonymous Access''' column.
## Expand '''core''' directory and select all projects <u>except</u> '''old , org.eclipse.ptp.simulation.core , and org.eclipse.simulation.ui'''
+
 
## Right-click and select 'Check Out'
+
# Download the project set files for the components that you wish to checkout. At a minimum you will need the core and resource manager plugins. You will also need ''either'' the remote tools plugins or the RSE support plugins (assuming you installed RSE).
## Expand '''debug''' directory and select all projects <u>except</u> '''old'''
+
# If you are working on the PLDT then download this project set file also.
## Right-click and select 'Check Out'
+
# Switch to the Plug-in Development perspective.
## Expand '''releng''' directory and select all projects <u>except</u> '''old'''
+
# For each file you downloaded:
## Right-click and select 'Check Out'
+
## Right click in the Package Explorer and select Import...
## Expand '''rms''' directory and select the resource manager(s) you need.  Probably <i>at least</i> orte, and possibly not bluegene.
+
## Open Team and click on Team Project Set. Click Next.
## Right-click and select 'Check Out'
+
## Browse to the file and open it.
## (Optional, to get PLDT) Expand '''tools''' directory and select all the org.eclipse.ptp.pldt* projects.  
+
## Click Finish.
## Right-click and select 'Check Out'
+
 
# Build OpenMPI Proxy
+
You should now have all the plugins in your workspace.
## Follow OpenMPI build directions as listed in [http://www.eclipse.org/ptp/docs/releases/release-1.1.1.php PTP Release Notes]
+
 
## Follow the same directions to build your proxy plugin (sh BUILD for your platform), make sure it is the one in your workspace directory.
+
== Build OpenMPI Proxy ==
### Be sure to export this environment variable before compiling: <code>LD_LIBRARY_PATH=/usr/local/lib</code>
+
 
# Close unrelated projects.
+
# Follow OpenMPI build directions as listed in [http://www.eclipse.org/ptp/docs/releases/release-1.1.1.php PTP Release Notes]
## Close '''org.eclipse.ptp.debug.sdm , org.eclipse.ptp.orte.proxy , org.eclipse.ptp.proxy.tests'''
+
# Follow the same directions to build your proxy plugin (sh BUILD for your platform), make sure it is the one in your workspace directory.
# Create an eclipse application launch configuration
+
## Be sure to export this environment variable before compiling: <code>LD_LIBRARY_PATH=/usr/local/lib</code>
## Click on '''org.eclipse.ptp.core''', Click on Run, Run as '''Eclipse Application'''
+
 
# Enjoy!!!
+
== Create an eclipse application launch configuration ==
 +
 
 +
Click on '''org.eclipse.ptp.core''', Click on Run, Run as '''Eclipse Application'''
  
 
== References ==
 
== References ==

Revision as of 11:09, 3 January 2008

Contents

PTP Developer Environment Setup (PTP 2.0)

Prerequisites

  1. Java 1.5 or later (Note: for Linux, must be Sun or IBM's)
  2. Eclipse 3.3.x
  3. CDT 4.0
  4. OpenMPI 1.2 (the earlier 1.0.2 version is also supported)
  5. gdb 6.3 or later (earlier versions may also work)

Setup

Install Eclipse

Download and Install Eclipse 3.3

Install Features

PTP development requires CDT 4.0 and optionally RSE 2.0. RSE is is only required if you wish to use it for remote access. The preferred method for remote access is now to use the Remote Tools plugins that are part of PTP.

Install as follows:

  1. Launch Eclipse (as root if you installed Eclipse in a system directory)
  2. From the menu select: Help->Software Update->Find and Install
  3. Select Search for new features to install, click Next
  4. Select Europa Discovery Site, click Finish
  5. Select a valid mirror, click Ok
  6. Expand Europa Discovery Site
  7. Select C and C++ Development
  8. Select Remote Access and Device Development->Remote System Explorer... if you wish to install RSE
  9. Click Next
  10. Read and check I accept click Next and Finish.
  11. Click Install All
  1. Setup CVS Access (Howto)
    1. In Eclipse switch to CVS Repository Exploring perspective.
    2. Click on the Add CVS Repository Icon in the CVS Repositories view.
    3. Add the following information, then click Finish:
      1. Host - dev.eclipse.org
      2. Repository Paths - /cvsroot/tools
      3. User - anonymous
      4. Password - (leave blank)
      5. Connection Type - pserver

Checkout PTP Plugins

The easiest way to do this is to import using team project sets. The following table summarizes the available sets:

Project Set Contents Committer Access Anonymous Access
Core PTP Plugins (required) ptp-2.0-committer.psf ptp-2.0-anonymous.psf
Resource Manager Plugins (required) ptp-rms-2.0-committer.psf ptp-rms-2.0-anonymous.psf
Remote Tools Plugins (optional) ptp-remotetools-2.0-committer.psf ptp-remotetools-2.0-anonymous.psf
RSE Support Plugins (optional) ptp-rse-2.0-committer.psf ptp-rse-2.0-anonymous.psf
Parallel Language Development Tools (optional) ptp-pldt-2.0-committer.psf ptp-pldt-2.0-anonymous.psf

Use the files in the Committer Access column if you are a committer. Otherwise, use the files in the Anonymous Access column.

  1. Download the project set files for the components that you wish to checkout. At a minimum you will need the core and resource manager plugins. You will also need either the remote tools plugins or the RSE support plugins (assuming you installed RSE).
  2. If you are working on the PLDT then download this project set file also.
  3. Switch to the Plug-in Development perspective.
  4. For each file you downloaded:
    1. Right click in the Package Explorer and select Import...
    2. Open Team and click on Team Project Set. Click Next.
    3. Browse to the file and open it.
    4. Click Finish.

You should now have all the plugins in your workspace.

Build OpenMPI Proxy

  1. Follow OpenMPI build directions as listed in PTP Release Notes
  2. Follow the same directions to build your proxy plugin (sh BUILD for your platform), make sure it is the one in your workspace directory.
    1. Be sure to export this environment variable before compiling: LD_LIBRARY_PATH=/usr/local/lib

Create an eclipse application launch configuration

Click on org.eclipse.ptp.core, Click on Run, Run as Eclipse Application

References

Eclipse Downloads [1] CDT Downloads Page [2] CVS Howto [3] PTP Release Notes [4]