GG errors in configuring and compiling

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
User avatar
francys
Space Squid
Posts: 54
Joined: Sat Oct 25, 2008 8:53 pm
Location: Victoria, BC

GG errors in configuring and compiling

#1 Post by francys »

Hello

again, I am trying to compile GG (rev 690).

When I type `scons` it fails reporting what follows.

Code: Select all

scons: Reading SConscript files ...

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/opt/FreeOrion/GG/SConstruct", line 205, in <module>
Warning: You have requested to build SDL support, but SDL was not found, and so has been disabled.  To fix this, run scons configure.
Warning: You have requested to build Ogre support, but Ogre was not found, and so has been disabled.  To fix this, run scons configure.
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/Texture.os -c -pthread -Wall -O2 -fPIC -I/usr/local/include/boost-1_37 -I/usr/include/freetype2 -I. -Ilibltdl src/Texture.cpp
src/Texture.cpp:37:6: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp:40:6: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp:43:6: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp:302:5: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp:307:5: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp:312:5: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp:321:5: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp:328:5: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp:335:5: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp: In member function 'void GG::Texture::Load(const std::string&, bool)':
src/Texture.cpp:275: error: 'gray8_pixel_t' is not a member of 'gil'
src/Texture.cpp:275: error: template argument 1 is invalid
src/Texture.cpp:276: error: 'gray_alpha8_pixel_t' is not a member of 'gil'
src/Texture.cpp:276: error: template argument 1 is invalid
src/Texture.cpp:277: error: 'rgb8_pixel_t' is not a member of 'gil'
src/Texture.cpp:277: error: template argument 1 is invalid
src/Texture.cpp:278: error: 'rgba8_pixel_t' is not a member of 'gil'
src/Texture.cpp:278: error: template argument 1 is invalid
src/Texture.cpp:281: error: 'gray8_image_t' is not a member of 'gil'
src/Texture.cpp:281: error: 'gray8_image_t' is not a member of 'gil'
src/Texture.cpp:282: error: 'gray_alpha8_image_t' is not a member of 'gil'
src/Texture.cpp:282: error: 'gray_alpha8_image_t' is not a member of 'gil'
src/Texture.cpp:283: error: 'rgb8_image_t' is not a member of 'gil'
src/Texture.cpp:283: error: 'rgb8_image_t' is not a member of 'gil'
src/Texture.cpp:284: error: 'rgba8_image_t' is not a member of 'gil'
src/Texture.cpp:284: error: 'rgba8_image_t' is not a member of 'gil'
src/Texture.cpp:285: error: template argument 1 is invalid
src/Texture.cpp:285: error: template argument 2 is invalid
src/Texture.cpp:285: error: template argument 3 is invalid
src/Texture.cpp:285: error: template argument 4 is invalid
src/Texture.cpp:285: error: invalid type in declaration before ';' token
/usr/include/boost/mpl/clear.hpp: At global scope:
/usr/include/boost/mpl/clear.hpp: In instantiation of 'boost::mpl::clear<int>':
/usr/include/boost/mpl/transform.hpp:113:   instantiated from 'boost::mpl::transform1<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na>'
/usr/include/boost/mpl/eval_if.hpp:38:   instantiated from 'boost::mpl::eval_if<boost::mpl::or_<boost::mpl::is_na<mpl_::na>, boost::mpl::is_lambda_expression<boost::gil::detail::get_const_view_t<mpl_::arg<1> > >, boost::mpl::not_<boost::mpl::is_sequence<boost::gil::detail::get_const_view_t<mpl_::arg<1> > > >, mpl_::bool_<false>, mpl_::bool_<false> >, boost::mpl::transform1<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na>, boost::mpl::transform2<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na> >'
/usr/include/boost/mpl/transform.hpp:138:   instantiated from 'boost::mpl::transform<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na>'
src/GIL/extension/dynamic_image/any_image.hpp:39:   instantiated from 'boost::gil::detail::images_get_const_views_t<int>'
src/GIL/extension/dynamic_image/any_image.hpp:77:   instantiated from 'boost::gil::any_image<int>'
src/Texture.cpp:298:   instantiated from here
/usr/include/boost/mpl/clear.hpp:31: error: no class template named 'apply' in 'struct boost::mpl::clear_impl<boost::mpl::non_sequence_tag>'
/usr/include/boost/mpl/transform.hpp: In instantiation of 'boost::mpl::transform1<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na>':
/usr/include/boost/mpl/eval_if.hpp:38:   instantiated from 'boost::mpl::eval_if<boost::mpl::or_<boost::mpl::is_na<mpl_::na>, boost::mpl::is_lambda_expression<boost::gil::detail::get_const_view_t<mpl_::arg<1> > >, boost::mpl::not_<boost::mpl::is_sequence<boost::gil::detail::get_const_view_t<mpl_::arg<1> > > >, mpl_::bool_<false>, mpl_::bool_<false> >, boost::mpl::transform1<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na>, boost::mpl::transform2<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na> >'
/usr/include/boost/mpl/transform.hpp:138:   instantiated from 'boost::mpl::transform<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na>'
src/GIL/extension/dynamic_image/any_image.hpp:39:   instantiated from 'boost::gil::detail::images_get_const_views_t<int>'
src/GIL/extension/dynamic_image/any_image.hpp:77:   instantiated from 'boost::gil::any_image<int>'
src/Texture.cpp:298:   instantiated from here
/usr/include/boost/mpl/transform.hpp:113: error: no type named 'type' in 'struct boost::mpl::clear<int>'
/usr/include/boost/mpl/eval_if.hpp: In instantiation of 'boost::mpl::eval_if<boost::mpl::or_<boost::mpl::is_na<mpl_::na>, boost::mpl::is_lambda_expression<boost::gil::detail::get_const_view_t<mpl_::arg<1> > >, boost::mpl::not_<boost::mpl::is_sequence<boost::gil::detail::get_const_view_t<mpl_::arg<1> > > >, mpl_::bool_<false>, mpl_::bool_<false> >, boost::mpl::transform1<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na>, boost::mpl::transform2<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na> >':
/usr/include/boost/mpl/transform.hpp:138:   instantiated from 'boost::mpl::transform<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na>'
src/GIL/extension/dynamic_image/any_image.hpp:39:   instantiated from 'boost::gil::detail::images_get_const_views_t<int>'
src/GIL/extension/dynamic_image/any_image.hpp:77:   instantiated from 'boost::gil::any_image<int>'
src/Texture.cpp:298:   instantiated from here
/usr/include/boost/mpl/eval_if.hpp:38: error: no type named 'type' in 'struct boost::mpl::transform1<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na>'
/usr/include/boost/mpl/transform.hpp: In instantiation of 'boost::mpl::transform1<int, boost::gil::detail::get_view_t<mpl_::arg<1> >, mpl_::na>':
/usr/include/boost/mpl/eval_if.hpp:38:   instantiated from 'boost::mpl::eval_if<boost::mpl::or_<boost::mpl::is_na<mpl_::na>, boost::mpl::is_lambda_expression<boost::gil::detail::get_view_t<mpl_::arg<1> > >, boost::mpl::not_<boost::mpl::is_sequence<boost::gil::detail::get_view_t<mpl_::arg<1> > > >, mpl_::bool_<false>, mpl_::bool_<false> >, boost::mpl::transform1<int, boost::gil::detail::get_view_t<mpl_::arg<1> >, mpl_::na>, boost::mpl::transform2<int, boost::gil::detail::get_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na> >'
/usr/include/boost/mpl/transform.hpp:138:   instantiated from 'boost::mpl::transform<int, boost::gil::detail::get_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na>'
src/GIL/extension/dynamic_image/any_image.hpp:36:   instantiated from 'boost::gil::detail::images_get_views_t<int>'
src/GIL/extension/dynamic_image/any_image.hpp:78:   instantiated from 'boost::gil::any_image<int>'
src/Texture.cpp:298:   instantiated from here
/usr/include/boost/mpl/transform.hpp:113: error: no type named 'type' in 'struct boost::mpl::clear<int>'
/usr/include/boost/mpl/eval_if.hpp: In instantiation of 'boost::mpl::eval_if<boost::mpl::or_<boost::mpl::is_na<mpl_::na>, boost::mpl::is_lambda_expression<boost::gil::detail::get_view_t<mpl_::arg<1> > >, boost::mpl::not_<boost::mpl::is_sequence<boost::gil::detail::get_view_t<mpl_::arg<1> > > >, mpl_::bool_<false>, mpl_::bool_<false> >, boost::mpl::transform1<int, boost::gil::detail::get_view_t<mpl_::arg<1> >, mpl_::na>, boost::mpl::transform2<int, boost::gil::detail::get_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na> >':
/usr/include/boost/mpl/transform.hpp:138:   instantiated from 'boost::mpl::transform<int, boost::gil::detail::get_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na>'
src/GIL/extension/dynamic_image/any_image.hpp:36:   instantiated from 'boost::gil::detail::images_get_views_t<int>'
src/GIL/extension/dynamic_image/any_image.hpp:78:   instantiated from 'boost::gil::any_image<int>'
src/Texture.cpp:298:   instantiated from here
/usr/include/boost/mpl/eval_if.hpp:38: error: no type named 'type' in 'struct boost::mpl::transform1<int, boost::gil::detail::get_view_t<mpl_::arg<1> >, mpl_::na>'
src/Texture.cpp: In member function 'void GG::Texture::Load(const std::string&, bool)':
src/Texture.cpp:358: error: 'gray8_image_t' is not a member of 'gil'
src/Texture.cpp:358: error: 'gray8_image_t' is not a member of 'gil'
src/Texture.cpp:358: error: no matching function for call to 'boost::gil::any_image<int>::current_type_is()'
src/Texture.cpp:358: error: 'gray8_pixel_t' is not a member of 'gil'
src/Texture.cpp:358: error: 'gray8_image_t' is not a member of 'gil'
src/Texture.cpp:358: error: 'gray8_image_t' is not a member of 'gil'
src/Texture.cpp:358: error: no matching function for call to 'boost::gil::any_image<int>::_dynamic_cast()'
src/Texture.cpp:358: error: 'const_view' was not declared in this scope
src/Texture.cpp:358: error: 'interleaved_view_get_raw_data' was not declared in this scope
src/Texture.cpp:359: error: 'gray_alpha8_image_t' is not a member of 'gil'
src/Texture.cpp:359: error: 'gray_alpha8_image_t' is not a member of 'gil'
src/Texture.cpp:359: error: no matching function for call to 'boost::gil::any_image<int>::current_type_is()'
src/Texture.cpp:359: error: 'gray_alpha8_pixel_t' is not a member of 'gil'
src/Texture.cpp:359: error: 'gray_alpha8_image_t' is not a member of 'gil'
src/Texture.cpp:359: error: 'gray_alpha8_image_t' is not a member of 'gil'
src/Texture.cpp:359: error: no matching function for call to 'boost::gil::any_image<int>::_dynamic_cast()'
src/Texture.cpp:359: error: 'const_view' was not declared in this scope
src/Texture.cpp:359: error: 'interleaved_view_get_raw_data' was not declared in this scope
src/Texture.cpp:360: error: 'rgb8_image_t' is not a member of 'gil'
src/Texture.cpp:360: error: 'rgb8_image_t' is not a member of 'gil'
src/Texture.cpp:360: error: no matching function for call to 'boost::gil::any_image<int>::current_type_is()'
src/Texture.cpp:360: error: 'rgb8_pixel_t' is not a member of 'gil'
src/Texture.cpp:360: error: 'rgb8_image_t' is not a member of 'gil'
src/Texture.cpp:360: error: 'rgb8_image_t' is not a member of 'gil'
src/Texture.cpp:360: error: no matching function for call to 'boost::gil::any_image<int>::_dynamic_cast()'
src/Texture.cpp:360: error: 'const_view' was not declared in this scope
src/Texture.cpp:360: error: 'interleaved_view_get_raw_data' was not declared in this scope
src/Texture.cpp:361: error: 'rgba8_image_t' is not a member of 'gil'
src/Texture.cpp:361: error: 'rgba8_image_t' is not a member of 'gil'
src/Texture.cpp:361: error: no matching function for call to 'boost::gil::any_image<int>::current_type_is()'
src/Texture.cpp:361: error: 'rgba8_pixel_t' is not a member of 'gil'
src/Texture.cpp:361: error: 'rgba8_image_t' is not a member of 'gil'
src/Texture.cpp:361: error: 'rgba8_image_t' is not a member of 'gil'
src/Texture.cpp:361: error: no matching function for call to 'boost::gil::any_image<int>::_dynamic_cast()'
src/Texture.cpp:361: error: 'const_view' was not declared in this scope
src/Texture.cpp:361: error: 'interleaved_view_get_raw_data' was not declared in this scope
/usr/include/boost/mpl/at.hpp: At global scope:
/usr/include/boost/mpl/at.hpp: In instantiation of 'boost::mpl::at_c<int, 0l>':
src/GIL/extension/dynamic_image/variant.hpp:97:   instantiated from 'boost::gil::variant<Types>::variant() [with Types = int]'
src/GIL/extension/dynamic_image/any_image.hpp:83:   instantiated from 'boost::gil::any_image<ImageTypes>::any_image() [with ImageTypes = int]'
src/Texture.cpp:298:   instantiated from here
/usr/include/boost/mpl/at.hpp:45: error: no class template named 'apply' in 'struct boost::mpl::at_impl<boost::mpl::non_sequence_tag>'
src/GIL/extension/dynamic_image/variant.hpp: In constructor 'boost::gil::variant<Types>::variant() [with Types = int]':
src/GIL/extension/dynamic_image/any_image.hpp:83:   instantiated from 'boost::gil::any_image<ImageTypes>::any_image() [with ImageTypes = int]'
src/Texture.cpp:298:   instantiated from here
src/GIL/extension/dynamic_image/variant.hpp:97: error: no type named 'type' in 'struct boost::mpl::at_c<int, 0l>'
scons: *** [src/Texture.os] Error 1
scons: building terminated because of errors.
I'm using debian testing on amd64.

