Board index FlightGear Support Compiling

Compilation error on ubuntu 16.04

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

Compilation error on ubuntu 16.04

Postby dutchguy » Thu May 12, 2016 10:17 am

Dear all,

Today, when I did a git pull, the fg compilation gave the following error:
Code: Select all
In file included from /home/govert/fgsrc/flightgear/src/MultiPlayer/multiplaymgr.cxx:41:0:
/home/govert/fgsrc/flightgear/src/MultiPlayer/multiplaymgr.cxx: In member function ‘void FGMultiplayMgr::SendMyPosition(const FGExternalMotionData&)’:
/home/govert/fgsrc/flightgear/src/MultiPlayer/multiplaymgr.cxx:819:83: error: ‘to_string’ is not a member of ‘std’
             SG_LOG(SG_NETWORK, SG_ALERT, "Multiplayer packet truncated prop id: "+std::to_string((*it)->id));
                                                                                   ^
/home/govert/FG-install/include/simgear/debug/logstream.hxx:136:15: note: in definition of macro ‘SG_LOG’
         os << M;                                       \
               ^
/home/govert/fgsrc/flightgear/src/MultiPlayer/multiplaymgr.cxx:858:109: error: ‘to_string’ is not a member of ‘std’
                   SG_LOG(SG_NETWORK, SG_ALERT, "Multiplayer property truncated at MAX_TEXT_SIZE in string "+std::to_string((*it)->id));
                                                                                                             ^
/home/govert/FG-install/include/simgear/debug/logstream.hxx:136:15: note: in definition of macro ‘SG_LOG’
         os << M;                                       \
               ^
/home/govert/fgsrc/flightgear/src/MultiPlayer/multiplaymgr.cxx:866:100: error: ‘to_string’ is not a member of ‘std’
                     SG_LOG(SG_NETWORK, SG_ALERT, "Multiplayer property not sent (no room) string "+std::to_string((*it)->id));
                                                                                                    ^
/home/govert/FG-install/include/simgear/debug/logstream.hxx:136:15: note: in definition of macro ‘SG_LOG’
         os << M;                                       \
               ^
/home/govert/fgsrc/flightgear/src/MultiPlayer/multiplaymgr.cxx:881:94: error: ‘to_string’ is not a member of ‘std’
                       SG_LOG(SG_NETWORK, SG_ALERT, "Multiplayer packet truncated in string "+std::to_string((*it)->id)+" lcount "+std::to_string(lcount));
                                                                                              ^
/home/govert/FG-install/include/simgear/debug/logstream.hxx:136:15: note: in definition of macro ‘SG_LOG’
         os << M;                                       \
               ^
/home/govert/fgsrc/flightgear/src/MultiPlayer/multiplaymgr.cxx:881:131: error: ‘to_string’ is not a member of ‘std’
                       SG_LOG(SG_NETWORK, SG_ALERT, "Multiplayer packet truncated in string "+std::to_string((*it)->id)+" lcount "+std::to_string(lcount));
                                                                                                                                   ^
/home/govert/FG-install/include/simgear/debug/logstream.hxx:136:15: note: in definition of macro ‘SG_LOG’
         os << M;                                       \
               ^
/home/govert/fgsrc/flightgear/src/MultiPlayer/multiplaymgr.cxx:895:94: error: ‘to_string’ is not a member of ‘std’
                       SG_LOG(SG_NETWORK, SG_ALERT, "Multiplayer packet truncated in string "+std::to_string((*it)->id)+" lcount "+std::to_string(lcount));
                                                                                              ^
/home/govert/FG-install/include/simgear/debug/logstream.hxx:136:15: note: in definition of macro ‘SG_LOG’
         os << M;                                       \
               ^
/home/govert/fgsrc/flightgear/src/MultiPlayer/multiplaymgr.cxx:895:131: error: ‘to_string’ is not a member of ‘std’
                       SG_LOG(SG_NETWORK, SG_ALERT, "Multiplayer packet truncated in string "+std::to_string((*it)->id)+" lcount "+std::to_string(lcount));
                                                                                                                                   ^
/home/govert/FG-install/include/simgear/debug/logstream.hxx:136:15: note: in definition of macro ‘SG_LOG’
         os << M;                                       \
               ^
src/Main/CMakeFiles/fgfs.dir/build.make:4382: recipe for target 'src/Main/CMakeFiles/fgfs.dir/__/MultiPlayer/multiplaymgr.cxx.o' failed


I tried doing a make clean for both simgear and flightgear before trying to build again, but this didn't solve the problem. Does anyone know what's going wrong?
dutchguy
 
Posts: 108
Joined: Mon Mar 31, 2014 4:16 pm

Re: Compilation error on ubuntu 16.04

Postby bugman » Thu May 12, 2016 10:18 am

Hi,

Just git pull again. There was only a few hours between the breakage and fix, and the fix was just merged a few minutes ago.

Regards,
Edward
bugman
Moderator
 
Posts: 1799
Joined: Thu Mar 19, 2015 9:01 am
Version: next

Re: Compilation error on ubuntu 16.04

Postby dutchguy » Thu May 12, 2016 10:56 am

That worked! Thank you!
dutchguy
 
Posts: 108
Joined: Mon Mar 31, 2014 4:16 pm


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest