Changes between Version 6 and Version 7 of doc/tec/eclipse
- Timestamp:
- Jul 19, 2012 9:14:57 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
doc/tec/eclipse
v6 v7 1 1 = Program development with eclipse = 2 2 3 ''This page describes how to use eclipseon 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. 4 4 5 5 Eclipse 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: … … 24 24 eclipse & 25 25 }}} 26 * in the opening window set {{{$HOME/palm/current_version /trunk/SOURCE}}} as the workspace26 * in the opening window set {{{$HOME/palm/current_version}}} as the workspace 27 27 * 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}}} 29 29 * enter the repository location (URL): \\ 30 30 {{{svn://130.75.105.7/palm/trunk}}} 31 * on slider "Advanced" disable "Enable Structure Detection" and proceed with ''"next"''\\ 31 32 You will be asked for your svn user name and password. 32 33 * activate button ''"Head Revision"'' \\ and quit with ''"finish"'' … … 35 36 * in the opening window, open {{{C/C++ --> Makefile Project with Existing Code}}} \\ 36 37 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) \\ 38 39 quit with ''"Finish"'' 39 40 * 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}}} 41 42 * choose: {{{C/C++ Build --> Settings --> Elf Parser}}} 42 43 * click on ''"Error Parsers"'' \\ 43 44 and choose ''"Photran Error Parser for Intel(R) Compilers"'' as well as ''"Photran Error Parser for PGI FORTRAN"'' \\ 44 45 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}}} \\ 46 47 deactivate button ''"Use default build command"'' and type as ''"Build command"'': 47 48 {{{ 48 mbuild - c ../../.mrun.config -h lcmuk -K "parallel" -v49 mbuild -h lcmuk -K "parallel" -v 49 50 }}} 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 55 52 {{{ 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} 60 54 }}} 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: 62 60 {{{ 63 svn status trunk/*61 mbuild -u -h lcmuk -K "parallel" -v 64 62 }}} 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}}}! 65 66 \\\\ 66 67 … … 70 71 71 72 * in the main eclipse window open: ''"Run --> External Tools --> External Tools Configuration..."'' 73 * right mouse click on ''"Program"'' in left window 72 74 * 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}}}} \\ 75 77 ''"Arguments:"'' {{{-d example_cbl -h lcmuk -K parallel -X4 -T4 -r d3#}}} \\ 76 78 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 78 82 79 83 Configuring 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"''