Generating a GMIN Eclipse project

From Docswiki
Revision as of 17:15, 10 May 2019 by Adk44 (talk | contribs) (Created page with "Eclipse is an IDE which offers support for fortran via the photran module. CMake can automatically generate Eclipse projects using the following line cmake -G "Eclipse CDT4...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Eclipse is an IDE which offers support for fortran via the photran module. CMake can automatically generate Eclipse projects using the following line

 cmake -G "Eclipse CDT4 - Unix Makefiles" .

In any case I would recommend you to install your own eclipse (i used indigo) since the one installed is a bit outdated. To get the project into eclipse,

  1. install the photran extension (or just download Eclipse IDE for Parallel Application Developers, since it has Photran already installed)
  2. change workbench path to your svn root directory
  3. Right click into Project Explorer Window -> Import -> Existing project into workspace -> Select the the project directory and unselect (!!) copy project into workspace
  4. Open fortran perspective : Window->Open Perspective->Other then select fortran
  5. Right click on project and select Convert to fortran
  6. You'll also have to let the eclipse parser know that we have a fixed line length of > 72, you can find the option in Menu Bar -> Window -> Preferences -> Fortran -> Editor -> Fixed line length (set it to something like 200 or so). Optionally you can do the same in the project settings.
  7. Project options -> Fortran General -> Analysis and Refactoring -> Enable ! This will give you some powerful helper functionality

Unfortunately I did not get code completion or on the fly documentation do not work properly (the second one because all functions are not properly commented in doxygen style). Not sure whether that is possible here for fortran.

Some useful stuff:

  • While one a function, press F3 (Or right click open declaration) and it'll directly jump to that function
  • In project explorer strg+shift+r to search for a file