CMAKE cross-platform compilation script for GMAT

Discussion of compilation configuration and issues

CMAKE cross-platform compilation script for GMAT

Postby Jorisatesa » Mon Aug 08, 2011 6:21 pm

Hi,
I have just updated my compilation scripts. I figured that maybe they can be helpful to users or developpers of GMAT.

All you need to do is unzip the file in the root dir of GMAT. You'll get one CMakeLists.txt file in directories /build, /src/base, /src/gui and /src/console.
Then go in the build directory, in a console window,
Code: Select all
cmake .

if no error at this stage,
Code: Select all
make

and eventually
Code: Select all
make install


For advanced settings, just edit the CMakeLists.txt in the /build dir, and set ON or OFF for the options, or change the path to F2C or SPICE libs. The script automatically locates DevIL and wxWidgets :)

In the script, I put some safeguard options such that even if some optional libs are missing, it will simply disable the option and continue.
The script has been tested on Linux and Win/cygwin (but not thouroughly for all possible options). The Mac installation part may be missing but the compilation should work. For VC, these are useless even though it is possible to convert them to VC project files,but I do not think it is useful since VC project files are already provided...
Just let me know if you encounter any difficulties.

Joris

edit: small (flag) corrections for compilation under Linux/Ubuntu
Attachments
gmat-cmake.tar.gz
(9.82 KiB) Downloaded 245 times
Last edited by Jorisatesa on Sun Oct 09, 2011 9:47 am, edited 4 times in total.
Jorisatesa
 
Posts: 11
Joined: Fri Dec 04, 2009 8:54 am

Re: CMAKE cross-platform compilation script for GMAT

Postby jjkparker » Mon Aug 08, 2011 8:54 pm

Thanks Joris, I'm sure they will be helpful. Thank you for sharing!
Joel J. K. Parker
Flight dynamics engineer, GMAT team
http://gmatcentral.org
jjkparker
 
Posts: 617
Joined: Thu Jan 07, 2010 9:48 pm
Location: NASA Goddard Space Flight Center, Greenbelt, MD


Return to Compiling GMAT

Who is online

Users browsing this forum: No registered users and 1 guest