Problem is maybe in pkg-config. In your log is error message
Code: Select all
Checking for pkg-config...
pkg-config --atleast-pkgconfig-version 0.15.0
close failed: [Errno 9] Bad file descriptor
Moderator: Oberlus
Code: Select all
Checking for pkg-config...
pkg-config --atleast-pkgconfig-version 0.15.0
close failed: [Errno 9] Bad file descriptor
They were added to Debian unstable this week.IConrad wrote:There are no repositories for 1.37 unless Debian's added it. I can't compile boost.
I have 2.7.16. Something 2.7.x. But I don't know if it is possible for you do downgrade half your system. According ubuntu web 2.7.10 is in ubuntu hardy.IConrad wrote:I suppose I could try to 'downgrade' libc6 to an earlier version -- which should I look for?
Do you know the joys of VMware Server? I can create an image of just Ubuntu Hardy in VM and link it to the Debian repo's. It's worth a shot... and frankly I wish I'd thought of it sooner.I have 2.7.16. Something 2.7.x. But I don't know if it is possible for you do downgrade half your system. According ubuntu web 2.7.10 is in ubuntu hardy.
Code: Select all
$ scons configure with_boost_include=/usr/local/include/boost-1_37/
scons: Reading SConscript files ...
Configuring for POSIX system...
Checking for Py_Initialize() in C library python2.5... (cached) yes
Checking for pkg-config... (cached) yes
Checking for GiGiSDL >= 0.6.0... (cached) yes
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking Boost version >= 1.36... (cached) yes
Checking for C++ header file boost/graph/dijkstra_shortest_paths.hpp... yes
Looking for boost lib boost_serialization...
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization... no
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization-mt... no
Boost configuration... (cached) no
Boost 1.37 is in unstable repository in Debian. Could you install boost from repository? Time to time, Debian patches libraries...francys wrote:I manually compiled boost-1.37 from the boost website. Using Debian Lenny on amd64.
Code: Select all
$scons configure --force=true
scons: Reading SConscript files ...
Configuring for POSIX system...
Checking for Py_Initialize() in C library python2.5... yes
Checking for pkg-config... yes
Checking for GiGiSDL >= 0.6.0... yes
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking Boost version >= 1.36... (cached) yes
Checking for C++ header file boost/graph/dijkstra_shortest_paths.hpp... yes
Looking for boost lib boost_serialization...
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization... no
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization-mt... yes
Looking for boost lib boost_iostreams...
Checking for C++ library boost_iostreams... no
Checking for C++ library boost_iostreams-mt... yes
Looking for boost lib boost_python...
Checking for boost::python::throw_error_already_set() in C++ library boost_python... no
Checking for boost::python::throw_error_already_set() in C++ library boost_python-mt... yes
Boost configuration... (cached) ok
Checking for openal >= 0.0.8... yes
Checking for freealut >= 1.1.0... yes
Checking for vorbisfile >= 1.1.2... yes
Checking for libgraph >= 2.8... yes
Checking for libgvc >= 2.8... yes
Checking for log4cpp >= 0.3.4b... yes
Checking for C++ header file log4cpp/Category.hh... yes
Checking for log4cpp::Category::getRoot() in C++ library log4cpp... yes
Configuration successful... (cached) yes
Code: Select all
$aptitude search boost
p boost-build
p libboost-date-time-dev
c libboost-date-time1.34.1
p libboost-date-time1.35-dev
p libboost-date-time1.35.0
c libboost-date-time1.36.0
i A libboost-date-time1.37-dev
i A libboost-date-time1.37.0
p libboost-dbg
p libboost-dev
p libboost-doc
p libboost-filesystem-dev
c libboost-filesystem1.34.1
p libboost-filesystem1.35-dev
p libboost-filesystem1.35.0
c libboost-filesystem1.36.0
i A libboost-filesystem1.37-dev
i A libboost-filesystem1.37.0
p libboost-graph-dev
c libboost-graph1.34.1
p libboost-graph1.35-dev
p libboost-graph1.35.0
c libboost-graph1.36.0
i A libboost-graph1.37-dev
i A libboost-graph1.37.0
p libboost-iostreams-dev
p libboost-iostreams1.34.1
p libboost-iostreams1.35-dev
p libboost-iostreams1.35.0
c libboost-iostreams1.36.0
i A libboost-iostreams1.37-dev
i A libboost-iostreams1.37.0
c libboost-math1.36.0
i libboost-math1.37-dev
i A libboost-math1.37.0
p libboost-program-options-dev
c libboost-program-options1.34.1
p libboost-program-options1.35-dev
p libboost-program-options1.35.0
c libboost-program-options1.36.0
i A libboost-program-options1.37-dev
i A libboost-program-options1.37.0
p libboost-python-dev
c libboost-python1.34.1
p libboost-python1.35-dev
p libboost-python1.35.0
c libboost-python1.36.0
i A libboost-python1.37-dev
i A libboost-python1.37.0
p libboost-regex-dev
c libboost-regex1.34.1
p libboost-regex1.35-dev
p libboost-regex1.35.0
c libboost-regex1.36.0
i A libboost-regex1.37-dev
i A libboost-regex1.37.0
p libboost-serialization-dev
c libboost-serialization1.34.1
p libboost-serialization1.35-dev
p libboost-serialization1.35.0
c libboost-serialization1.36.0
i A libboost-serialization1.37-dev
i A libboost-serialization1.37.0
p libboost-signals-dev
p libboost-signals1.34.1
p libboost-signals1.35-dev
p libboost-signals1.35.0
c libboost-signals1.36.0
i A libboost-signals1.37-dev
i A libboost-signals1.37.0
p libboost-system1.35-dev
p libboost-system1.35.0
c libboost-system1.36.0
i A libboost-system1.37-dev
i A libboost-system1.37.0
p libboost-test-dev
c libboost-test1.34.1
p libboost-test1.35-dev
p libboost-test1.35.0
c libboost-test1.36.0
i A libboost-test1.37-dev
i A libboost-test1.37.0
p libboost-thread-dev
c libboost-thread1.34.1
p libboost-thread1.35-dev
p libboost-thread1.35.0
c libboost-thread1.36.0
i A libboost-thread1.37-dev
i A libboost-thread1.37.0
p libboost-wave-dev
c libboost-wave1.34.1
p libboost-wave1.35-dev
p libboost-wave1.35.0
c libboost-wave1.36.0
i A libboost-wave1.37-dev
i A libboost-wave1.37.0
p libboost1.35-dbg
p libboost1.35-dev
p libboost1.35-doc
p libboost1.37-dbg
i libboost1.37-dev
i A libboost1.37-doc
Code: Select all
g++ -o src/Texture.os -c -pthread -Wall -O2 -fPIC -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.
As i posted in this topic, ubuntu has different libc. In config.log are details of the problem.yoshi wrote:i am having the same problem scons doesnt see the boost 1.37 files. i manually compiled boost on an ubuntu 8.10 amd64 system
Code: Select all
g++ -o .sconf_temp/conftest_5.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL .sconf_temp/conftest_5.cpp
Code: Select all
g++ -o .sconf_temp/conftest_5 -pthread .sconf_temp/conftest_5.o -L/usr/lib -L/usr/local/lib -lpython2.5 -lGiGiSDL -lIL -lILU -lGiGi -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -lGL -lGLU -lfreetype -lz -ljpeg -lpng -ltiff -lSDL -lboost_serialization