Board index FlightGear Support Compiling

Upgrading to 2.6

Building FlightGear from source, and in the need for help?

Upgrading to 2.6

Postby RPaul » Fri Mar 02, 2012 6:38 am

Hi all,

I have followed the instructions in the post about building FG 2.6 in Netbeans. I am using Fedora 15, 64 bit.

I believe I have everything installed, but I did not download the base package until after the build of FG and Simgear.

When I run 'fgfs' in the terminal I get the following:

-----------------------------------------------------------------------------
ERROR: The path '/usr/local/lib/FlightGear' does not exist in the file system.


Base package check failed:
Version [none] found at: /usr/local/lib/FlightGear
Version 2.6.0 is required.
Please upgrade/downgrade base package and set the path to your fgdata
with --fg-root=path_to_your_fgdata
-------------------------------------------------------------------------------------------

I have the base package in ~/FlightGear_2p6. How do I set the path to fgdata?

Regards,
RPaul
 
Posts: 10
Joined: Sat Oct 01, 2011 6:47 am

Re: Upgrading to 2.6

Postby Bjoern » Fri Mar 02, 2012 5:37 pm

If your fgdata folder is in ~/FlightGear_2p6:

Code: Select all
fgfs --fgroot=~/FlightGear_2p6


Also, you might want to consider using FGRun. It provides a GUI for launching FG.
http://wiki.flightgear.org/FlightGear_Launch_Control
Bjoern
 
Posts: 484
Joined: Fri Jan 06, 2012 11:00 pm
Location: TXL (RIP)
Version: Next
OS: ArchLinux

Re: Upgrading to 2.6

Postby ThorstenB » Sat Mar 03, 2012 6:07 pm

Or you could run cmake with an additional parameter and rebuild "flightgear"
Code: Select all
cmake -DFG_DATA_DIR:STRING="/home/paul/FlightGear_2p6" .....
make install

This way, you can still run "fgfs" from the command-line and it already knows the correct fgdata path on your system.
User avatar
ThorstenB
 
Posts: 160
Joined: Fri Nov 19, 2010 10:49 am
Location: Germany
Callsign: D-TB7
Version: GIT
OS: openSUSE

Re: Upgrading to 2.6

Postby RPaul » Thu Mar 08, 2012 8:22 pm

Thank you Bjoern and ThorstenB.

I attempted to install FGRun. I received the following error:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/usr/bin/ld: /usr/local/lib/libfltk.a(Fl_Preferences.o): undefined reference to symbol 'dlopen@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlopen@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line
/lib64/libdl.so.2: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [src/fgrun] Error 1
make[1]: *** [src/CMakeFiles/fgrun.dir/all] Error 2
make: *** [all] Error 2
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I am not sure what is going wrong. I have searched this forum, but have not figured out what the above error means. Additional help is appreciated. I am using Fedora 15, 64 bit, on a Lenovo W520.
RPaul
 
Posts: 10
Joined: Sat Oct 01, 2011 6:47 am

Re: Upgrading to 2.6

Postby ThorstenB » Thu Mar 08, 2012 8:57 pm

Looks like a problem with the fltk library setup on Fedora. It needs "/lib64/libdl.so.2" but the dependency isn't detected (normally should be detected automatically through some fancy package setup).
Try adding the missing libraries to the cmake command-line manually, i.e.
Code: Select all
cmake -DCMAKE_EXE_LINKER_FLAGS:STRING=/lib64/libdl.so.2 ...
User avatar
ThorstenB
 
Posts: 160
Joined: Fri Nov 19, 2010 10:49 am
Location: Germany
Callsign: D-TB7
Version: GIT
OS: openSUSE

Re: Upgrading to 2.6

Postby RPaul » Fri Mar 09, 2012 10:56 pm

After trying the above suggestion, I got the following error:

------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/usr/bin/ld: /usr/local/lib/libfltk.a(fl_font.cxx.o): undefined reference to symbol 'FcUtf8ToUcs4'
/usr/bin/ld: note: 'FcUtf8ToUcs4' is defined in DSO /usr/lib64/libfontconfig.so.1 so try adding it to the linker command line
/usr/lib64/libfontconfig.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [utils/fgadmin/src/fgadmin] Error 1
make[1]: *** [utils/fgadmin/src/CMakeFiles/fgadmin.dir/all] Error 2
make: *** [all] Error 2
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I have confirmed that /usr/lib64/libfontconfig.so.1 exists on my system.
RPaul
 
Posts: 10
Joined: Sat Oct 01, 2011 6:47 am

Re: Upgrading to 2.6

Postby ThorstenB » Sat Mar 10, 2012 12:12 am

Same as above. Just keep adding any missing library. Your system is already suggesting which libs to add - so that's a handy.
Code: Select all
cmake -DCMAKE_EXE_LINKER_FLAGS:STRING="/lib64/libdl.so.2 /usr/lib64/libfontconfig.so.1" ...
User avatar
ThorstenB
 
Posts: 160
Joined: Fri Nov 19, 2010 10:49 am
Location: Germany
Callsign: D-TB7
Version: GIT
OS: openSUSE

Re: Upgrading to 2.6

Postby RPaul » Sat Mar 10, 2012 5:23 pm

Thanks ThorstenB, that worked and FG2.6 is running.
RPaul
 
Posts: 10
Joined: Sat Oct 01, 2011 6:47 am


Return to Compiling

Who is online

Users browsing this forum: No registered users and 4 guests