The best environments for developing PTP are MacOS X 10.4 or later, or any recent version of Linux. Windows can be used to develop the Java components, but is not recommended.

+

−

+

−

== Setup ==

+

−

+

−

=== Install Eclipse ===

+

−

+

−

[http://www.eclipse.org/downloads/ 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. It doesn't hurt to install RSE though.

+

−

+

−

Install as follows:

+

−

+

−

# Launch Eclipse (as root if you installed Eclipse in a system directory)

+

−

# From the menu select: '''Help->Software Updates->Find and Install'''

+

−

# Select '''Search for new features to install''', click Next

+

−

# Select '''Europa Discovery Site''', click Finish

+

−

# Select a valid mirror, click Ok

+

−

# Expand '''Europa Discovery Site'''

+

−

# Select '''C and C++ Development''' <br>Note: PLDT requires CDT 4.0.2 and as of 3 Jan 08, the Europa Discovery site only has 4.0.1. Skip this step and see below if you want CDT 4.0.2.

+

−

# 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'''

+

−

+

−

If Europa Discovery site does not have CDT 4.0.2, you can get it via the following:

+

−

# From the menu select: '''Help->Software Updates->Find and Install'''

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 development workspace) then download this project set file also.

+

−

+

−

You can download the files directly from the above links, but the simplest way is to do the following:

+

−

+

−

# Under '''org.eclipse.ptp''', open '''releng''' and check out the '''ptp_project_sets''' project. <br>

+

−

# Switch to the '''Plug-in Development''' perspective.

+

−

# For each project set you wish to populate, right click on the file in the '''ptp_project_sets''' project and select '''Import Project Set ...'''

# Follow the same directions to build your proxy plugin (sh BUILD for your platform); make sure it is the one in your workspace directory. The instructions are interpreted here:

+

−

#* Be sure to export this environment variable before compiling: <code>LD_LIBRARY_PATH=/usr/local/lib</code>

+

−

#*Locate the plug-in project org.eclipse.ptp.<i>os.arch</i> in your workspace, where <i>os</i> and <i>arch</i> correspond to your operating system and architecture respectively. Open a command shell and change to this directory.

+

−

#* Run the command: <code>sh BUILD</code>

+

−

+

−

== Create an eclipse application launch configuration ==

+

−

+

−

Click on '''org.eclipse.ptp.core''', Right click on Run As ... and choose '''Eclipse Application'''