Board index FlightGear Support Compiling

Building Stable, failed compile - help required! (SOLVED!)

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

Building Stable, failed compile - help required! (SOLVED!)

Postby nixnerd » Wed Dec 19, 2018 5:45 pm

Hello All,

I'm following the instructions here:
http://wiki.flightgear.org/Building_FlightGear_-_Devuan

Having entered:

mkdir $FG_SRC_DIR/build-fg && cd $FG_SRC_DIR/build-fg
cmake CFLAGS="--std=c++11" -D CMAKE_BUILD_TYPE=Release \
-D FG_DATA_DIR:PATH="$FG_INSTALL_DIR/share/fgdata" \
-D CMAKE_INSTALL_PREFIX:PATH="$FG_INSTALL_DIR" $FG_SRC_DIR/flightgear.git
make -j$(nproc) && make install

Compile starts and then:
...
[100%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/EmbeddedResources/FlightGear-resources.cxx.o
[100%] Building CXX object src/Main/CMakeFiles/fgfs.dir/fgfs_automoc.cpp.o
[100%] Linking CXX executable fgfs
CMakeFiles/fgfs.dir/__/GUI/AirportList.cxx.o:(.data.rel.ro._ZTV11AirportList[_ZTV11AirportList]+0xb8): undefined reference to `puaList::checkHit(int, int, int, int)'
CMakeFiles/fgfs.dir/__/GUI/FGPUIDialog.cxx.o:(.data.rel.ro._ZTV6fgList[_ZTV6fgList]+0xe0): undefined reference to `puaList::checkHit(int, int, int, int)'
CMakeFiles/fgfs.dir/__/GUI/FGPUIDialog.cxx.o:(.data.rel.ro._ZTV7LogList[_ZTV7LogList]+0xb8): undefined reference to `puaList::checkHit(int, int, int, int)'
CMakeFiles/fgfs.dir/__/GUI/property_list.cxx.o:(.data.rel.ro._ZTV12PropertyList[_ZTV12PropertyList]+0xb8): undefined reference to `puaList::checkHit(int, int, int, int)'
collect2: error: ld returned 1 exit status
src/Main/CMakeFiles/fgfs.dir/build.make:12811: recipe for target 'src/Main/fgfs' failed
make[2]: *** [src/Main/fgfs] Error 1
CMakeFiles/Makefile2:2132: recipe for target 'src/Main/CMakeFiles/fgfs.dir/all' failed
make[1]: *** [src/Main/CMakeFiles/fgfs.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Any help in resolving this would be appreciated
Last edited by nixnerd on Wed Dec 19, 2018 8:41 pm, edited 1 time in total.
nixnerd
 
Posts: 5
Joined: Sat Feb 17, 2018 1:39 am

Re: Building Stable, failed compile - help required!

Postby FlugHund » Wed Dec 19, 2018 6:02 pm

Quick shot: delete package libplib-dev (can be reinstalled after compilation).

Edit: afterwards start over with an empty $FG_SRC_DIR/build-fg!

If that doesn't help, which distro/version you're on?
User avatar
FlugHund
 
Posts: 512
Joined: Thu Mar 01, 2007 3:27 pm
Callsign: D-HUND
IRC name: D-HUND / debdog
Version: next
OS: Devuan

Re: Building Stable, failed compile - help required!

Postby nixnerd » Wed Dec 19, 2018 6:09 pm

Howdy FlugHund,

I'm using Ubuntu 16.04.5

I'm just trying the solution proposed by abasign here --> viewtopic.php?f=45&t=34146

As previously I was using the download_and_compile.sh script, but getting remote hang ups :(
nixnerd
 
Posts: 5
Joined: Sat Feb 17, 2018 1:39 am

Re: Building Stable, failed compile - help required!

Postby wkitty42 » Wed Dec 19, 2018 6:58 pm

the fix for the remote hangups with the d&c script is to change the protocol used by the repository... change back to using git:// instead of https:// and it works... this started happening when sourceforge moved to a new data center... i made the change manually in each repo's .git/config file... you could also change it in your copy of d&c but that's only for new pulls... not existing ones... i find the manual edit the easiest but there is a ""proper"" git method to change it, too... i just don't know it ;)
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 5217
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Building Stable, failed compile - help required!

Postby nixnerd » Wed Dec 19, 2018 8:40 pm

Hi wkitty42

Yes indeed, having changed to git, it's all now downloaded, compiled and running nicely.

Thanks for your help, all :)
nixnerd
 
Posts: 5
Joined: Sat Feb 17, 2018 1:39 am


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest