Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Questions about the RDT project which don't support remoter build photran programs.

To just support building of photran projects, I do not anticipate that you would have to modify the server, as this just involves sending shell commands to the remote machine, and the server is already capable of doing that.

Since as far as I know, Photran just uses the CDT build system for building Photran projects, it should be relatively easy to use the existing remote builders for Photran. Really all that would be required is a Remote Fortran Project wizard that set everything up right.

Here is a summary of what this wizard needs to do at a high level to do the equivalent of the Remote Makefile Project for Fortran:

  1. Allow projects to be created on EFS filesystems.
  2. Add the RemoteNature to the project (probably in the continueCreation() method on your wizard)
  3. Allow one to pick a version of the Remote Makefile builder that knows how to do Fortran. The wizard handler will have to:
    1. Add any language specific natures to the project (there may be more than one if you need a mixed language project... yes this is a problem that the current wizard doesn't handle).
    2. Add the remote makefile builder and associated RemoteMakeNature to the project.

For Remote Managed Build to work on Fortran, you'd need:
  1. Allow projects to be created on EFS filesystems.
  2. Add the RemoteNature to the project (probably in the continueCreation() method on your wizard)
  3. Create a remote version of your toolchain, which involves basically:
    1. Inherit your tools from the existing tool definitions that are used for local projects.
    2. Specify the RemoteCommandLauncher as the command launcher for your builder.
    3. Specify appropriate environment variable suppliers so that all environment variables are obtained from the remote system. Currently there is a RemoteProjectEnvironmentSupplier that I've created... there is a RemoteConfigurationEnvironmentSupplier coming soon.
    Another thing to note is that if you want your remote toolchain from the MBS portion to be usable in a makefile project, then you must have a top-level toolchain element in your build definition extensions that has the right info defined on it. It's suggested that you create one at the top level with the appropriate settings mentioned above, and then in your remote project type definition, inherit from that top-level toolchain for re-use. If you do not do this, then the environment variables shown in the project properties under C/C++ Build->Environment will reflect the local machine and not the remote machine. Right now I'm in the process of doing this for the C/C++ stuff.

    I would suggest you look at the existing code for the Remote C/C++ project wizard and go from there.

    If you want in the future to support parsing/indexing based features for remote Fortran projects, then you would need to add code to the server, and would need to take a look at what's in the miners source folder in org.eclipse.ptp.rdt.core. However, you don't need to do that just to get builds to work.

    ===========================
    Chris Recoskie
    Team Lead, IBM CDT and RDT
    IBM Toronto
    Inactive hide details for peichang shi <pcmutates@xxxxxxx>peichang shi <pcmutates@xxxxxxx>


            peichang shi <pcmutates@xxxxxxx>
            Sent by: ptp-dev-bounces@xxxxxxxxxxx

            05/13/2009 10:26 PM

            Please respond to
            Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>

    To

    ptp-dev@xxxxxxxxxxx

    cc


    Subject

    Re: [ptp-dev] Questions about the RDT project which don't support remoter build photran programs.


    Hi Mr Chris,
       Thank you for you reply.
       We know there are two parts of RDT, one is the RDT projects embeded in
    the PTP projects while the other is Remote Development Tools (RDT) Server
    Components (rdt-server-linux-1.0.tar etc.). I want to know Whether we need
    to make  modifications on rdt-server-linux-1.0.tar and how to get the
    resource codes of rdt-server-linux-1.0.tar, if we try to make RDT support
    the remote build of photran.
       Regards,
                                                                               
    Peichang Shi

    --
    View this message in context:
    http://www.nabble.com/Questions-about-the-RDT-project-which-don%27t-support-remoter-build-photran-programs.-tp23495744p23533275.html
    Sent from the Eclipse Parallel Tools - Dev mailing list archive at Nabble.com.

    _______________________________________________
    ptp-dev mailing list
    ptp-dev@xxxxxxxxxxx
    https://dev.eclipse.org/mailman/listinfo/ptp-dev

    GIF image

    GIF image

    GIF image


    Back to the top