Error building on ubuntu

Discussion of compilation configuration and issues

Error building on ubuntu

Postby tricolor » Tue May 07, 2013 12:48 am

g++ driver.o ConsoleAppException.o PrintUtility.o ConsoleMessageReceiver.o -L../../application/bin -lGmatBase -O3 -fno-strict-aliasing -ffriend-injection \
-o GmatConsole -L../../base/lib -lgfortran -ldl
/usr/bin/ld: cannot find -lGmatBase
collect2: ld returned 1 exit status

I am trying to build latest version but I got this error. Any sugestion?
I am following these instructions:
http://gmat.ed-pages.com/wiki/Building+on+Linux
tricolor
 
Posts: 3
Joined: Tue May 07, 2013 12:45 am

Re: Error building on ubuntu

Postby jjkparker » Tue May 07, 2013 11:54 am

Can you try the instructions here?

http://li394-117.members.linode.com:809 ... ing+on+Mac

They were written for Mac, but they are very close to the Linux method. The instructions you found are very old and outdated.
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

Re: Error building on ubuntu

Postby tricolor » Thu May 09, 2013 12:24 pm

It still does not work... I've tried everything I could but I still get the same error.
tricolor
 
Posts: 3
Joined: Tue May 07, 2013 12:45 am

Re: Error building on ubuntu

Postby jjkparker » Thu May 09, 2013 12:30 pm

Oh, I see, you're building the console executable. This isn't a required part of GMAT (the GUI is primary), which is probably why the build isn't working right now. Do you specifically want to use to the console version?
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

Re: Error building on ubuntu

Postby tricolor » Sun May 12, 2013 10:52 pm

I just want it running on my Ubuntu...
I excluded console from the build but there are much more errors, the MakeFiles of plugins are completely broken...
tricolor
 
Posts: 3
Joined: Tue May 07, 2013 12:45 am

Re: Error building on ubuntu

Postby DJCinSB » Mon May 13, 2013 3:14 pm

On Linux, the operating system does not automatically search the current directory for shared libraries. The problem is likely that you need to set the load library path before trying to start the application. I just built the console app (it builds fine when the system is configured correctly), and when I try to run it without setting the path, here is what I see:
Code: Select all
$ ./GmatConsole
./GmatConsole: error while loading shared libraries: libGmatBase.so: cannot open shared object file: No such file or directory

However, if I type this line first, setting the load library path:
Code: Select all
$ export LD_LIBRARY_PATH=.

then the application loads correctly:
Code: Select all
$ ./GmatConsole

********************************************
***  GMAT Console Application
********************************************

General Mission Analysis Tool
Console Based Version
Build Date: May 13 2013  08:03:39


Moderator is creating core engine...
...
DJCinSB
 
Posts: 274
Joined: Mon Jun 09, 2008 3:57 pm


Return to Compiling GMAT

Who is online

Users browsing this forum: No registered users and 3 guests