Linux Freeorion compile problem (boost 1.48.0?)

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
guini
Space Krill
Posts: 5
Joined: Tue Oct 18, 2011 2:08 am

Linux Freeorion compile problem (boost 1.48.0?)

#1 Post by guini »

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: Select all

[ 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

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Linux Freeorion compile problem (boost 1.48.0?)

#2 Post by Geoff the Medio »

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.

guini
Space Krill
Posts: 5
Joined: Tue Oct 18, 2011 2:08 am

Re: Linux Freeorion compile problem (boost 1.48.0?)

#3 Post by guini »

Yes, I updated GG on Friday (16.12).

tzlaine
Programming Lead Emeritus
Posts: 1092
Joined: Thu Jun 26, 2003 1:33 pm

Re: Linux Freeorion compile problem (boost 1.48.0?)

#4 Post by tzlaine »

This should be fixed in SVN now.

guini
Space Krill
Posts: 5
Joined: Tue Oct 18, 2011 2:08 am

Re: Linux Freeorion compile problem (boost 1.48.0?)

#5 Post by guini »

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

[The extension patch has been deactivated and can no longer be displayed.]


Post Reply