Jump to: navigation, search

Difference between revisions of "PTP/environment setup"

< PTP
(Setup)
(Setup)
Line 10: Line 10:
 
== Setup ==
 
== Setup ==
  
# [http://www.eclipse.org/downloads/ Download] and Install Eclipse 3.3
+
=== Install Eclipse ===
# [http://www.eclipse.org/cdt/downloads.php Install] CDT 4.0 (*Note: to build PTP you may need the complete CDT SDK (Instructions below install the CDT runtime). Instead of the Europa Discovery Site, use http://download.eclipse.org/tools/cdt/releases/europa  as the update site to get the CDT SDK too.)
+
 
## Launch Eclipse as root
+
[http://www.eclipse.org/downloads/ Download] and Install Eclipse 3.3
## From the menu select: '''Help->Software Update->Find and Install'''
+
 
## Select '''Search for new features to install''', click Next
+
=== Install Features ===
## Select '''Europa Discovery Site''', click Finish
+
 
## Select a valid mirror, click Ok
+
# [http://www.eclipse.org/cdt/downloads.php Install] CDT 4.0
## Expand '''Europa Discovery Site''' and select '''C and C++ Development''', click Next
+
# (Optionally) install RSE. This is only required if you wish to use RSE for remote access
## Read and check '''I accept''' click Next and Finish.
+
 
## Click '''Install All'''
+
Install as follows:
# If you wish to use RSE for remote access then install RSE 2.0. This step is optional.
+
 
## Launch Eclipse as root
+
# Launch Eclipse (as root if you installed Eclipse in a system directory)
## From the menu select: '''Help->Software Update->Find and Install'''
+
# From the menu select: '''Help->Software Update->Find and Install'''
## Select '''Search for new features to install''', click Next
+
# Select '''Search for new features to install''', click Next
## Select '''Europa Discovery Site''', click Finish
+
# Select '''Europa Discovery Site''', click Finish
## Select a valid mirror, click Ok
+
# Select a valid mirror, click Ok
## Expand '''Europa Discovery Site''' and select '''Remote Access and Device Development->Remote System Explorer...''', click Next
+
# Expand '''Europa Discovery Site'''
## Read and check '''I accept''' click Next and Finish.
+
# Select '''C and C++ Development'''
## Click '''Install All'''
+
# Select '''Remote Access and Device Development->Remote System Explorer...''' if you wish to install RSE
 +
# Click Next
 +
# Read and check '''I accept''' click Next and Finish.
 +
# Click '''Install All'''
 +
 
 
# Setup CVS Access ([http://wiki.eclipse.org/CVS_Howto Howto])
 
# Setup CVS Access ([http://wiki.eclipse.org/CVS_Howto Howto])
 
## In Eclipse switch to '''CVS Repository Exploring''' perspective.
 
## In Eclipse switch to '''CVS Repository Exploring''' perspective.
Line 38: Line 42:
 
### Password - '''(leave blank)'''
 
### Password - '''(leave blank)'''
 
### Connection Type - '''pserver'''
 
### Connection Type - '''pserver'''
# Checkout plugins from CVS. The easiest way to do this is to import using team project sets. The following table summarizes the available sets:
+
 
{|
+
=== Checkout PTP Plugins ===
}
+
 
 +
The easiest way to do this is to import using team project sets. The following table summarizes the available sets:
 +
 
 +
{| border="1" callpadding="2"
 +
! Project Set Contents !! Committer Access !! Anonymous Access
 +
|-
 +
| Core PTP Plugins || [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp-2.0-committer.psf?cvsroot=Tools_Project] ||  [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp-2.0-anonymous.psf?cvsroot=Tools_Project]
 +
|-
 +
|}
 +
 
 
## Expand '''Head->org.eclipse.ptp'''
 
## Expand '''Head->org.eclipse.ptp'''
 
## Expand '''core''' directory and select all projects <u>except</u> '''old , org.eclipse.ptp.simulation.core , and org.eclipse.simulation.ui'''
 
## Expand '''core''' directory and select all projects <u>except</u> '''old , org.eclipse.ptp.simulation.core , and org.eclipse.simulation.ui'''

Revision as of 09:52, 3 January 2008

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

  1. Install CDT 4.0
  2. (Optionally) install RSE. This is only required if you wish to use RSE for remote access

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 [1] [2]
    1. Expand Head->org.eclipse.ptp
    2. Expand core directory and select all projects except old , org.eclipse.ptp.simulation.core , and org.eclipse.simulation.ui
    3. Right-click and select 'Check Out'
    4. Expand debug directory and select all projects except old
    5. Right-click and select 'Check Out'
    6. Expand releng directory and select all projects except old
    7. Right-click and select 'Check Out'
    8. Expand rms directory and select the resource manager(s) you need. Probably at least orte, and possibly not bluegene.
    9. Right-click and select 'Check Out'
    10. (Optional, to get PLDT) Expand tools directory and select all the org.eclipse.ptp.pldt* projects.
    11. Right-click and select 'Check Out'
  1. 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
  2. Close unrelated projects.
    1. Close org.eclipse.ptp.debug.sdm , org.eclipse.ptp.orte.proxy , org.eclipse.ptp.proxy.tests
  3. Create an eclipse application launch configuration
    1. Click on org.eclipse.ptp.core, Click on Run, Run as Eclipse Application
  4. Enjoy!!!

References

Eclipse Downloads [3] CDT Downloads Page [4] CVS Howto [5] PTP Release Notes [6]