R2016a from git on Scientific Linux 6.8

Discussion of compilation configuration and issues

R2016a from git on Scientific Linux 6.8

Postby bdillow » Wed Mar 01, 2017 7:29 pm

I'm getting lots of undefined references when trying to build source from git on Scientific Linux 6.8 (Carbon).
I had to make a couple of changes to even get to that point. My process is documented below.

Download initial checkout from git:

Code: Select all
$ cd ~/src/GMAT/
$ git clone https://git.code.sf.net/p/gmat/git R2016a-git


Go into dependencies subfolder, run its config script w/ instructions per its README:

Code: Select all
$ cd R2016a-git/depends
$ chmod +x configure.sh
$ ./configure.sh -p ~/src/GMAT/R2016a-git


Lots of stuff is downloaded including spice, wxWidgets and others.
Go into build directory, run its build script per the README:

Code: Select all
$ ./build.sh -arch x64

........................................................
Starting GMAT Build
........................................................

./build.sh: line 43: cd: ../build/linux: No such file or directory
CMake Error: The source directory "/home/bdillow/src/GMAT/src" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found.  Stop.

*************************************
Gmat Build Finished Succesfully!
*************************************


FAILURE.
Couldn't find the directory build/linux. Huh. build/linux64 is there, however. Modify the build.sh script.
Open in vim, change line 64:

was
Code: Select all
cd ../build/linux

now
Code: Select all
cd ../build/linux64


Try running it again.

Code: Select all
$ ./build.sh -arch x64

........................................................
Starting GMAT Build
........................................................

-- SPICE FOUND
-- CSPICE_DIR=/home/bdillow/src/GMAT/R2016a-git/src/../depends/cspice
-- WxWidgets FOUND
-- WXWIDGET_DIR=/home/bdillow/src/GMAT/R2016a-git/src/../depends/wxWidgets/wxWidgets-2.8.12
-- Performing Test GCC_PIC
-- Performing Test GCC_PIC - Success
64-bit compilation
==============================
GMAT base setup
-- Using a shared base library
-- Executing... ulimit -s 61440
-- Use F2C version of MSISE.
==============================
Console building setup
==============================
GMAT GUI building setup
-- Building with DeVIL
-- Could NOT find IL (missing:  IL_LIBRARIES ILU_LIBRARIES ILUT_LIBRARIES IL_INCLUDE_DIR)
** Disabling USE_DEVIL
==============================
GMAT CInterface Plugin setup
-- Using a shared base library
-- Executing... ulimit -s 61440
-- Configuring done
CMake Error at gui/CMakeLists.txt:399 (ADD_EXECUTABLE):
  Cannot find source file:

    view/Editor.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


-- Build files have been written to: /home/bdillow/src/GMAT/R2016a-git/build/linux64
make: *** No targets specified and no makefile found.  Stop.

*************************************
Gmat Build Finished Succesfully!
*************************************


FAILURE.
Can't find a file for the editor? Let's see what files have a similar name...

Code: Select all
bdillow@<machine>:~/src/GMAT/R2016a-git/build$ find .. -iname "*editor*"
../doc/help/src/Misc_ScriptEditorShortcutKeys.xml
../doc/help/src/Using_ScriptEditor.xml
../doc/help/src/files/images/Using_ScriptEditor_SyncStatus_ScriptModified.png
../doc/help/src/files/images/Intro_GettingStarted_ScriptEditor.png
../doc/help/src/files/images/Using_ScriptEditor_SyncStatus_GuiModified.png
../doc/help/src/files/images/Using_ScriptEditor_ActiveScript.snag
../doc/help/src/files/images/Using_ScriptEditor_SyncStatus_Synchronized.png
../doc/help/src/files/images/Using_ScriptEditor_ActiveScript.png
../doc/help/src/files/images/Resource_ScriptEditor_GUI_3.png
../doc/help/src/files/images/Using_ScriptEditor_EditMenu.png
../doc/help/src/files/images/Resource_ScriptEditor_GUI_2.png
../doc/help/src/files/images/Using_ScriptEditor_SyncStatus_Unsynchronized.png
../doc/help/src/files/images/relnotes/r2011a/editor.png
../doc/help/src/files/images/Resource_ScriptEditor_GUI_1.png
../doc/help/src/files/images/Using_ScriptEditor_Tour.snag
../doc/help/src/files/images/Using_ScriptEditor_FindReplace.png
../doc/help/src/files/images/Using_ScriptEditor_SyncStatus_ScriptError.png
../doc/help/src/files/images/Using_ScriptEditor_Tour.png
../src/gui/view/EditorPanel.cpp
../src/gui/view/EditorPrintout.cpp
../src/gui/view/ScriptEditor.cpp
../src/gui/view/EditorPreferences.hpp
../src/gui/view/ScriptEditor.hpp
../src/gui/view/EditorPreferences.cpp
../src/gui/view/EditorPrintout.hpp
../src/gui/view/EditorPanel.hpp
../depends/wxWidgets/wxWidgets-2.8.12/contrib/src/stc/stcdll_Editor.o
../depends/wxWidgets/wxWidgets-2.8.12/contrib/src/stc/.deps/stcdll_Editor.o.d
../depends/wxWidgets/wxWidgets-2.8.12/contrib/src/stc/scintilla/src/Editor.h
../depends/wxWidgets/wxWidgets-2.8.12/contrib/src/stc/scintilla/src/.svn/prop-base/Editor.h.svn-base
../depends/wxWidgets/wxWidgets-2.8.12/contrib/src/stc/scintilla/src/.svn/prop-base/Editor.cxx.svn-base
../depends/wxWidgets/wxWidgets-2.8.12/contrib/src/stc/scintilla/src/.svn/text-base/Editor.h.svn-base
../depends/wxWidgets/wxWidgets-2.8.12/contrib/src/stc/scintilla/src/.svn/text-base/Editor.cxx.svn-base
../depends/wxWidgets/wxWidgets-2.8.12/contrib/src/stc/scintilla/src/Editor.cxx


Line 327 of src/gui/CMakeLists.txt claims it needs viewer/Editor.cpp but that file wasn't checked out by git.
Perhaps we can comment that out and build anyway? Let's try...
Open src/gui/CMakeLists.txt, commented out line 327.

Was
Code: Select all
   view/Editor.cpp

now
Code: Select all
#   view/Editor.cpp


Rerun build script

Code: Select all
$ ./build.sh -arch x64


Lots of successful output, then:

