Problem building GiGi at adam.cpp

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
tenspd137
Space Krill
Posts: 4
Joined: Fri Nov 12, 2010 5:20 am

Problem building GiGi at adam.cpp

#1 Post by tenspd137 »

Hi all -

I was building GiGi and it conks out at:

/home/collin/non-portage-installs/freeorion/FreeOrion/GG/tutorial/adam.cpp: In function ‘bool GG::TestExpressionParser(const GG::expression_parser<__gnu_cxx::__normal_iterator<$
/home/collin/non-portage-installs/freeorion/FreeOrion/GG/tutorial/adam.cpp:391: error: invalid initialization of non-const reference of type ‘__gnu_cxx::__normal_iterator<const$
/usr/include/boost-1_42/boost/spirit/home/qi/parse.hpp:62: error: in passing argument 1 of ‘bool boost::spirit::qi::phrase_parse(Iterator&, Iterator, const Expr&, const Skipper$
In file included from /usr/include/boost-1_42/boost/fusion/view/ext_/segmented_iterator.hpp:23,
from /usr/include/boost-1_42/boost/proto/fusion.hpp:28,
from /usr/include/boost-1_42/boost/proto/core.hpp:21,
from /usr/include/boost-1_42/boost/proto/proto.hpp:12,
from /usr/include/boost-1_42/boost/spirit/home/support/meta_compiler.hpp:17,
from /usr/include/boost-1_42/boost/spirit/home/qi/meta_compiler.hpp:14,
from /usr/include/boost-1_42/boost/spirit/home/qi/action/action.hpp:14,
from /usr/include/boost-1_42/boost/spirit/home/qi/action.hpp:14,
from /usr/include/boost-1_42/boost/spirit/home/qi.hpp:14,
from /usr/include/boost-1_42/boost/spirit/include/qi.hpp:16,
from /home/collin/non-portage-installs/freeorion/FreeOrion/GG/tutorial/adam.cpp:41: ...

and goes on and on....

Anyone seen anything similar and know a way to fix / get around it? Thanks! BTW - I have boot-1.42 and gcc-4.4.5

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

Re: Problem building GiGi at adam.cpp

#2 Post by Geoff the Medio »

I can't find another thread after a few minutes, but I'm pretty sure I've seen previous reports of issues compiling the GiGi tutorials. You should be able to just remove those from the build, since you don't need them to build GiGi itself.

tenspd137
Space Krill
Posts: 4
Joined: Fri Nov 12, 2010 5:20 am

Re: Problem building GiGi at adam.cpp

#3 Post by tenspd137 »

Yeah - that is what I figured - I just have to figure out how to pass options w/ cmake. I sort of know autotools, but no Cmake yet.

Oh - just figured it out - ccmake lets you select it from a menu - pretty spiffy.

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

Re: Problem building GiGi at adam.cpp

#4 Post by tzlaine »

Yeah, sorry about that. I'm doing some experiments in that tutorial atm. I didn't actually think most people were building them.

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Problem building GiGi at adam.cpp

#5 Post by OndrejR »

tenspd137 wrote:I just have to figure out how to pass options w/ cmake.

Code: Select all

cmake -DBUILD_TUTORIALS=off .

Post Reply