Page 1 of 1

Linux Freeorion compile problem (boost 1.48.0?)

Posted: Fri Dec 16, 2011 2:34 pm
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

Re: Linux Freeorion compile problem (boost 1.48.0?)

Posted: Fri Dec 16, 2011 10:21 pm
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.

Re: Linux Freeorion compile problem (boost 1.48.0?)

Posted: Sat Dec 17, 2011 11:50 pm
by guini
Yes, I updated GG on Friday (16.12).

Re: Linux Freeorion compile problem (boost 1.48.0?)

Posted: Mon Dec 19, 2011 1:45 pm
by tzlaine
This should be fixed in SVN now.

Re: Linux Freeorion compile problem (boost 1.48.0?)

Posted: Mon Dec 19, 2011 3:55 pm
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.