Also, at the beginning it says SDL and Ogre were not found, when they are actually installed. So I went for `scons configure`, which returned another error (before saying anything about those two):

Code: Select all

scons: Reading SConscript files ...
Checking for pkg-config... (cached) yes
Configuring for POSIX system...
Checking for C++ header file boost/shared_ptr.hpp... (cached) yes
Checking Boost version >= 1.36... (cached) yes
Looking for boost lib boost_signals...
Checking for boost::signals::connection() in C++ library boost_signals... (cached) yes
Looking for boost lib boost_system...
Checking for boost::system::get_system_category() in C++ library boost_system... (cached) yes
Looking for boost lib boost_filesystem...
Checking for boost::filesystem::initial_path() in C++ library boost_filesystem... no
Checking for boost::filesystem::initial_path() in C++ library boost_filesystem-mt... no
Boost configuration... (cached) no
My version of boost is 1.37, and libboost-filesystem is installed.

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

Re: GG errors in configuring and compiling

#2 Post by OndrejR »

It is the same problem as this thread. And in this case you have not installed ogre and sdl development versions of libraries too.

User avatar
francys
Space Squid
Posts: 54
Joined: Sat Oct 25, 2008 8:53 pm
Location: Victoria, BC

Re: GG errors in configuring and compiling

