Changes between Version 6 and Version 7 of doc/tec/eclipse


Ignore:
Timestamp:
Jul 19, 2012 9:14:57 AM (13 years ago)
Author:
maronga
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/tec/eclipse

    v6 v7  
    11= Program development with eclipse =
    22
    3 ''This page describes how to use eclipse on the Linux cluster at IMuK, but the description should also be valid in general for any other Linux environment.'' At IMuK, eclipse requires !SuSe version 12.1.
     3''This page describes how to use [http://www.eclipse.org eclipse] on the Linux cluster at IMuK, but the description should also be valid in general for any other Linux environment.'' At IMuK, eclipse requires !SuSe version 12.1.
    44
    55Eclipse is a free IDE (Integrated Development Environment) with a plugin for subversion and FORTRAN (photran). Generally, eclipse allows to manage projects in two different ways:
     
    2424      eclipse &
    2525}}}
    26     * in the opening window set {{{$HOME/palm/current_version/trunk/SOURCE}}} as the workspace
     26    * in the opening window set {{{$HOME/palm/current_version}}} as the workspace
    2727    * open: {{{Window --> Open Perspective --> Other --> FORTRAN}}} \\ and quit with {{"OK"}}
    28     * open: {{{File --> Import --> SVN --> project from SVN}}} \\ and quit with ''"next"''
     28    * open: {{{File --> Import --> SVN --> project from SVN}}}
    2929    * enter the repository location (URL): \\
    3030      {{{svn://130.75.105.7/palm/trunk}}}
     31    * on slider "Advanced" disable "Enable Structure Detection" and proceed with ''"next"''\\
    3132      You will be asked for your svn user name and password.
    3233    * activate button ''"Head Revision"'' \\ and quit with ''"finish"''
     
    3536    * in the opening window, open {{{C/C++ --> Makefile Project with Existing Code}}} \\
    3637      and quit with ''"next"''
    37     * in the opening window type as project name ''SOURCE'', ('''very important! ''') and choose ''<none>'' as toolchain (which is the default) \\
     38    * in the opening window type as project name ''trunk'', ('''very important! ''') and choose ''<none>'' as toolchain (which is the default) \\
    3839      quit with ''"Finish"''
    3940    * eclipse will then ask you for a ''secure storage password''. If you are running eclipse for the first time, you have to choose a new one and to give some additional information.
    40     * in the left window: right mouse click on ''"SOURCE"'' {{{--> Properties}}}
     41    * in the left window: right mouse click on ''"trunk"'' {{{--> Properties}}}
    4142    * choose: {{{C/C++ Build --> Settings --> Elf Parser}}}
    4243    * click on ''"Error Parsers"'' \\
    4344      and choose ''"Photran Error Parser for Intel(R) Compilers"'' as well as ''"Photran Error Parser for PGI FORTRAN"'' \\
    4445      quit with ''"OK"''
    45     * in the left window: right mouse click on ''"SOURCE"'' {{{--> Properties --> C/C++ Build}}} \\
     46    * in the left window: right mouse click on ''"trunk"'' {{{--> Properties --> C/C++ Build}}} \\
    4647      deactivate button ''"Use default build command"'' and type as ''"Build command"'':
    4748{{{
    48       mbuild -c ../../.mrun.config -h lcmuk -K "parallel" -v
     49      mbuild -h lcmuk -K "parallel" -v
    4950}}}
    50       you can define alternative build configurations (e.g. with trace options) by clicking on the ''"Manage Configurations"'' button
    51     * on slider ''"Behaviour"'' deactivate button ''"Build on resource save (Auto build)"'' \\
    52       quit with ''"OK"'' \\\\
    53 
    54 If this is finished successfully, you have checked out just the SOURCE directory! You now have to check out all the other required directories from the svn-repository manually, e.g.
     51      and change "Build directory" to
    5552{{{
    56     cd $HOME/palm/current_version
    57     svn checkout svn://130.75.105.7/palm/trunk/SCRIPTS  trunk/SCRIPTS
    58     svn checkout svn://130.75.105.7/palm/trunk/INSTALL  trunk/INSTALL
    59     ...
     53${workspace_loc}
    6054}}}
    61 You can check the status of all your working copies with
     55    * on slider ''"Behaviour"'' deactivate button ''"Build on resource save (Auto build)"'' then click on ''"Apply"''. \\
     56    * you can define alternative build configurations (e.g. with trace options) by clicking on the ''"Manage Configurations"'' button.
     57    * use the ''"Manage Configurations"'' button and rename the ''"Default"'' to ''"Source"''.
     58    * create a new configuration named ''"Utilities"'', and select ''"Existing configuration: Source"''. Quit with ''"OK"'' and again ''"OK"''.
     59    * select ''"Utilities"'' from the ''"Configuration"'' menu and edit ''"Build command"'' as follows:
    6260{{{
    63     svn status trunk/*
     61      mbuild -u -h lcmuk -K "parallel" -v
    6462}}}
     63      then quit with ''"OK"''.
     64    * You can now choose between ''"Source"'' and ''"Utilities"'' as active build configuration
     65    * '''Note:''' before you can compile the code, make sure you have placed a working {{{.mrun.config}}} in {{{$HOME/palm/current_version}}}!
    6566\\\\
    6667
     
    7071
    7172    * in the main eclipse window open: ''"Run --> External Tools --> External Tools Configuration..."''
     73    * right mouse click on ''"Program"'' in left window
    7274    * in the opening window, give the following informations \\
    73       ''"Location:"'' {{{/home/<username>/palm/current_version/trunk/SCRIPTS/mrun}}} \\
    74       ''"Working Directory:"'' {{{/home/<username>/palm/current_version}}} \\
     75      ''"Location:"'' {{{${workspace_loc}/trunk/SCRIPTS/mrun}}} \\
     76      ''"Working Directory:"'' {{{${workspace_loc}}}} \\
    7577      ''"Arguments:"'' {{{-d example_cbl -h lcmuk -K parallel -X4 -T4 -r d3#}}} \\
    7678      or any other {{{mrun}}}-options that you like to use
    77     * right mouse click on ''"Program"'' in left window allows to define other alternative run configurations (e.g. with other {{{mrun}}}-options
     79    * on slider ''"Build"'' disable ''"Build before launch"''
     80    * right mouse click on ''"Program"'' in left window allows to define other alternative run configurations (e.g. with other {{{mrun}}}-options)
     81    * quit with ''"Close"'' or proceed with
    7882
    79  
     83Configuring eclipse in a way that '''mrungui''' is used as an external tool.
     84
     85    * right mouse click on ''"Program"'' in left window
     86    * in the opening window, give the following informations \\
     87      ''"Location:"'' {{{${workspace_loc}/trunk/SCRIPTS/mrungui}}} \\
     88      ''"Working Directory:"'' {{{${workspace_loc}}}} \\
     89    * no ''"Arguments"'' are required in this case
     90    * on slider ''"Build"'' disable ''"Build before launch"''
     91    * quit with ''"Close"''