Board index FlightGear Support Compiling

2.99: Errors in locale.cxx  Topic is solved

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

2.99: Errors in locale.cxx

Postby sgofferj » Thu Nov 14, 2013 11:00 pm

Hi,

I decided to try to compile FG by hand.
Simgear went through fine. Comiling FG stops with the following error:
Code: Select all
[ 44%] Building CXX object src/Main/CMakeFiles/fgfs.dir/locale.cxx.o
In file included from /usr/src/flightgear/src/Main/locale.cxx:35:0:
/usr/src/flightgear/src/Main/locale.hxx:76:72: error: ‘va_list’ has not been declared
/usr/src/flightgear/src/Main/locale.cxx: In member function ‘std::string FGLocale::localizedPrintf(const char*, const char*, ...)’:
/usr/src/flightgear/src/Main/locale.cxx:353:5: error: ‘va_list’ was not declared in this scope
/usr/src/flightgear/src/Main/locale.cxx:353:13: error: expected ‘;’ before ‘args’
/usr/src/flightgear/src/Main/locale.cxx:354:14: error: ‘args’ was not declared in this scope
/usr/src/flightgear/src/Main/locale.cxx:354:28: error: ‘va_start’ was not declared in this scope
/usr/src/flightgear/src/Main/locale.cxx:356:16: error: ‘va_end’ was not declared in this scope
/usr/src/flightgear/src/Main/locale.cxx: At global scope:
/usr/src/flightgear/src/Main/locale.cxx:360:78: error: ‘va_list’ has not been declared
/usr/src/flightgear/src/Main/locale.cxx: In member function ‘std::string FGLocale::vlocalizedPrintf(const char*, const char*, int)’:
/usr/src/flightgear/src/Main/locale.cxx:363:15: error: ‘::vsprintf’ has not been declared
/usr/src/flightgear/src/Main/locale.cxx:365:5: error: ‘::vsprintf’ has not been declared
/usr/src/flightgear/src/Main/locale.cxx: In function ‘std::string fgTrPrintfMsg(const char*, ...)’:
/usr/src/flightgear/src/Main/locale.cxx:426:5: error: ‘va_list’ was not declared in this scope
/usr/src/flightgear/src/Main/locale.cxx:426:13: error: expected ‘;’ before ‘args’
/usr/src/flightgear/src/Main/locale.cxx:427:14: error: ‘args’ was not declared in this scope
/usr/src/flightgear/src/Main/locale.cxx:427:23: error: ‘va_start’ was not declared in this scope
/usr/src/flightgear/src/Main/locale.cxx:429:16: error: ‘va_end’ was not declared in this scope
make[2]: *** [src/Main/CMakeFiles/fgfs.dir/locale.cxx.o] Error 1
make[1]: *** [src/Main/CMakeFiles/fgfs.dir/all] Error 2
make: *** [all] Error 2


-- Git revision is 139af0026f72a345fd02232a5dc7eb5c19cb2934

What can I do? :)
FG 3.1 GIT / Opensuse 12.3 / Phenom II X4 / GForce GTX560
Stefan's little Flightgear corner | The Finnish Weather Center | Wolves in Finland

Working on: EFTP
COM: IAX2:home.gofferje.net/stefan (MO-FR 0700-2000 UTC, SA+SU 0900-2000 UTC)
sgofferj
 
Posts: 790
Joined: Mon Dec 05, 2011 4:13 pm
Location: EFTP
Callsign: OH-SW
Version: 3.1 GIT
OS: Opensuse

Re: 2.99: Errors in locale.cxx  

Postby F-JJTH » Thu Nov 14, 2013 11:42 pm

Hi,

A fix has been commited, pull the repo then it should be fixed.

Regards,
Clément
User avatar
F-JJTH
 
Posts: 697
Joined: Fri Sep 09, 2011 11:02 am

Re: 2.99: Errors in locale.cxx

Postby Hooray » Thu Nov 14, 2013 11:48 pm

it was probably missing stdarg.h (or cstdarg in C++) for your platform - most of these headers are implicitly pulled in by other included headers, but this differs across platforms and compilers...
What can I do?

Usually you can fix those issues by googling the compiler error message and adding the header that's missing.

So if you find any other definitions missing, just let us know - or fix them and run "git diff" in the end and post a patch here :-)
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11273
Joined: Tue Mar 25, 2008 8:40 am

Re: 2.99: Errors in locale.cxx

Postby sgofferj » Fri Nov 15, 2013 12:13 am

That was the only error. Otherwise, FG compiles fine now also. Now pulling fgdata.
FG 3.1 GIT / Opensuse 12.3 / Phenom II X4 / GForce GTX560
Stefan's little Flightgear corner | The Finnish Weather Center | Wolves in Finland

Working on: EFTP
COM: IAX2:home.gofferje.net/stefan (MO-FR 0700-2000 UTC, SA+SU 0900-2000 UTC)
sgofferj
 
Posts: 790
Joined: Mon Dec 05, 2011 4:13 pm
Location: EFTP
Callsign: OH-SW
Version: 3.1 GIT
OS: Opensuse


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest