Board index FlightGear Support Compiling

Error in NavDataCache.cxx.o

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

Error in NavDataCache.cxx.o

Postby Soitanen » Fri Oct 04, 2013 7:03 am

Trying to compile latest git in gentoo and have error:
Code: Select all
[ 78%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Navaids/NavDataCache.cxx.o
cd /var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999_build/src/Main && /usr/bin/x86_64-pc-linux-gnu-g++  -DHAVE_CONFIG_H -DWITH_EVENTINPUT  -DNDEBUG -O2 -march=native -pipe  -Wall  -D_REENTRANT -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DBOOST_BIMAP_DISABLE_SERIALIZATION -I/usr/include/AL -I/var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999 -I/var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999/src -I/var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999/3rdparty/iaxclient/lib -I/var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999_build/src -I/var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999_build/src/Include -I/var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999/src/FDM/JSBSim    -o CMakeFiles/fgfs.dir/__/Navaids/NavDataCache.cxx.o -c /var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999/src/Navaids/NavDataCache.cxx
/var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999/src/Navaids/NavDataCache.cxx: In member function ‘FGPositioned* flightgear::NavDataCache::NavDataCachePrivate::loadById(sqlite3_int64)’:
/var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999/src/Navaids/NavDataCache.cxx:956:55: error: no matching function for call to ‘flightgear::AirportTower::AirportTower(sqlite3_int64&, sqlite3_int64&, std::string&, SGGeod&)’
/var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999/src/Navaids/NavDataCache.cxx:956:55: note: candidates are:
/var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999/src/Navaids/NavDataCache.cxx:197:3: note: flightgear::AirportTower::AirportTower(PositionedID&, PositionedID, const string&, const SGGeod&)
/var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999/src/Navaids/NavDataCache.cxx:197:3: note:   no known conversion for argument 1 from ‘sqlite3_int64 {aka long long int}’ to ‘PositionedID& {aka long int&}’
/var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999/src/Navaids/NavDataCache.cxx:194:7: note: flightgear::AirportTower::AirportTower(const flightgear::AirportTower&)
/var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999/src/Navaids/NavDataCache.cxx:194:7: note:   candidate expects 1 argument, 4 provided
make[2]: *** [src/Main/CMakeFiles/fgfs.dir/__/Navaids/NavDataCache.cxx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999_build'
make[1]: *** [src/Main/CMakeFiles/fgfs.dir/all] Error 2
make[1]: Leaving directory `/var/calculate/tmp/portage/games-simulation/flightgear-9999/work/flightgear-9999_build'
make: *** [all] Error 2
 * ERROR: games-simulation/flightgear-9999::gamerlay failed (compile phase):
 *   emake failed


Earlier all compilations was normal.
Boeing 737-300. Reworked cockpit, FDM, autopilot and much more. WIP.
Boeing 737-800. WIP. Canvas PFD and ND.
Antonov An-24B. Made from scratch. Very good FDM. 3D model by Adrian. WIP.
Project Russia (some cities, based on OSM with custom objects).
Soitanen
 
Posts: 489
Joined: Sat Jun 16, 2012 7:50 am
Location: Saint-Petersburg, Russia
Version: git
OS: Linux Mint 17

Re: Error in NavDataCache.cxx.o

Postby zakalawe » Fri Oct 04, 2013 10:48 am

Avoid using SYSTEM_SQLITE on distros with sqlite 3.8 for the moment. Unfortunately the 3.8 headers have an issue we need to work around. I've patch the header in the bundled copy of sqlite.
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 5 guests