Discussion:
[Gmat-developers] GMAT on AMD64 Linux -- The GUI version
Darrel J. Conway
2007-11-26 18:23:57 UTC
Permalink
I have a GUI based version of GMAT running on the AMD64 platform now.
The OpenGL plots do not work correctly yet -- they show the same issue
as is seen for multiple plots on the 32 bit platforms. I'll be looking
into that issue soon!

Here's what I did to get the code to build:

1. Download then unpack the current wxWidgets source code. I'll name
the directory with the wx source "~/whereeverYouPutTheSource" in the
next step.

2. Configure the source tree. Here are the steps:

cd ~/whereeverYouPutTheSource
mkdir shared
cd shared
../configure --with-opengl

At this point I had a message about missing OpenGL libraries. I opened
the Synaptic Package Manager and installed glutg3-dev, mainly because I
know I needed dev packages for libgl, libglu, and libglut, and the
dependencies there seemed like the easiest way to pick them all up at
once. Then I reran the configure step, and everything looked good
afterwards.

3. Make and install the wx 2.8 libraries:

make
su
make install
ldconfig /usr/local/lib

4. Change the build flags at the top of BuildEnv.mk to read like this:

# Flags used to control the build
USE_MATLAB = 0
USE_DEVIL = 0
CONSOLE_APP = 0
DEBUG_BUILD = 0
PROFILE_BUILD = 0
WX_28_SYNTAX = 1

# For AMD64 native code, this variable should be set equal to 1
USE_64_BIT_LONGS = 1

...
WX_CONFIG_PATH = /usr/local/bin/

5. Make the application. Be sure to "clean" first if you have built
previously -- for instance, if you built the console application.

(I use Eclipse with the CDT for building GMAT. You can also make it by
running "make" from the root GMAT directory, or by running "make -f
makefile.eclipse" from the src directory.)

If everything is successful, you'll come back 15 minutes later (as with
different microwaves, your time may vary!) and see that there is an
application named gmatNoMatlab in the bin folder. Pretty exciting, huh?

Once you have a compiled application, open it and hit the green "run"
button on the toolbar. This runs the default GMAT mission. If all is
well, you'll see a (white, for me) sphere in the center with a red
trajectory orbiting it.

If you take the added step of installing the Developer's Image Library
(DevIL) and setting the "USE_DEVIL" flag in BuildEnv.mk to 1, you'll see
the Earth's continents displayed on the sphere, rather than a blank
white sphere. For me, that version does not display correctly -- the
image comes in inverted, which is a problem we've seen before with some
prebuilt versions of DevIL. I'll look into that as well, once I've
finished spec'ing the GMAT function design.

- Darrel
--
-----------------------------------------------------------------------------------------------------
GMAT Architectural Design, Linux Development and Test Team

Darrel J. Conway, Ph.D. Thinking Systems, Inc.
Senior Scientist and CEO 6441 N Camino Libby
Phone: (623) 298-4530 Tucson, AZ 85718
FAX: (520) 232-2533 www.thinksysinc.com
djc_at_thinksysinc_dot_com
-----------------------------------------------------------------------------------------------------
Loading...