FreeOrion

Forums for the FreeOrion project
It is currently Wed Jun 19, 2013 4:58 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Linux Freeorion compile problem (boost 1.48.0?)
PostPosted: Fri Dec 16, 2011 2:34 pm 
Offline
Space Krill

Joined: Tue Oct 18, 2011 2:08 am
Posts: 5
Hi, I get the following error, when I try to compile freeorion from svn on arch linux.
I have boost 1.48.0 installed and build gigi with using it and I think that's the reason
for the error.
Is there something I can do?

Code:
[ 53%] Building CXX object CMakeFiles/parse_static.dir/parse/ShipPartsParser.cpp.o
In file included from /usr/include/boost/spirit/home/phoenix/core.hpp:13:0,
                 from /usr/include/boost/spirit/include/phoenix_core.hpp:14,
                 from /usr/include/boost/spirit/home/support/terminal.hpp:16,
                 from /usr/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /usr/include/boost/spirit/home/lex/lexer/terminals.hpp:13,
                 from /usr/include/boost/spirit/home/lex/lexer.hpp:13,
                 from /usr/include/boost/spirit/home/lex.hpp:13,
                 from /usr/include/boost/spirit/home/lex/lexer_lexertl.hpp:15,
                 from /usr/include/boost/spirit/include/lex_lexertl.hpp:16,
                 from /usr/include/GG/LexerFwd.h:34,
                 from /home/anton/abs/build/freeorion-svn/src/freeorion-build/parse/Lexer.h:7,
                 from /home/anton/abs/build/freeorion-svn/src/freeorion-build/parse/Double.h:5,
                 from /home/anton/abs/build/freeorion-svn/src/freeorion-build/parse/ShipPartsParser.cpp:3:
/usr/include/boost/spirit/home/phoenix/core/actor.hpp:15:3: error: #error "BOOST_RESULT_OF_NUM_ARGS < PHOENIX_ACTOR_LIMIT"
make[2]: *** [CMakeFiles/parse_static.dir/parse/ShipPartsParser.cpp.o] Error 1
make[1]: *** [CMakeFiles/parse_static.dir/all] Error 2
make: *** [all] Error 2


Top
 Profile  
 
 Post subject: Re: Linux Freeorion compile problem (boost 1.48.0?)
PostPosted: Fri Dec 16, 2011 10:21 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 8058
Location: Vancouver, BC
Have you updated GG SVN in the last few days? There were just some changes made to fix building with Boost 1.48 and I'd guess these would affect the FreeOrion build as well, though this might be a separate issue.


Top
 Profile  
 
 Post subject: Re: Linux Freeorion compile problem (boost 1.48.0?)
PostPosted: Sat Dec 17, 2011 11:50 pm 
Offline
Space Krill

Joined: Tue Oct 18, 2011 2:08 am
Posts: 5
Yes, I updated GG on Friday (16.12).


Top
 Profile  
 
 Post subject: Re: Linux Freeorion compile problem (boost 1.48.0?)
PostPosted: Mon Dec 19, 2011 1:45 pm 
Offline
Programming Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 1:33 pm
Posts: 1092
This should be fixed in SVN now.


Top
 Profile  
 
 Post subject: Re: Linux Freeorion compile problem (boost 1.48.0?)
PostPosted: Mon Dec 19, 2011 3:55 pm 
Offline
Space Krill

Joined: Tue Oct 18, 2011 2:08 am
Posts: 5
Thanks.

It compiles now, but I had to add the OpenGL libs to the CMakeLists.txt.
The linking fails without them. I think the reason is a change in
gcc 4.5 or 4.6 (?). Now all explicitly used libraries have to be passed to the
linker (at least on Arch Linux and I think also on Debian see:
http://lists.debian.org/debian-devel-an ... 00011.html )

I made a patch for this, maybe it's of some use.
The patch also changes the install destination, so that
data files are installed to default and not default/default.
I don't now if this is a problem for the windows build.


Attachments:
CMakeLists.patch [1.22 KiB]
Downloaded 29 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group