Board index FlightGear Support Compiling

‘flightgear::NavDataCache::datTypeStr’ must be initialized b  Topic is solved

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

‘flightgear::NavDataCache::datTypeStr’ must be initialized b

Postby pommesschranke » Mon Oct 17, 2016 10:17 pm

I am using download_and_compile.sh on ubuntu 14.04

I can build older versions, but today I get this:

Code: Select all
[ 41%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Navaids/NavDataCache.cxx.o
/SDB2/fg-fgmeta/next/flightgear/src/Navaids/NavDataCache.cxx:1156:1: error: in C++98 ‘flightgear::NavDataCache::datTypeStr’ must be initialized by constructor, not by ‘{...}’
 };
 ^
/SDB2/fg-fgmeta/next/flightgear/src/Navaids/NavDataCache.cxx:1156:1: error: could not convert ‘{std::basic_string<char>(((const char*)"apt"), (*(const std::allocator<char>*)(& std::allocator<char>()))), std::basic_string<char>(((const char*)"metar"), (*(const std::allocator<char>*)(& std::allocator<char>()))), std::basic_string<char>(((const char*)"awy"), (*(const std::allocator<char>*)(& std::allocator<char>()))), std::basic_string<char>(((const char*)"nav"), (*(const std::allocator<char>*)(& std::allocator<char>()))), std::basic_string<char>(((const char*)"fix"), (*(const std::allocator<char>*)(& std::allocator<char>()))), std::basic_string<char>(((const char*)"poi"), (*(const std::allocator<char>*)(& std::allocator<char>()))), std::basic_string<char>(((const char*)"carrier"), (*(const std::allocator<char>*)(& std::allocator<char>()))), std::basic_string<char>(((const char*)"TACAN_freq"), (*(const std::allocator<char>*)(& std::allocator<char>())))}’ from ‘<brace-enclosed initializer list>’ to ‘const string_list {aka const std::vector<std::basic_string<char> >}’
/SDB2/fg-fgmeta/next/flightgear/src/Navaids/NavDataCache.cxx:1167:1: error: in C++98 ‘flightgear::NavDataCache::defaultDatFile’ must be initialized by constructor, not by ‘{...}’
 };
 ^
/SDB2/fg-fgmeta/next/flightgear/src/Navaids/NavDataCache.cxx:1167:1: error: could not convert ‘{std::basic_string<char>(((const char*)"Airports/apt.dat.gz"), (*(const std::allocator<char>*)(& std::allocator<char>()))), std::basic_string<char>(((const char*)"Airports/metar.dat.gz"), (*(const std::allocator<char>*)(& std::allocator<char>()))), std::basic_string<char>(((const char*)"Navaids/awy.dat.gz"), (*(const std::allocator<char>*)(& std::allocator<char>()))), std::basic_string<char>(((const char*)"Navaids/nav.dat.gz"), (*(const std::allocator<char>*)(& std::allocator<char>()))), std::basic_string<char>(((const char*)"Navaids/fix.dat.gz"), (*(const std::allocator<char>*)(& std::allocator<char>()))), std::basic_string<char>(((const char*)"Navaids/poi.dat.gz"), (*(const std::allocator<char>*)(& std::allocator<char>()))), std::basic_string<char>(((const char*)"Navaids/carrier.dat.gz"), (*(const std::allocator<char>*)(& std::allocator<char>()))), std::basic_string<char>(((const char*)"Navaids/TACAN_freq.dat.gz"), (*(const std::allocator<char>*)(& std::allocator<char>())))}’ from ‘<brace-enclosed initializer list>’ to ‘const string_list {aka const std::vector<std::basic_string<char> >}’
make[2]: *** [src/Main/CMakeFiles/fgfs.dir/__/Navaids/NavDataCache.cxx.o] Fehler 1
make[1]: *** [src/Main/CMakeFiles/fgfs.dir/all] Fehler 2
make: *** [all] Fehler 2

pommesschranke
 
Posts: 1100
Joined: Sat Apr 27, 2013 7:58 pm
Location: EDLM & LJCE
Callsign: d-laser
IRC name: laserman
Version: git
OS: Linux Lubuntu 18.04

Re: ‘flightgear::NavDataCache::datTypeStr’ must be initializ

Postby wkitty42 » Mon Oct 17, 2016 11:07 pm

i just saw a post on the dev list about this... hopefully they will have it fixed shortly... at least by morning (it is 1900 here)... maybe... fingers crossed :)
"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: 4746
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: ‘flightgear::NavDataCache::datTypeStr’ must be initializ  

Postby pommesschranke » Tue Oct 18, 2016 11:08 am

pommesschranke
 
Posts: 1100
Joined: Sat Apr 27, 2013 7:58 pm
Location: EDLM & LJCE
Callsign: d-laser
IRC name: laserman
Version: git
OS: Linux Lubuntu 18.04


Return to Compiling

Who is online

Users browsing this forum: No registered users and 3 guests