#3 Post by francys »

Well I do have libsdl1.2-dev installed, as well as libsdl-gfx1.2-dev, same for image, mixer, dev.

As for Ogre, libogre-dev is installed.

`scons configure` however fails when checking the boost filesystem library; and libboost-filesystem1.37.0 and libboost-filesystem1.37-dev are installed on my system.

User avatar
francys
Space Squid
Posts: 54
Joined: Sat Oct 25, 2008 8:53 pm
Location: Victoria, BC

Re: GG errors in configuring and compiling

#4 Post by francys »

looking at config.log I see that the following command is executed

Code: Select all

g++ -o .sconf_temp/conftest_5 .sconf_temp/conftest_5.o -lboost_signals -lboost_system -lboost_filesystem-mt
/usr/bin/ld: cannot find -lboost_signals
The correct version (at least for me) should be

Code: Select all

g++ -o .sconf_temp/conftest_5 .sconf_temp/conftest_5.o -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt
Is there a way to edit some scons files or similar ones to fix this problem?

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

Re: GG errors in configuring and compiling

#5 Post by OndrejR »

I update wiki article compile in Linux(part boost 1.37).

User avatar
francys
Space Squid
Posts: 54
Joined: Sat Oct 25, 2008 8:53 pm
Location: Victoria, BC

