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/environment setup 21"

< PTP
(Install steps)
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Prerequisites ==
 
== Prerequisites ==
 
# Eclipse 3.4  (Ganymede)
 
# Eclipse 3.4  (Ganymede)
# CDT 5.0
+
# CDT 5.0.2
# To run full PTP parallel application monitoring/debugging: Linux or Mac OS X, and OpenMPI
+
# To run full PTP parallel application monitoring/debugging: Linux or Mac OS X, and OpenMPI or MPICH2
 
# To run/debug remote applications, and/or run only PLDT analysis, OpenMPI isn't required, and all should work on Windows
 
# To run/debug remote applications, and/or run only PLDT analysis, OpenMPI isn't required, and all should work on Windows
  
 
== Install steps ==
 
== Install steps ==
  
=== Install Eclipse ==
+
=== Install Eclipse ===
  
# Install Ganymede   - download directly from http://download.eclipse.org/eclipse/downloads/ - choose 3.4, latest version, full SDK
+
# Install Eclipse Ganymede from http://download.eclipse.org/eclipse/downloads/
# Download CDT 5.0 - get the latest e.g. from http://download.eclipse.org/tools/cdt/builds - save the cdt-master file, to use in software update steps below
+
#* Choose 3.4, latest version, full SDK
# Launch Eclipse (Ganymede)
+
# Download the latest build of CDT 5.0.x (currently 5.0.2) from http://download.eclipse.org/tools/cdt/builds
# Install CDT from the update manager:
+
#* Save the '''cdt-master-5.0.x-IYYYYMMDDHHMM.zip''' file, to use in software update steps below
 +
# Unpack and launch Eclipse
 +
# Install RSE from the Ganymede update site using the update manager:
 
##  Help > Software Updates ...
 
##  Help > Software Updates ...
 
## Make sure 'Available Software' is selected at the top
 
## Make sure 'Available Software' is selected at the top
## Click Add site, archive, and locate the cdt-master-whatever-zip you downloaded above; hit OK
+
## Open '''Ganymede Update Site'''
 +
## Open '''Remote Access and Device Development'''
 +
## Select '''Remote System Explorer End-User Runtime'''
 +
## Click Install ...  Next,  Accept, Finish
 +
# Install CDT from the master file you downloaded in step 2:
 +
##  Help > Software Updates ...
 +
## Make sure 'Available Software' is selected at the top
 +
## Click Add site, archive, and locate the CDT master ZIP file you downloaded above; hit OK
 
## Select at least the 3 items under CDT Main features (make sure they are checked)
 
## Select at least the 3 items under CDT Main features (make sure they are checked)
 
## Click Install ...  Next,  Accept, Finish
 
## Click Install ...  Next,  Accept, Finish
# Install RSE from the update manager:
 
  
 
=== Configure CVS Access ===
 
=== Configure CVS Access ===
  
Switch to the CVS perspective and create a new repository location:
+
# Switch to the CVS perspective and create a new repository location:
* Host: dev.eclipse.org
+
#* Host: dev.eclipse.org
* Repository path:  /cvsroot/tools
+
#* Repository path:  /cvsroot/tools
* User: <yourCommitterID>  or anonymous
+
#* User: <yourCommitterID>  or anonymous
* Password: <yourPW> or empty for anonymous access
+
#* Password: <yourPW> or empty for anonymous access
* Connection type: extssh for committer access, or pserver for anonymous access
+
#* Connection type: extssh for committer access, or pserver for anonymous access
 
+
# After creating the repository location, expand it and expand HEAD.   
After creating the repository location, expand it and expand HEAD.  All the PTP content is under '''org.eclipse.ptp'''.
+
 
+
<b>Note:</b> PTP 2.0 code is now under the PTP_2_0 branch, since PTP 2.1 is now under development.  See http://wiki.eclipse.org/index.php/CVS_FAQ#Browsing_the_Repository
+
for info on using branches (or see example below). You should be able to download the project set files from these links and use them from the branch, rather than from HEAD.
+
<p>For example, to make the PTP 2.0 tags appear, do the following:</p>
+
<ol>
+
      <li>Open the CVS Repositories view for dev.eclipse.org as described above.</li>
+
      <li>Expand HEAD and select the project (org.eclipse.ptp) for which you want to configure tags.</li>
+
      <li>Context Menu-&gt;Configure Branches and Versions...</li>
+
      <li>In the "Browse files for tags" table, select one or more files that contain tags you would like to see.
+
<ul><li>For example, in the left pane under 'Browse files for tags:' expand 'core' and select  the '.project' file</li>
+
        <li>Check the tag 'ptp_2_0' branch tag shown in the right pane (or the 'PTP_2_0_1' version tag)</li>
+
</ul>
+
</li>
+
      <li>Click "Add Checked Tags"</li>
+
      <li>Click "OK". The CVS Repositories view will now display the chosen tags under the Branches and Versions categories. </li>
+
</ol>
+
 
+
=== Checkout PTP Plugins ===
+
 
+
The easiest way to do this is to import using team project sets. The following table summarizes the available sets in the releng/ptp_project_sets project:
+
 
+
{| border="1" callpadding="2"
+
! Project Set Contents !! Committer Access !! Anonymous Access
+
|-
+
| Core PTP Plugins (required) || [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp_project_sets/committer/ptp-2.0-committer.psf?cvsroot=Tools_Project ptp-2.0-committer.psf] ||  [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp_project_sets/anonymous/ptp-2.0-anonymous.psf?cvsroot=Tools_Project ptp-2.0-anonymous.psf]
+
|-
+
| Resource Manager Plugins (required) || [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp_project_sets/committer/ptp-rms-2.0-committer.psf?cvsroot=Tools_Project ptp-rms-2.0-committer.psf] ||  [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp_project_sets/anonymous/ptp-rms-2.0-anonymous.psf?cvsroot=Tools_Project ptp-rms-2.0-anonymous.psf]
+
|-
+
| Remote Tools Plugins (optional) || [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp_project_sets/committer/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_project_sets/anonymous/ptp-remotetools-2.0-anonymous.psf?cvsroot=Tools_Project ptp-remotetools-2.0-anonymous.psf]
+
|-
+
| RSE Support Plugins (optional) || [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.ptp/releng/ptp_project_sets/committer/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_project_sets/anonymous/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_project_sets/committer/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_project_sets/anonymous/ptp-pldt-2.0-anonymous.psf?cvsroot=Tools_Project 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. At a minimum you will need the '''Core PTP Plugins''' and the '''Resource Manager Plugins'''. You will also need ''either (or both of)'' the '''Remote Tools Plugins''' or the '''RSE Support Plugins''' (assuming you installed RSE). If you are working on the PLDT (or want to run it from your runtime workbench) then download this project set file also.
+
  
You can download the files directly from the above links.  They aren't checked into the branch itself.
+
All the PTP content is under '''org.eclipse.ptp'''.
*NOTE: there is a problem, the following instructions should work, but this gets the projects from HEAD. need to figure out how to modify the project sets files... Or... just look in the files to see which projects to check out manually from the PTP_2_0 branch.
+
#Download each  psf file, save it somewhere within an eclipse project (e.g. make a new "ptp_project_sets" project),
+
#right click on the file  and select '''Import Project Set ...''', enter anonymous as userid.
+
#The projects will be checked out and created in your workspace.
+
  
 +
== To check out PTP projects: ==
  
 +
* In CVS, check out org.eclipse.ptp/releng/ptp_project_sets as follows:
 +
** Window > Open Perspective > Other...,  CVS Repository Exploring
 +
** Rightmouse in CVS Repositories view,  New > Repository Location
 +
*** Host:  dev.eclipse.org,  Repository path: /cvsroot/tools, User: anonymous
 +
**** If you have a committer id on dev.eclipse.org, use that, enter the password, and change the Connection type to extssh
 +
*** Hit Finish
 +
** Expand that repository and expand HEAD. Scroll down to org.eclipse.ptp and expand it
 +
** Under releng, check out ptp_project_sets
 +
* Return to the Plug-in development Perspective
 +
* In the ptp_project_sets project in your workspace, rightMouse on anonymous/ptp-2.1-all-anonymous.psf and select "Import project set"
 +
** If you have a committer id then use the psf file under committer/
 +
* It should check out everything you need.
  
You should now have all the plug-in projects in your workspace.
+
These project set files will check out ALL the plugins currently in PTP. If you want to only work on a selection, you'll need to remove uneeded plugins from your workspace.
  
 
== Launching a runtime workbench running the code you checked out into your workspace ==
 
== Launching a runtime workbench running the code you checked out into your workspace ==

Latest revision as of 10:15, 25 November 2009

Prerequisites

  1. Eclipse 3.4 (Ganymede)
  2. CDT 5.0.2
  3. To run full PTP parallel application monitoring/debugging: Linux or Mac OS X, and OpenMPI or MPICH2
  4. To run/debug remote applications, and/or run only PLDT analysis, OpenMPI isn't required, and all should work on Windows

Install steps

Install Eclipse

  1. Install Eclipse Ganymede from http://download.eclipse.org/eclipse/downloads/
    • Choose 3.4, latest version, full SDK
  2. Download the latest build of CDT 5.0.x (currently 5.0.2) from http://download.eclipse.org/tools/cdt/builds
    • Save the cdt-master-5.0.x-IYYYYMMDDHHMM.zip file, to use in software update steps below
  3. Unpack and launch Eclipse
  4. Install RSE from the Ganymede update site using the update manager:
    1. Help > Software Updates ...
    2. Make sure 'Available Software' is selected at the top
    3. Open Ganymede Update Site
    4. Open Remote Access and Device Development
    5. Select Remote System Explorer End-User Runtime
    6. Click Install ... Next, Accept, Finish
  5. Install CDT from the master file you downloaded in step 2:
    1. Help > Software Updates ...
    2. Make sure 'Available Software' is selected at the top
    3. Click Add site, archive, and locate the CDT master ZIP file you downloaded above; hit OK
    4. Select at least the 3 items under CDT Main features (make sure they are checked)
    5. Click Install ... Next, Accept, Finish

Configure CVS Access

  1. Switch to the CVS perspective and create a new repository location:
    • Host: dev.eclipse.org
    • Repository path: /cvsroot/tools
    • User: <yourCommitterID> or anonymous
    • Password: <yourPW> or empty for anonymous access
    • Connection type: extssh for committer access, or pserver for anonymous access
  2. After creating the repository location, expand it and expand HEAD.

All the PTP content is under org.eclipse.ptp.

To check out PTP projects:

  • In CVS, check out org.eclipse.ptp/releng/ptp_project_sets as follows:
    • Window > Open Perspective > Other..., CVS Repository Exploring
    • Rightmouse in CVS Repositories view, New > Repository Location
      • Host: dev.eclipse.org, Repository path: /cvsroot/tools, User: anonymous
        • If you have a committer id on dev.eclipse.org, use that, enter the password, and change the Connection type to extssh
      • Hit Finish
    • Expand that repository and expand HEAD. Scroll down to org.eclipse.ptp and expand it
    • Under releng, check out ptp_project_sets
  • Return to the Plug-in development Perspective
  • In the ptp_project_sets project in your workspace, rightMouse on anonymous/ptp-2.1-all-anonymous.psf and select "Import project set"
    • If you have a committer id then use the psf file under committer/
  • It should check out everything you need.

These project set files will check out ALL the plugins currently in PTP. If you want to only work on a selection, you'll need to remove uneeded plugins from your workspace.

Launching a runtime workbench running the code you checked out into your workspace

  1. Run > Debug Configurations ...
  2. Double-click on 'Eclipse Application' - or click and click on the 'new' icon
  3. Defaults are probably ok to run with all the plugin projects in your workspace; hit 'Debug' in lower right corner
  4. Eclipse comes up. Switch to C/C++ perspective if needed
  5. For details on creating an MPI or OpenMP project, see Help > Help Contents ...

Back to the top