Board index FlightGear Support Compiling

Flightgear dies during compilation on Linux

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

Flightgear dies during compilation on Linux

Postby Widgeteye » Mon Dec 30, 2013 5:04 pm

I get the following error:

/usr/local/lib/libfltk.a(fl_font.o): undefined reference to symbol 'FcPatternDestroy'
/usr/lib/gcc/i486-slackware-linux/4.7.1/../../../../i486-slackware-linux/bin/ld: note: 'FcPatternDestroy' is defined in DSO /usr/lib/libfontconfig.so.1 so try adding it to the linker command line
/usr/lib/libfontconfig.so.1: could not read symbols: Invalid operation

I searched for other files of libfontconfig.so.1 on my system to make sure there were no conflicting files and found some in my home directory but they are not in the path of ld.so.conf.
Not sure what else to look for.

I am building flightgear-2.12.1, I have already installed the prerequisits including simgear.

Any help appreciated.
Widgeteye
 
Posts: 6
Joined: Fri Dec 09, 2011 4:15 pm

Re: Flightgear dies during compilation on Linux

Postby ludomotico » Mon Dec 30, 2013 5:30 pm

It seems you need a -lfontconfig somewhere. Try:

cmake -DCMAKE_EXE_LINKER_FLAGS="-lfontconfig" RESTOFPARAMETERS
make

In any case, the conflicting line is in libfltk. Currently, libfltk is only used by fgadmin and fgrun. Since fgadmin is not really necessary in modern FlightGear and it seems to use an old libfltk, I'd never built it. You can deactivate fgadmin with:

cmake -DENABLE_FGADMIN=OFF RESTOFPARAMETERS
User avatar
ludomotico
 
Posts: 1011
Joined: Tue Apr 24, 2012 1:01 pm
Version: git
OS: Debian GNU/Linux

Re: Flightgear dies during compilation on Linux

Postby Widgeteye » Mon Dec 30, 2013 6:00 pm

Thanks,
-DENABLE_FGADMIN=OFF did the trick. I never used any of that anyway. Always started fgfs --otherstuff --andsomemore :)
Widgeteye
 
Posts: 6
Joined: Fri Dec 09, 2011 4:15 pm


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest