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.
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