Scons can't find boost serialization

Questions, problems and discussion about compiling FreeOrion.

Moderators: Oberlus, Oberlus

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

Re: Scons can't find boost serialization

#16 Post by OndrejR » Thu Dec 18, 2008 9:24 am

Gcc version 4.3.2 is OK. I don't understand. Ubuntu 8.10 and Debian on Amd64 aren't much different. What is your version libstdc++6(my is 4.3.2) and libc6(my is 2.7.16)?

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
My pkg-config is in version 0.22.

User avatar
IConrad
Space Kraken
Posts: 163
Joined: Mon Nov 10, 2008 5:55 pm

Re: Scons can't find boost serialization

#17 Post by IConrad » Thu Dec 18, 2008 10:37 am

libc6 -- version 2.8

libstdc++6 -- version 4.3.2

pkg-config -- version 0.22


:/

I did not have this problem before the switchover to libboost1.36. When FO compiled using libboost 1.35 I could compile just fine.

I have now used the Debian and the Ubuntu compiled binaries for libboost1.36 -- I'm still getting this error.

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

Re: Scons can't find boost serialization

#18 Post by OndrejR » Thu Dec 18, 2008 10:51 am

libc6 version 2.8 is in experimental repository in Debian and I hate to use this repository. I want stable system. I can help with testing libc 2.8 later when it will be in unstable or testing repository. Libc6 is important library.

I also install boost 1.37(but boost 1.36 and 1.35 also works) with only one my patch to GiGi(bug malformed tag). Could you install boost 1.37(it is known that 1.36 is buggy on amd64)?

User avatar
IConrad
Space Kraken
Posts: 163
Joined: Mon Nov 10, 2008 5:55 pm

Re: Scons can't find boost serialization

#19 Post by IConrad » Thu Dec 18, 2008 2:52 pm

There are no repositories for 1.37 unless Debian's added it. I can't compile boost.

I suppose I could try to 'downgrade' libc6 to an earlier version -- which should I look for?

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

Re: Scons can't find boost serialization

#20 Post by OndrejR » Thu Dec 18, 2008 6:37 pm

IConrad wrote:There are no repositories for 1.37 unless Debian's added it. I can't compile boost.
They were added to Debian unstable this week.
IConrad wrote:I suppose I could try to 'downgrade' libc6 to an earlier version -- which should I look for?
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.

But if you had functional FreeOrion with boost 1.35 on ubuntu intrepid, problem is not in libc6.

User avatar
IConrad
Space Kraken
Posts: 163
Joined: Mon Nov 10, 2008 5:55 pm

Re: Scons can't find boost serialization

#21 Post by IConrad » Thu Dec 18, 2008 9:35 pm

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

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

Re: Scons can't find boost serialization

#22 Post by francys » Sat Dec 20, 2008 10:59 am

Hello

I am having a similar problem:

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
I manually compiled boost-1.37 from the boost website. Using Debian Lenny on amd64.

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

Re: Scons can't find boost serialization

#23 Post by OndrejR » Sat Dec 20, 2008 11:29 am

francys wrote:I manually compiled boost-1.37 from the boost website. Using Debian Lenny on amd64.
Boost 1.37 is in unstable repository in Debian. Could you install boost from repository? Time to time, Debian patches libraries...
I have functional FreeOrion on Debian lenny/unstable - 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

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

Re: Scons can't find boost serialization

#24 Post by francys » Sat Dec 20, 2008 9:33 pm

I tried as you suggested by GG does not compile:

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.

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

Re: Scons can't find boost serialization

#25 Post by OndrejR » Sat Dec 20, 2008 10:02 pm

francys: please post your config.log from GG(you should run scons config with --force=true)

yoshi
Space Squid
Posts: 50
Joined: Wed Oct 24, 2007 7:17 pm

Re: Scons can't find boost serialization

#26 Post by yoshi » Sat Dec 20, 2008 10:15 pm

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

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

Re: Scons can't find boost serialization

#27 Post by OndrejR » Sat Dec 20, 2008 10:41 pm

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
As i posted in this topic, ubuntu has different libc. In config.log are details of the problem.

yoshi
Space Squid
Posts: 50
Joined: Wed Oct 24, 2007 7:17 pm

Re: Scons can't find boost serialization

#28 Post by yoshi » Sun Dec 21, 2008 12:57 am

and i have no clue what that means, or what to do about it

yoshi
Space Squid
Posts: 50
Joined: Wed Oct 24, 2007 7:17 pm

Re: Scons can't find boost serialization

#29 Post by yoshi » Sun Dec 21, 2008 2:55 am

1.
file /home/yoshi/freeorion/FreeOrion/GG/SConstruct,line 283:
2.
Configure(confdir = .sconf_temp)
3.
scons: Configure: Checking for pkg-config...
4.
pkg-config --atleast-pkgconfig-version 0.15.0
5.
close failed: [Errno 9] Bad file descriptor
6.
scons: Configure: yes
7.

8.
scons: Configure: Checking for C++ header file boost/shared_ptr.hpp...
9.
.sconf_temp/conftest_1.cpp <-
10.
|
11.
|#include "boost/shared_ptr.hpp"
12.
|
13.
|
14.
g++ -o .sconf_temp/conftest_1.o -c -I/usr/local/lib/boost-1_37 .sconf_temp/conftest_1.cpp
15.
close failed: [Errno 9] Bad file descriptor
16.
scons: Configure: yes
17.

18.
scons: Configure: Checking Boost version >= 1.36...
19.
scons: Configure: (cached) no
20.

21.
scons: Configure: Boost configuration...
22.
scons: Configure: (cached) no


my cxonfig file copied from the pastebined output

ohand pkg-config --version says mine is .22

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

Re: Scons can't find boost serialization

#30 Post by OndrejR » Sun Dec 21, 2008 11:30 am

Could you run:

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
and

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
yoshi: Problem is that I can't install version of your libc. We need to found where problem is and therefore I need Debian testing with boost 1.37 from unstable Debian(or Ubuntu hardy with boost 1.37 from unstable Debian). If problem is in Ubuntu 8.10 libc, then you need to downgrade ubuntu to hardy or fix problem yourself.

Post Reply