Board index FlightGear Support Compiling

undefined reference to SGMMapFile::~SGMMapFile()

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

undefined reference to SGMMapFile::~SGMMapFile()

Postby abassign » Mon Mar 15, 2021 3:12 pm

Hello,

I am trying to compile the next version of Flightgear, but as of this morning the compilation does not work and it gives me this error:

Code: Select all
make[2]: ingresso nella directory «/home/abassign/fgfs/build/flightgear»
make[2]: uscita dalla directory «/home/abassign/fgfs/build/flightgear»
[ 98%] Built target metar
make[2]: ingresso nella directory «/home/abassign/fgfs/build/flightgear»
make[2]: uscita dalla directory «/home/abassign/fgfs/build/flightgear»
make[2]: ingresso nella directory «/home/abassign/fgfs/build/flightgear»
[ 98%] Linking CXX executable fgfs
/usr/bin/ld: /home/abassign/fgfs/install/simgear/lib/libSimGearCore.a(timezone.cxx.o): in function `SGTimeZoneContainer::SGTimeZoneContainerPrivate::~SGTimeZoneContainerPrivate()':
/home/abassign/fgfs/simgear/simgear/timing/timezone.cxx:145: undefined reference to `SGMMapFile::~SGMMapFile()'
/usr/bin/ld: /home/abassign/fgfs/install/simgear/lib/libSimGearCore.a(timezone.cxx.o): in function `SGTimeZoneContainer::SGTimeZoneContainerPrivate::SGTimeZoneContainerPrivate()':
/home/abassign/fgfs/simgear/simgear/timing/timezone.cxx:141: undefined reference to `SGMMapFile::SGMMapFile()'
/usr/bin/ld: /home/abassign/fgfs/install/simgear/lib/libSimGearCore.a(timezone.cxx.o): in function `SGTimeZoneContainer::SGTimeZoneContainer(SGPath const&)':
/home/abassign/fgfs/simgear/simgear/timing/timezone.cxx:170: undefined reference to `SGMMapFile::open(SGPath const&, SGProtocolDir)'
/usr/bin/ld: /home/abassign/fgfs/install/simgear/lib/libSimGearCore.a(timezone.cxx.o): in function `SGTimeZoneContainer::SGTimeZoneContainerPrivate::~SGTimeZoneContainerPrivate()':
/home/abassign/fgfs/simgear/simgear/timing/timezone.cxx:145: undefined reference to `SGMMapFile::~SGMMapFile()'
collect2: error: ld returned 1 exit status
make[2]: *** [src/Main/CMakeFiles/fgfs.dir/build.make:1186: src/Main/fgfs] Errore 1
make[2]: uscita dalla directory «/home/abassign/fgfs/build/flightgear»
make[1]: *** [CMakeFiles/Makefile2:3556: src/Main/CMakeFiles/fgfs.dir/all] Errore 2
make[1]: uscita dalla directory «/home/abassign/fgfs/build/flightgear»
make: *** [Makefile:163: all] Errore 2
All optional package alternatives have found a matching package.


The compilation is on on Linux Ubuntu 20.10 with the next version, the compilation script is

./ download_and_compile.sh

does anyone know if the problem can be solved?
Thank you
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: undefined reference to SGMMapFile::~SGMMapFile()

Postby wkitty42 » Mon Mar 15, 2021 3:22 pm

run it again...
"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: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: undefined reference to SGMMapFile::~SGMMapFile()

Postby Gijs » Mon Mar 15, 2021 3:33 pm

Hi,

The problem was introduced and fixed today. You probably pulled SimGear in between these two commits ;-)
https://sourceforge.net/p/flightgear/codetickets/2563/

Gijs
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9544
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: undefined reference to SGMMapFile::~SGMMapFile()

Postby abassign » Mon Mar 15, 2021 6:51 pm

Perfect, I try the compile and is all ok :)
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: undefined reference to SGMMapFile::~SGMMapFile()

Postby zakalawe » Mon Mar 15, 2021 7:22 pm

Please do check the developer list for compile issues, probably gets a faster turn-around than here.
zakalawe
 
Posts: 1259
Joined: Sat Jul 19, 2008 5:48 pm
Location: Edinburgh, Scotland
Callsign: G-ZKLW
Version: next
OS: Mac


Return to Compiling

Who is online

Users browsing this forum: No registered users and 3 guests