Code: Select all
Scanning dependencies of target gmatConsole
[ 73%] Building CXX object /home/bdillow/src/GMAT/R2016a-git/build/src/console/CMakeFiles/gmatConsole.dir/driver.cpp.o
[ 73%] Building CXX object /home/bdillow/src/GMAT/R2016a-git/build/src/console/CMakeFiles/gmatConsole.dir/ConsoleAppException.cpp.o
[ 73%] Building CXX object /home/bdillow/src/GMAT/R2016a-git/build/src/console/CMakeFiles/gmatConsole.dir/PrintUtility.cpp.o
[ 74%] Building CXX object /home/bdillow/src/GMAT/R2016a-git/build/src/console/CMakeFiles/gmatConsole.dir/ConsoleMessageReceiver.cpp.o
Linking CXX executable /home/bdillow/src/GMAT/R2016a-git/application/bin/gmatConsole
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `IncAsymRadPer::IncAsymRadPer(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `DelaL::DelaL(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeRvector::AttitudeRvector(AttitudeRvector const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeRvector::operator=(AttitudeRvector const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `RvectorVar::GetIntegerParameter(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `Delah::Delah(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeConversionUtility::ToEulerAngles(Rvector const&, int, int, int)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AltEquinQ::AltEquinQ(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `RvectorVar::GetParameterID(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeConversionUtility::ToQuaternion(Rmatrix33 const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `IncAsymDHA::IncAsymDHA(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `IncAsymRHA::IncAsymRHA(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `PldAZI::PldAZI(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeRvector::EvaluateRvector()'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `RvectorVar::ToString()'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `typeinfo for AttitudeRvector'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `PldState::PldState(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeRvector::GetRefObject(Gmat::ObjectType, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `OutAsymRHA::OutAsymRHA(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeRvector::Initialize()'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `ModEquinG::ModEquinG(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeRvector::RenameRefObject(Gmat::ObjectType, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeConversionUtility::ToCosineMatrix(Rvector3 const&, int, int, int)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `ColorDatabase::GetColorName(unsigned int)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `BLshortAOPP::BLshortAOPP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeConversionUtility::ToEulerAngles(Rmatrix33 const&, int, int, int)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeRvector::GetRefObjectName(Gmat::ObjectType) const'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `RvectorVar::GetParameterText(int) const'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `BLlongINCDP::BLlongINCDP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `DelaH::DelaH(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `BLshortMAP::BLshortMAP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `BLlongMADP::BLlongMADP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeRvector::GetNumRefObjects() const'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeRvector::SetRefObjectName(Gmat::ObjectType, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `BLshortRAANP::BLshortRAANP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeConversionUtility::EulerAxisAndAngleToDCM(Rvector3 const&, double)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeRvector::Validate()'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeRvector::GetRefObjectNameArray(Gmat::ObjectType)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `NadirPointing::NadirPointing(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeConversionUtility::ToQuaternion(Rvector3 const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeConversionUtility::ToCosineMatrix(double const*, int, int, int)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `PldLAT::PldLAT(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeRvector::AttitudeRvector(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, int)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `RvectorVar::GetIntegerParameter(int) const'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `ModEquinTLONG::ModEquinTLONG(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeConversionUtility::ToCosineMatrix(Rvector const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `Delag::Delag(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `IncAsymBVAZI::IncAsymBVAZI(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `BLshortINCP::BLshortINCP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `BLlongAOPDP::BLlongAOPDP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `PldRMAG::PldRMAG(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `ColorDatabase::HasColor(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `ModEquinH::ModEquinH(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `SPADFileReader::SPADFileReader()'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `PldLON::PldLON(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeRvector::AddRefObject(GmatBase*, bool)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `non-virtual thunk to AttitudeRvector::GetRefObjectNameArray(Gmat::ObjectType)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeConversionUtility::ToAngularVelocity(Rvector3 const&, Rvector3 const&, int, int, int)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `PldHFPA::PldHFPA(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `BLlongSMADP::BLlongSMADP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `non-virtual thunk to AttitudeRvector::RenameRefObject(Gmat::ObjectType, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `non-virtual thunk to AttitudeRvector::SetRefObjectName(Gmat::ObjectType, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `DelaState::DelaState(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `RvectorVar::SetRvector(Rvector const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `RvectorVar::IsParameterCommandModeSettable(int) const'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeConversionUtility::ToEulerAngleRates(Rvector3 const&, Rvector3 const&, int, int, int)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `ModEquinState::ModEquinState(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `DelaG::DelaG(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `RvectorVar::IsParameterReadOnly(int) const'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `ColorDatabase::GetIntColor(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AltEquinP::AltEquinP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `Delal::Delal(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `ModEquinF::ModEquinF(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AltEquinState::AltEquinState(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `RvectorVar::GetRvector() const'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeRvector::~AttitudeRvector()'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `OutAsymRadPer::OutAsymRadPer(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeConversionUtility::ToMRPs(Rvector const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `ModEquinK::ModEquinK(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `PrecessingSpinner::PrecessingSpinner(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `non-virtual thunk to AttitudeRvector::GetRefObject(Gmat::ObjectType, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeRvector::SetRefObject(GmatBase*, Gmat::ObjectType, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `BLlongECCDP::BLlongECCDP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `non-virtual thunk to AttitudeRvector::SetRefObject(GmatBase*, Gmat::ObjectType, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `OutAsymDHA::OutAsymDHA(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `BLshortSMAP::BLshortSMAP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `OutAsymC3Energy::OutAsymC3Energy(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `BLlongRAANDP::BLlongRAANDP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `AttitudeConversionUtility::ToQuaternion(Rvector3 const&, int, int, int)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `OutAsymBVAZI::OutAsymBVAZI(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `ColorDatabase::Instance()'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `PldVMAG::PldVMAG(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `CCSDSAttitude::CCSDSAttitude(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `BLshortECCP::BLshortECCP(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `IncAsymC3Energy::IncAsymC3Energy(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, GmatBase*)'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `non-virtual thunk to AttitudeRvector::GetRefObjectName(Gmat::ObjectType) const'
/home/bdillow/src/GMAT/R2016a-git/application/bin/libGmatBase.so.R2013a: undefined reference to `ColorDatabase::GetAllColorNames()'
collect2: ld returned 1 exit status
make[2]: *** [/home/bdillow/src/GMAT/R2016a-git/application/bin/gmatConsole] Error 1
make[1]: *** [/home/bdillow/src/GMAT/R2016a-git/build/src/console/CMakeFiles/gmatConsole.dir/all] Error 2
make: *** [all] Error 2


So I'm not sure where to go from here. There are no errors prior to these undefined references. It claims to successfully link libGmatBase.so. Here's what is in my R2016a-git/application/bin directory:

Code: Select all
bdillow@<machine>:~/src/GMAT/R2016a-git/build$ ls -l ../application/bin/
total 17100
-rw-r--r--. 1 bdillow users     9863 Mar  1 13:00 GMAT.ini
-rwxr-xr-x. 1 bdillow users     8106 Mar  1 13:00 gmat_startup_file.txt
lrwxrwxrwx. 1 bdillow users       21 Mar  1 13:46 libGmatBase.so -> libGmatBase.so.R2013a
-rwxr-xr-x. 1 bdillow users 17487866 Mar  1 13:46 libGmatBase.so.R2013a


It's building the library with R2013a in the name instead of R2016a, which is weird, but not fatal.

I did try the pre-compiled R2016a binary for RHEL7 just in case that would still work, but it failed with a libpng error, probably due to SL6.8 being older than RHEL72

bdillow@<machine>:~/src/GMAT/R2016a/bin$ ./GMAT_Beta
./GMAT_Beta: error while loading shared libraries: libpng15.so.15: cannot open shared object file: No such file or directory

So no joy there. I would like to be able to build from source. Any tips on resolving these undefined references?

Thanks in advance for your help.
Barrett
bdillow
 
Posts: 7
Joined: Wed Jun 24, 2015 9:16 pm
Location: GSFC

Re: R2016a from git on Scientific Linux 6.8

Postby bdillow » Tue Mar 28, 2017 7:53 pm

Bump.

I still haven't gotten this working, if anyone on the GMAT team has seen something similar and can offer some tips.

Thanks in advance.
bdillow
 
Posts: 7
Joined: Wed Jun 24, 2015 9:16 pm
Location: GSFC

Re: R2016a from git on Scientific Linux 6.8

Postby rockstorm » Wed Apr 19, 2017 6:15 pm

Hi bdillow,

I'm sorry it took me this long to respond. Could you try building just by invoking cmake instead of using the "build/build.sh" script? It should be something like this:

First create the makefiles. You might need to use the options '-DCSPICE_DIR="/path/to/cspice"'.
Code: Select all
cd R2016a-git
cmake .

Then to simply compile everything:
Code: Select all
make

And finally to "install" GMAT:
Code: Select all
make install

This is the preferred way to build GMAT right now. It is all explained in more detail here.
rockstorm
 
Posts: 1
Joined: Fri Jan 15, 2016 8:04 pm

Re: R2016a from git on Scientific Linux 6.8

Postby tephanieran » Tue Mar 12, 2019 6:05 am

An aura of the league and al tools have even done for the entertainment of the people. The size of the league and dissertation service is controlled by the bloggers. The mode is fixed for the invitation of the reformed items for the humans.
tephanieran
 
Posts: 1
Joined: Tue Mar 12, 2019 6:04 am


Return to Compiling GMAT

Who is online

Users browsing this forum: No registered users and 0 guests

cron