Re: GG errors in configuring and compiling

#6 Post by francys »

I'm sorry. I didn't specify that I had already tried that and without any success.

Here is the output of `scons configure boost_lib_suffix=-mt`:

Code: Select all

scons: Reading SConscript files ...
Checking for pkg-config... (cached) yes
Configuring for POSIX system...
Checking for C++ header file boost/shared_ptr.hpp... (cached) yes
Checking Boost version >= 1.36... (cached) yes
Looking for boost lib boost_signals-mt...
Checking for boost::signals::connection() in C++ library boost_signals-mt... yes
Looking for boost lib boost_system-mt...
Checking for boost::system::get_system_category() in C++ library boost_system-mt... no
Checking for boost::system::get_system_category() in C++ library boost_system-mt-mt... no
Boost configuration... (cached) no
Here is `scons boost_lib_suffix=-mt --config=force`:

Code: Select all

scons: Reading SConscript files ...

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/opt/FreeOrion/GG/SConstruct", line 205, in <module>
Warning: You have requested to build SDL support, but SDL was not found, and so has been disabled.  To fix this, run scons configure.
Warning: You have requested to build Ogre support, but Ogre was not found, and so has been disabled.  To fix this, run scons configure.
scons: done reading SConscript files.
scons: Building targets ...
...
omission (all normal)
...
g++ -o src/Texture.os -c -pthread -Wall -O2 -fPIC -I/usr/local/include/boost-1_37 -I/usr/include/freetype2 -I. -Ilibltdl src/Texture.cpp
src/Texture.cpp:37:6: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp:40:6: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp:43:6: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp:302:5: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp:307:5: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp:312:5: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp:321:5: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp:328:5: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp:335:5: error: token "[" is not valid in preprocessor expressions
src/Texture.cpp: In member function 'void GG::Texture::Load(const std::string&, bool)':
src/Texture.cpp:275: error: 'gray8_pixel_t' is not a member of 'gil'
src/Texture.cpp:275: error: template argument 1 is invalid
src/Texture.cpp:276: error: 'gray_alpha8_pixel_t' is not a member of 'gil'
src/Texture.cpp:276: error: template argument 1 is invalid
src/Texture.cpp:277: error: 'rgb8_pixel_t' is not a member of 'gil'
src/Texture.cpp:277: error: template argument 1 is invalid
src/Texture.cpp:278: error: 'rgba8_pixel_t' is not a member of 'gil'
src/Texture.cpp:278: error: template argument 1 is invalid
src/Texture.cpp:281: error: 'gray8_image_t' is not a member of 'gil'
src/Texture.cpp:281: error: 'gray8_image_t' is not a member of 'gil'
src/Texture.cpp:282: error: 'gray_alpha8_image_t' is not a member of 'gil'
src/Texture.cpp:282: error: 'gray_alpha8_image_t' is not a member of 'gil'
src/Texture.cpp:283: error: 'rgb8_image_t' is not a member of 'gil'
src/Texture.cpp:283: error: 'rgb8_image_t' is not a member of 'gil'
src/Texture.cpp:284: error: 'rgba8_image_t' is not a member of 'gil'
src/Texture.cpp:284: error: 'rgba8_image_t' is not a member of 'gil'
src/Texture.cpp:285: error: template argument 1 is invalid
src/Texture.cpp:285: error: template argument 2 is invalid
src/Texture.cpp:285: error: template argument 3 is invalid
src/Texture.cpp:285: error: template argument 4 is invalid
src/Texture.cpp:285: error: invalid type in declaration before ';' token
/usr/include/boost/mpl/clear.hpp: At global scope:
/usr/include/boost/mpl/clear.hpp: In instantiation of 'boost::mpl::clear<int>':
/usr/include/boost/mpl/transform.hpp:113:   instantiated from 'boost::mpl::transform1<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na>'
/usr/include/boost/mpl/eval_if.hpp:38:   instantiated from 'boost::mpl::eval_if<boost::mpl::or_<boost::mpl::is_na<mpl_::na>, boost::mpl::is_lambda_expression<boost::gil::detail::get_const_view_t<mpl_::arg<1> > >, boost::mpl::not_<boost::mpl::is_sequence<boost::gil::detail::get_const_view_t<mpl_::arg<1> > > >, mpl_::bool_<false>, mpl_::bool_<false> >, boost::mpl::transform1<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na>, boost::mpl::transform2<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na> >'
/usr/include/boost/mpl/transform.hpp:138:   instantiated from 'boost::mpl::transform<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na>'
src/GIL/extension/dynamic_image/any_image.hpp:39:   instantiated from 'boost::gil::detail::images_get_const_views_t<int>'
src/GIL/extension/dynamic_image/any_image.hpp:77:   instantiated from 'boost::gil::any_image<int>'
src/Texture.cpp:298:   instantiated from here
/usr/include/boost/mpl/clear.hpp:31: error: no class template named 'apply' in 'struct boost::mpl::clear_impl<boost::mpl::non_sequence_tag>'
/usr/include/boost/mpl/transform.hpp: In instantiation of 'boost::mpl::transform1<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na>':
/usr/include/boost/mpl/eval_if.hpp:38:   instantiated from 'boost::mpl::eval_if<boost::mpl::or_<boost::mpl::is_na<mpl_::na>, boost::mpl::is_lambda_expression<boost::gil::detail::get_const_view_t<mpl_::arg<1> > >, boost::mpl::not_<boost::mpl::is_sequence<boost::gil::detail::get_const_view_t<mpl_::arg<1> > > >, mpl_::bool_<false>, mpl_::bool_<false> >, boost::mpl::transform1<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na>, boost::mpl::transform2<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na> >'
/usr/include/boost/mpl/transform.hpp:138:   instantiated from 'boost::mpl::transform<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na>'
src/GIL/extension/dynamic_image/any_image.hpp:39:   instantiated from 'boost::gil::detail::images_get_const_views_t<int>'
src/GIL/extension/dynamic_image/any_image.hpp:77:   instantiated from 'boost::gil::any_image<int>'
src/Texture.cpp:298:   instantiated from here
/usr/include/boost/mpl/transform.hpp:113: error: no type named 'type' in 'struct boost::mpl::clear<int>'
/usr/include/boost/mpl/eval_if.hpp: In instantiation of 'boost::mpl::eval_if<boost::mpl::or_<boost::mpl::is_na<mpl_::na>, boost::mpl::is_lambda_expression<boost::gil::detail::get_const_view_t<mpl_::arg<1> > >, boost::mpl::not_<boost::mpl::is_sequence<boost::gil::detail::get_const_view_t<mpl_::arg<1> > > >, mpl_::bool_<false>, mpl_::bool_<false> >, boost::mpl::transform1<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na>, boost::mpl::transform2<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na> >':
/usr/include/boost/mpl/transform.hpp:138:   instantiated from 'boost::mpl::transform<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na>'
src/GIL/extension/dynamic_image/any_image.hpp:39:   instantiated from 'boost::gil::detail::images_get_const_views_t<int>'
src/GIL/extension/dynamic_image/any_image.hpp:77:   instantiated from 'boost::gil::any_image<int>'
src/Texture.cpp:298:   instantiated from here
/usr/include/boost/mpl/eval_if.hpp:38: error: no type named 'type' in 'struct boost::mpl::transform1<int, boost::gil::detail::get_const_view_t<mpl_::arg<1> >, mpl_::na>'
/usr/include/boost/mpl/transform.hpp: In instantiation of 'boost::mpl::transform1<int, boost::gil::detail::get_view_t<mpl_::arg<1> >, mpl_::na>':
/usr/include/boost/mpl/eval_if.hpp:38:   instantiated from 'boost::mpl::eval_if<boost::mpl::or_<boost::mpl::is_na<mpl_::na>, boost::mpl::is_lambda_expression<boost::gil::detail::get_view_t<mpl_::arg<1> > >, boost::mpl::not_<boost::mpl::is_sequence<boost::gil::detail::get_view_t<mpl_::arg<1> > > >, mpl_::bool_<false>, mpl_::bool_<false> >, boost::mpl::transform1<int, boost::gil::detail::get_view_t<mpl_::arg<1> >, mpl_::na>, boost::mpl::transform2<int, boost::gil::detail::get_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na> >'
/usr/include/boost/mpl/transform.hpp:138:   instantiated from 'boost::mpl::transform<int, boost::gil::detail::get_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na>'
src/GIL/extension/dynamic_image/any_image.hpp:36:   instantiated from 'boost::gil::detail::images_get_views_t<int>'
src/GIL/extension/dynamic_image/any_image.hpp:78:   instantiated from 'boost::gil::any_image<int>'
src/Texture.cpp:298:   instantiated from here
/usr/include/boost/mpl/transform.hpp:113: error: no type named 'type' in 'struct boost::mpl::clear<int>'
/usr/include/boost/mpl/eval_if.hpp: In instantiation of 'boost::mpl::eval_if<boost::mpl::or_<boost::mpl::is_na<mpl_::na>, boost::mpl::is_lambda_expression<boost::gil::detail::get_view_t<mpl_::arg<1> > >, boost::mpl::not_<boost::mpl::is_sequence<boost::gil::detail::get_view_t<mpl_::arg<1> > > >, mpl_::bool_<false>, mpl_::bool_<false> >, boost::mpl::transform1<int, boost::gil::detail::get_view_t<mpl_::arg<1> >, mpl_::na>, boost::mpl::transform2<int, boost::gil::detail::get_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na> >':
/usr/include/boost/mpl/transform.hpp:138:   instantiated from 'boost::mpl::transform<int, boost::gil::detail::get_view_t<mpl_::arg<1> >, mpl_::na, mpl_::na>'
src/GIL/extension/dynamic_image/any_image.hpp:36:   instantiated from 'boost::gil::detail::images_get_views_t<int>'
src/GIL/extension/dynamic_image/any_image.hpp:78:   instantiated from 'boost::gil::any_image<int>'
src/Texture.cpp:298:   instantiated from here
/usr/include/boost/mpl/eval_if.hpp:38: error: no type named 'type' in 'struct boost::mpl::transform1<int, boost::gil::detail::get_view_t<mpl_::arg<1> >, mpl_::na>'
src/Texture.cpp: In member function 'void GG::Texture::Load(const std::string&, bool)':
src/Texture.cpp:358: error: 'gray8_image_t' is not a member of 'gil'
src/Texture.cpp:358: error: 'gray8_image_t' is not a member of 'gil'
src/Texture.cpp:358: error: no matching function for call to 'boost::gil::any_image<int>::current_type_is()'
src/Texture.cpp:358: error: 'gray8_pixel_t' is not a member of 'gil'
src/Texture.cpp:358: error: 'gray8_image_t' is not a member of 'gil'
src/Texture.cpp:358: error: 'gray8_image_t' is not a member of 'gil'
src/Texture.cpp:358: error: no matching function for call to 'boost::gil::any_image<int>::_dynamic_cast()'
src/Texture.cpp:358: error: 'const_view' was not declared in this scope
src/Texture.cpp:358: error: 'interleaved_view_get_raw_data' was not declared in this scope
src/Texture.cpp:359: error: 'gray_alpha8_image_t' is not a member of 'gil'
src/Texture.cpp:359: error: 'gray_alpha8_image_t' is not a member of 'gil'
src/Texture.cpp:359: error: no matching function for call to 'boost::gil::any_image<int>::current_type_is()'
src/Texture.cpp:359: error: 'gray_alpha8_pixel_t' is not a member of 'gil'
src/Texture.cpp:359: error: 'gray_alpha8_image_t' is not a member of 'gil'
src/Texture.cpp:359: error: 'gray_alpha8_image_t' is not a member of 'gil'
src/Texture.cpp:359: error: no matching function for call to 'boost::gil::any_image<int>::_dynamic_cast()'
src/Texture.cpp:359: error: 'const_view' was not declared in this scope
src/Texture.cpp:359: error: 'interleaved_view_get_raw_data' was not declared in this scope
src/Texture.cpp:360: error: 'rgb8_image_t' is not a member of 'gil'
src/Texture.cpp:360: error: 'rgb8_image_t' is not a member of 'gil'
src/Texture.cpp:360: error: no matching function for call to 'boost::gil::any_image<int>::current_type_is()'
src/Texture.cpp:360: error: 'rgb8_pixel_t' is not a member of 'gil'
src/Texture.cpp:360: error: 'rgb8_image_t' is not a member of 'gil'
src/Texture.cpp:360: error: 'rgb8_image_t' is not a member of 'gil'
src/Texture.cpp:360: error: no matching function for call to 'boost::gil::any_image<int>::_dynamic_cast()'
src/Texture.cpp:360: error: 'const_view' was not declared in this scope
src/Texture.cpp:360: error: 'interleaved_view_get_raw_data' was not declared in this scope
src/Texture.cpp:361: error: 'rgba8_image_t' is not a member of 'gil'
src/Texture.cpp:361: error: 'rgba8_image_t' is not a member of 'gil'
src/Texture.cpp:361: error: no matching function for call to 'boost::gil::any_image<int>::current_type_is()'
src/Texture.cpp:361: error: 'rgba8_pixel_t' is not a member of 'gil'
src/Texture.cpp:361: error: 'rgba8_image_t' is not a member of 'gil'
src/Texture.cpp:361: error: 'rgba8_image_t' is not a member of 'gil'
src/Texture.cpp:361: error: no matching function for call to 'boost::gil::any_image<int>::_dynamic_cast()'
src/Texture.cpp:361: error: 'const_view' was not declared in this scope
src/Texture.cpp:361: error: 'interleaved_view_get_raw_data' was not declared in this scope
/usr/include/boost/mpl/at.hpp: At global scope:
/usr/include/boost/mpl/at.hpp: In instantiation of 'boost::mpl::at_c<int, 0l>':
src/GIL/extension/dynamic_image/variant.hpp:97:   instantiated from 'boost::gil::variant<Types>::variant() [with Types = int]'
src/GIL/extension/dynamic_image/any_image.hpp:83:   instantiated from 'boost::gil::any_image<ImageTypes>::any_image() [with ImageTypes = int]'
src/Texture.cpp:298:   instantiated from here
/usr/include/boost/mpl/at.hpp:45: error: no class template named 'apply' in 'struct boost::mpl::at_impl<boost::mpl::non_sequence_tag>'
src/GIL/extension/dynamic_image/variant.hpp: In constructor 'boost::gil::variant<Types>::variant() [with Types = int]':
src/GIL/extension/dynamic_image/any_image.hpp:83:   instantiated from 'boost::gil::any_image<ImageTypes>::any_image() [with ImageTypes = int]'
src/Texture.cpp:298:   instantiated from here
src/GIL/extension/dynamic_image/variant.hpp:97: error: no type named 'type' in 'struct boost::mpl::at_c<int, 0l>'
scons: *** [src/Texture.os] Error 1
scons: building terminated because of errors.

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

Re: GG errors in configuring and compiling

#7 Post by OndrejR »

Have you compiled boost 1.37 or have boost 1.37 from debian unstable? Please install version from debian unstable(you may have problem with compiled version with unstandard boost location and linker). And you also have this

Code: Select all

-I/usr/local/include/boost-1_37
.

This problem with boost we are trying to solve with IConrad in thread scon can't find boost serialization and this thread is duplicate. You have the same problem.

User avatar
francys
Space Squid
Posts: 54
Joined: Sat Oct 25, 2008 8:53 pm
Location: Victoria, BC

Re: GG errors in configuring and compiling

#8 Post by francys »

My boost installation does come from the Debian unstable repositories.

I am not sure why (but I think it's the upgrading of some packages related to compilers and C libraries), however I am now able to run a successful configure and compile of GG.

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

Re: GG errors in configuring and compiling

#9 Post by OndrejR »

You compile boost with location

Code: Select all

-I/usr/local/include/boost-1_37
But boost has location in Debian in

Code: Select all

/usr/local/include/boost
and you have to compile with mt suffix as is described in wiki howto.

Post Reply