Linux installation

Development related to the GMAT core and GUI

Linux installation

Postby healy » Wed Nov 17, 2010 7:12 pm

This is the sequence of steps I took to successfully install GMAT development branch (with stars from trunk) on my Debian Linux (testing=squeeze) amd64 computer. I'm posting this for the benefit of anyone who is trying to do a similar installation.

Code: Select all
1. [[http://gmat.ed-pages.com/wiki/tiki-index.php?page%3DBuilding%2Bon%2BLinux][Wiki instructions]] following "Development Code"
2. Prepare supporting libraries
   1. sudo aptitude install libwxgtk2.8-dev libglu1-mesa-dev libdevil-dev
   2. Rebuild wxWidgets library without unicode
      1. Because the Debian-supplied libwxgtk is compiled with unicode
         support which GMAT will not work with, it is necessary to
         recompile from source.
      2. Option: from Debian source FAILS due to [[http://bugs.debian.org/602436][apparent bug]]
    1. cd /tmp
    2. apt-get source libwxgtk2.8-dev
    3. sudo aptitude build-dep libwxgtk2.8-dev
    4. Edit debian/rules to set WX_UNICODE ?= 0
    5. cd wxwidgets2.8-2.8.10.1/
    6. dpkg-buildpackage -rfakeroot -uc -us  ### THIS FAILS ###
    7. cd ..
    8. dpkg -i ../*.deb
      3. Option: download source and build
    1. wget http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.11.tar.bz2
    2. tar jxvf wxWidgets-2.8.11.tar.bz2
    3. cd wxWidgets-2.8.11
    4. ./configure --with-opengl
    5. It does say at the end:
      Should wxWidgets be compiled in Unicode mode?           no
    6. make
    7. su
    8. make install
    9. ldconfig
    10. Confirm  wx-config --gl-libs  ==> -lwx_gtk2_gl-2.8
3. Get a git repository and branch
   1. git svn clone --prefix origin/ --stdlayout https://gmat.svn.sourceforge.net/svnroot/gmat
   2. cd gmat
   3. git svn fetch
   4. git checkout -t origin/development
   5. git branch lmh
   6. git checkout lmh
4. Get needed support files
   1. Per [[file:~/satellite/gmat/bin/bin_setup.txt][instructions]], from the [[http://sourceforge.net/projects/gmat/files/][GMAT download page]] get newest [[http://sourceforge.net/projects/gmat/files/GMAT%20Data%20Files/GMAT-2008-09-30%20Data%20Files/gmat-datafiles-2008-09-30.tar.gz/download][GMAT
      data files]].  I got gmat-datafiles-2008-09-30.tar.gz, the newest
      version available.
   2. tar zxvf gmat-datafiles-2008-09-30.tar.gz
   3. mv files bin
   4. I did not need to copy gmat_startup_file.txt because I already
      copied it.
5. Put build configuration files in the right place with needed settings
   1. Can't/don't cp build/linux/MakeGmat.eclipse src; it's already there.
   2. cp build/linux64/BuildEnv.mk src
   3. cp build/linux64/gmat_startup_file.txt bin
   4. [[file:~/satellite/gmat/src/BuildEnv.mk::#%20Build%20environment%20file%20for%20Linux][Settings]]: leave USE_64_BIT_LONGS = 1, SHARED_BASE = 1 but change
      USE_SPICE = 0.
6. make
7. Commit all additions with git commit
8. To get the star catalog (this will get the changes from the tip of the trunk branch):
    git cherry-pick master
9. Setup and run
   1. export LD_LIBRARY_PATH=~/satellite/gmat/bin/
   2. It must be started from the bin directory: cd ~/satellite/gmat/bin/
   3. ./GMAT
   4. Voila! it runs.


Liam
healy
 
Posts: 6
Joined: Wed Nov 03, 2010 1:36 pm

Re: Linux installation

Postby JonatBo » Sat Apr 18, 2020 5:44 am

Linux is the operating system and it is the same as windows operating system many people do the installation of the Linux easily. To install the operating system the essay have review that will give you the guide book for your help.
JonatBo
 
Posts: 1
Joined: Sat Apr 18, 2020 5:43 am

Re: Linux installation

Postby AllenArcher » Wed May 13, 2020 4:37 pm

AllenArcher
 
Posts: 4
Joined: Sat Mar 28, 2020 5:57 pm


Return to Core Development

Who is online

Users browsing this forum: No registered users and 1 guest