Pablo Pita
2008-08-03 17:55:57 UTC
Hello list,
I like to give some notes on compiling GMAT on an Kubuntu Hardy 8.04
installation. The overall compilation process is not that simple, and
problems arise. I was using gcc 4.2.
1.- I downloaded wxGTK v. 2.8.8 and I compiled it without Unicode
support (the default, as distros usually do it with Unicode).
I followed the documentation on the pdf and compiled statically.
./configure --with-opengl --disable-shared --enable-optimise
I got an error later when linking, seeing that the configuration
should be shared, so I did recompile it making it shared:
./configure --with-opengl --enable-shared --enable-optimise
This was the GMAT makefile output that gave me a clue in using a
shared version:
g++ app/AboutDialog.o app/GmatApp.o app/GmatAppData.o
app/CompareFilesDialog.o app/CompareTextDialog.o app/GmatConnection.o
app/GmatMainFrame.o app/GmatMenuBar.o app/GuiMessageReceiver.o
app/GmatNotebook.o app/GmatServer.o app/GmatTreeItemData.o
app/InteractiveMatlabDialog.o app/MissionTreeItemData.o
app/RunScriptFolderDialog.o app/ResourceTree.o app/ScriptPanel.o
app/SetPathDialog.o app/TextEphemFileDialog.o
burn/FiniteBurnSetupPanel.o burn/ImpulsiveBurnSetupPanel.o
command/AchievePanel.o command/AssignmentPanel.o
command/BeginFiniteBurnPanel.o command/CallFunctionPanel.o
command/EndFiniteBurnPanel.o command/ManeuverPanel.o
command/MinimizePanel.o command/NonlinearConstraintPanel.o
command/OptimizePanel.o command/PropagatePanel.o command/ReportPanel.o
command/SavePanel.o command/ScriptEventPanel.o command/TargetPanel.o
command/TogglePanel.o command/VaryPanel.o controllogic/ForDialog.o
controllogic/ForPanel.o controllogic/IfPanel.o
controllogic/WhilePanel.o coordsystem/CoordPanel.o
coordsystem/CoordSysCreateDialog.o
coordsystem/CoordSystemConfigPanel.o forcemodel/DragInputsDialog.o
foundation/ArraySetupPanel.o foundation/GmatDialog.o
foundation/GmatMdiChildFrame.o foundation/GmatPanel.o
foundation/GmatSavePanel.o foundation/GmatStaticBoxSizer.o
foundation/GuiItemManager.o foundation/MultiPathSetupPanel.o
foundation/ParameterCreateDialog.o foundation/ParameterSelectDialog.o
foundation/ParameterSetupPanel.o foundation/ShowScriptDialog.o
foundation/ShowSummaryDialog.o foundation/SinglePathSetupPanel.o
function/FunctionSetupPanel.o function/MatlabFunctionSetupPanel.o
hardware/TankConfigPanel.o hardware/ThrusterCoefficientDialog.o
hardware/ThrusterConfigPanel.o mission/DecoratedTree.o
mission/MissionTree.o output/CompareReportPanel.o output/OutputTree.o
output/ReportFilePanel.o plot/MdiChildTrajFrame.o
plot/MdiChildTsFrame.o plot/MdiGlPlotData.o plot/MdiTsPlotData.o
plot/OpenGlOptionDialog.o plot/OpenGlPlotSetupPanel.o
plot/ReportFileSetupPanel.o plot/TrajPlotCanvas.o plot/TsPlotCanvas.o
plot/TsPlotXYCanvas.o plot/TsPlotCurve.o plot/TsPlotOptionsDialog.o
plot/XyPlotSetupPanel.o propagator/PropagationConfigPanel.o
propagator/PropagatorSelectDialog.o solarsys/BarycenterPanel.o
solarsys/CelesBodySelectDialog.o solarsys/CelestialBodyPanel.o
solarsys/LibrationPointPanel.o solarsys/SolarSystemWindow.o
solarsys/UniversePanel.o solver/DCSetupPanel.o solver/SQPSetupPanel.o
solver/SolverCreatePanel.o solver/SolverGoalsPanel.o
solver/SolverVariablesPanel.o spacecraft/AttitudePanel.o
spacecraft/BallisticsMassPanel.o spacecraft/FormationSetupPanel.o
spacecraft/OrbitPanel.o spacecraft/SpacecraftPanel.o
spacecraft/SpaceObjectSelectDialog.o spacecraft/TankPanel.o
spacecraft/ThrusterPanel.o view/ViewTextDialog.o view/ViewTextFrame.o
../base/lib/libGmatGui.a -o gmatNoMatlab `/usr/local/bin/wx-config
--libs --gl-libs --static=no` -lIL -lILU -lILUT -lgfortran -lm
2.- I downladed DevIL-1.6.8 rc2 and compiled it. When trying the link
phase of GMAT with it, errors appeared due to undefined references for
several DevIL functions. Those errors were related to functions whose
argument type were of the form "(ILvoid)", with ILvoid being defined
as "typedef void ILvoid". That type of code in the functions seems not
legal in C++ (more information on
http://osdir.com/ml/linux.debian.devel.games.devel/2007-02/msg00006.html)
and I substituted in the DevIL headers that expression for plain
"(void)". After recompiling DevIL, this time there were no undefined
references from GMAT.
OK, after those issues, following the instructions in the different
files, I have got gmatNoMatab to run. I wonder about notifying DevIL
about the headers, although the project seems not active.
One last question: are there sample missions somewhere ?
Thanks,
I like to give some notes on compiling GMAT on an Kubuntu Hardy 8.04
installation. The overall compilation process is not that simple, and
problems arise. I was using gcc 4.2.
1.- I downloaded wxGTK v. 2.8.8 and I compiled it without Unicode
support (the default, as distros usually do it with Unicode).
I followed the documentation on the pdf and compiled statically.
./configure --with-opengl --disable-shared --enable-optimise
I got an error later when linking, seeing that the configuration
should be shared, so I did recompile it making it shared:
./configure --with-opengl --enable-shared --enable-optimise
This was the GMAT makefile output that gave me a clue in using a
shared version:
g++ app/AboutDialog.o app/GmatApp.o app/GmatAppData.o
app/CompareFilesDialog.o app/CompareTextDialog.o app/GmatConnection.o
app/GmatMainFrame.o app/GmatMenuBar.o app/GuiMessageReceiver.o
app/GmatNotebook.o app/GmatServer.o app/GmatTreeItemData.o
app/InteractiveMatlabDialog.o app/MissionTreeItemData.o
app/RunScriptFolderDialog.o app/ResourceTree.o app/ScriptPanel.o
app/SetPathDialog.o app/TextEphemFileDialog.o
burn/FiniteBurnSetupPanel.o burn/ImpulsiveBurnSetupPanel.o
command/AchievePanel.o command/AssignmentPanel.o
command/BeginFiniteBurnPanel.o command/CallFunctionPanel.o
command/EndFiniteBurnPanel.o command/ManeuverPanel.o
command/MinimizePanel.o command/NonlinearConstraintPanel.o
command/OptimizePanel.o command/PropagatePanel.o command/ReportPanel.o
command/SavePanel.o command/ScriptEventPanel.o command/TargetPanel.o
command/TogglePanel.o command/VaryPanel.o controllogic/ForDialog.o
controllogic/ForPanel.o controllogic/IfPanel.o
controllogic/WhilePanel.o coordsystem/CoordPanel.o
coordsystem/CoordSysCreateDialog.o
coordsystem/CoordSystemConfigPanel.o forcemodel/DragInputsDialog.o
foundation/ArraySetupPanel.o foundation/GmatDialog.o
foundation/GmatMdiChildFrame.o foundation/GmatPanel.o
foundation/GmatSavePanel.o foundation/GmatStaticBoxSizer.o
foundation/GuiItemManager.o foundation/MultiPathSetupPanel.o
foundation/ParameterCreateDialog.o foundation/ParameterSelectDialog.o
foundation/ParameterSetupPanel.o foundation/ShowScriptDialog.o
foundation/ShowSummaryDialog.o foundation/SinglePathSetupPanel.o
function/FunctionSetupPanel.o function/MatlabFunctionSetupPanel.o
hardware/TankConfigPanel.o hardware/ThrusterCoefficientDialog.o
hardware/ThrusterConfigPanel.o mission/DecoratedTree.o
mission/MissionTree.o output/CompareReportPanel.o output/OutputTree.o
output/ReportFilePanel.o plot/MdiChildTrajFrame.o
plot/MdiChildTsFrame.o plot/MdiGlPlotData.o plot/MdiTsPlotData.o
plot/OpenGlOptionDialog.o plot/OpenGlPlotSetupPanel.o
plot/ReportFileSetupPanel.o plot/TrajPlotCanvas.o plot/TsPlotCanvas.o
plot/TsPlotXYCanvas.o plot/TsPlotCurve.o plot/TsPlotOptionsDialog.o
plot/XyPlotSetupPanel.o propagator/PropagationConfigPanel.o
propagator/PropagatorSelectDialog.o solarsys/BarycenterPanel.o
solarsys/CelesBodySelectDialog.o solarsys/CelestialBodyPanel.o
solarsys/LibrationPointPanel.o solarsys/SolarSystemWindow.o
solarsys/UniversePanel.o solver/DCSetupPanel.o solver/SQPSetupPanel.o
solver/SolverCreatePanel.o solver/SolverGoalsPanel.o
solver/SolverVariablesPanel.o spacecraft/AttitudePanel.o
spacecraft/BallisticsMassPanel.o spacecraft/FormationSetupPanel.o
spacecraft/OrbitPanel.o spacecraft/SpacecraftPanel.o
spacecraft/SpaceObjectSelectDialog.o spacecraft/TankPanel.o
spacecraft/ThrusterPanel.o view/ViewTextDialog.o view/ViewTextFrame.o
../base/lib/libGmatGui.a -o gmatNoMatlab `/usr/local/bin/wx-config
--libs --gl-libs --static=no` -lIL -lILU -lILUT -lgfortran -lm
2.- I downladed DevIL-1.6.8 rc2 and compiled it. When trying the link
phase of GMAT with it, errors appeared due to undefined references for
several DevIL functions. Those errors were related to functions whose
argument type were of the form "(ILvoid)", with ILvoid being defined
as "typedef void ILvoid". That type of code in the functions seems not
legal in C++ (more information on
http://osdir.com/ml/linux.debian.devel.games.devel/2007-02/msg00006.html)
and I substituted in the DevIL headers that expression for plain
"(void)". After recompiling DevIL, this time there were no undefined
references from GMAT.
OK, after those issues, following the instructions in the different
files, I have got gmatNoMatab to run. I wonder about notifying DevIL
about the headers, although the project seems not active.
One last question: are there sample missions somewhere ?
Thanks,
--
Pablo Pita Leira
Pablo Pita Leira