Page 5 of 6

Re: Scons can't find boost serialization

Posted: Thu Jan 01, 2009 8:24 am
by OndrejR
IConrad: It means that everybody on your computer can read and executive above libraries but only root can change it. There is no problem with that.(root ReadWriteeXecute, group ReadWriteeXecute, others ReadWriteeXecute)

Code: Select all

sudo scons
runs scons under root and therefore it change permissions of compiled files to root. And if you run freeorion under normal user, then you maybe can't read these files.

What is output of

Code: Select all

ls -all
in FreeOrion directory, in FreeOrion/.sconf_temp directory, in FreeOrion/GG directory and in FreeOrion/GG/.sconf_temp directory?

Re: Scons can't find boost serialization

Posted: Thu Jan 01, 2009 9:31 am
by loonycyborg
There's also a possibility that there's no execute access to /usr/local/lib for everyone.. What is the output of "ls -ald /usr/local/lib"?

Re: Scons can't find boost serialization

Posted: Thu Jan 01, 2009 8:24 pm
by IConrad

Code: Select all

ian@ian-laptop:~$ ls -ald /usr/local/lib
drwxr-xr-x 4 root root 4096 2008-12-24 16:26 /usr/local/lib

Code: Select all

ian@ian-laptop:~/freeorion/FreeOrion$ ls -all
total 172
drwxr-xr-x 19 ian ian  4096 2008-12-24 16:35 .
drwxr-xr-x  5 ian ian  4096 2008-12-24 14:39 ..
drwxr-xr-x  3 ian ian  4096 2008-12-24 14:42 AI
-rw-r--r--  1 ian ian   820 2008-12-24 14:42 build_config.py
-rw-r--r--  1 ian ian  1260 2008-12-24 16:35 build_config.pyc
-rw-r--r--  1 ian ian 14760 2008-12-24 14:42 build_support.py
-rw-r--r--  1 ian ian 14890 2008-12-24 16:35 build_support.pyc
drwxr-xr-x  6 ian ian  4096 2008-12-24 14:42 client
drwxr-xr-x  3 ian ian  4096 2008-12-24 14:42 combat
-rw-r--r--  1 ian ian  4134 2008-12-31 18:17 config.log
drwxr-xr-x  5 ian ian  4096 2008-12-24 14:42 default
drwxr-xr-x  4 ian ian  4096 2008-12-24 14:39 Empire
drwxr-xr-x 10 ian ian  4096 2008-12-24 16:26 GG
drwxr-xr-x  3 ian ian  4096 2008-12-24 14:42 Installer
-rw-r--r--  1 ian ian    85 2008-12-24 14:42 Makefile
drwxr-xr-x  6 ian ian  4096 2008-12-24 14:39 msvc2005
drwxr-xr-x  6 ian ian  4096 2008-12-24 14:39 msvc2008
drwxr-xr-x  4 ian ian  4096 2008-12-24 14:42 network
-rw-r--r--  1 ian ian    48 2008-12-31 18:17 options.cache
drwxr-xr-x  3 ian ian  4096 2008-12-24 14:39 python
-rw-r--r--  1 ian ian  2969 2008-12-24 14:42 RELEASE-NOTES-V03.txt
drwxr-xr-x  2 ian ian  4096 2008-12-31 18:17 .sconf_temp
-rw-r--r--  1 ian ian  4374 2008-12-24 14:42 SConscript
-rw-r--r--  1 ian ian     0 2008-12-24 16:35 .sconsign.dblite
-rw-r--r--  1 ian ian 25987 2008-12-24 14:42 SConstruct
drwxr-xr-x  4 ian ian  4096 2008-12-24 14:42 server
drwxr-xr-x  6 ian ian  4096 2008-12-24 14:43 .svn
drwxr-xr-x  4 ian ian  4096 2008-12-24 14:42 UI
drwxr-xr-x  4 ian ian  4096 2008-12-24 14:42 universe
drwxr-xr-x  4 ian ian  4096 2008-12-31 18:16 util

Code: Select all

ian@ian-laptop:~/freeorion/FreeOrion/.sconf_temp$ ls -all
total 60
drwxr-xr-x  2 ian ian  4096 2008-12-31 18:17 .
drwxr-xr-x 19 ian ian  4096 2008-12-24 16:35 ..
-rwxr-xr-x  1 ian ian 10804 2008-12-31 18:17 conftest_0
-rw-r--r--  1 ian ian    67 2008-12-31 18:17 conftest_0.c
-rw-r--r--  1 ian ian  1360 2008-12-31 18:17 conftest_0.o
-rw-r--r--  1 ian ian    34 2008-12-31 18:17 conftest_3.cpp
-rw-r--r--  1 ian ian   936 2008-12-31 18:17 conftest_3.o
-rw-r--r--  1 ian ian    53 2008-12-31 18:17 conftest_4.cpp
-rw-r--r--  1 ian ian  1736 2008-12-31 18:17 conftest_4.o
-rw-r--r--  1 ian ian   121 2008-12-31 18:17 conftest_5.cpp
-rw-r--r--  1 ian ian  2232 2008-12-31 18:17 conftest_5.o
-rw-r--r--  1 ian ian   121 2008-12-31 18:17 conftest_6.cpp
-rw-r--r--  1 ian ian  2232 2008-12-31 18:17 conftest_6.o

Code: Select all

ian@ian-laptop:~/freeorion/FreeOrion/GG$ ls -all
total 872
drwxr-xr-x 10 ian  ian    4096 2008-12-24 16:26 .
drwxr-xr-x 19 ian  ian    4096 2008-12-24 16:35 ..
-rw-r--r--  1 ian  ian     566 2008-12-24 14:43 build_config.py
-rw-r--r--  1 ian  ian     931 2008-12-24 14:54 build_config.pyc
-rw-r--r--  1 ian  ian   12519 2008-12-24 14:43 build_support.py
-rw-r--r--  1 ian  ian   13103 2008-12-24 14:54 build_support.pyc
-rw-r--r--  1 ian  ian    1349 2008-12-24 14:43 Config.h.in
-rw-r--r--  1 ian  ian   16489 2008-12-24 14:55 config.log
drwxr-xr-x  3 ian  ian    4096 2008-12-24 14:42 doc
drwxr-xr-x  7 ian  ian    4096 2008-12-24 14:55 GG
-rw-r--r--  1 ian  ian     812 2008-12-24 14:55 gigi_config.cache
-rw-r--r--  1 ian  ian     257 2008-12-24 16:26 GiGiOgre.pc
-rw-r--r--  1 ian  ian     259 2008-12-24 14:43 GiGiOgre.pc.in
-rw-r--r--  1 ian  ian     340 2008-12-24 16:26 GiGi.pc
-rw-r--r--  1 ian  ian     238 2008-12-24 14:43 GiGi.pc.in
-rw-r--r--  1 ian  ian     248 2008-12-24 16:26 GiGiSDL.pc
-rw-r--r--  1 ian  ian     255 2008-12-24 14:43 GiGiSDL.pc.in
-rw-r--r--  1 ian  ian   26431 2008-12-24 14:43 lgpl.txt
-rwxr-xr-x  1 ian  ian  103414 2008-12-24 16:21 libGiGiOgrePlugin_OIS.so
-rwxr-xr-x  1 ian  ian   82460 2008-12-24 16:21 libGiGiOgre.so
-rwxr-xr-x  1 ian  ian   58905 2008-12-24 16:20 libGiGiSDL.so
drwxr-xr-x  3 ian  ian    4096 2008-12-24 16:20 libltdl
-rw-r--r--  1 ian  ian     910 2008-12-24 14:55 ogre_config.cache
-rw-r--r--  1 ian  ian     971 2008-12-24 14:55 ogre_ois_config.cache
-rw-r--r--  1 ian  ian       0 2008-12-24 16:26 options.cache
drwxr-xr-x  2 ian  ian    4096 2008-12-24 14:55 .sconf_temp
-rw-r--r--  1 root root 405325 2008-12-24 16:26 .sconsign.dblite
-rw-r--r--  1 ian  ian   37390 2008-12-24 14:43 SConstruct
-rw-r--r--  1 ian  ian     905 2008-12-24 14:55 sdl_config.cache
drwxr-xr-x  7 ian  ian    4096 2008-12-24 16:19 src
drwxr-xr-x  6 ian  ian    4096 2008-12-24 14:43 .svn
drwxr-xr-x  3 ian  ian    4096 2008-12-24 14:42 test
drwxr-xr-x  3 ian  ian    4096 2008-12-24 16:21 tutorial

Code: Select all

ian@ian-laptop:~/freeorion/FreeOrion/GG/.sconf_temp$ ls -all
total 620
drwxr-xr-x  2 ian ian  4096 2008-12-24 14:55 .
drwxr-xr-x 10 ian ian  4096 2008-12-24 16:26 ..
-rw-r--r--  1 ian ian    23 2008-12-24 14:54 conftest_10.c
-rw-r--r--  1 ian ian   935 2008-12-24 14:54 conftest_10.o
-rwxr-xr-x  1 ian ian 10819 2008-12-24 14:54 conftest_11
-rw-r--r--  1 ian ian   109 2008-12-24 14:54 conftest_11.c
-rw-r--r--  1 ian ian  1368 2008-12-24 14:54 conftest_11.o
-rw-r--r--  1 ian ian    21 2008-12-24 14:54 conftest_12.c
-rw-r--r--  1 ian ian   935 2008-12-24 14:54 conftest_12.o
-rw-r--r--  1 ian ian    22 2008-12-24 14:54 conftest_13.c
-rw-r--r--  1 ian ian   935 2008-12-24 14:54 conftest_13.o
-rwxr-xr-x  1 ian ian 10799 2008-12-24 14:54 conftest_14
-rw-r--r--  1 ian ian    95 2008-12-24 14:54 conftest_14.c
-rw-r--r--  1 ian ian  1360 2008-12-24 14:54 conftest_14.o
-rwxr-xr-x  1 ian ian 10801 2008-12-24 14:54 conftest_15
-rw-r--r--  1 ian ian    99 2008-12-24 14:54 conftest_15.c
-rw-r--r--  1 ian ian  1360 2008-12-24 14:54 conftest_15.o
-rw-r--r--  1 ian ian    24 2008-12-24 14:54 conftest_17.c
-rw-r--r--  1 ian ian   935 2008-12-24 14:54 conftest_17.o
-rwxr-xr-x  1 ian ian 10808 2008-12-24 14:55 conftest_18
-rw-r--r--  1 ian ian   113 2008-12-24 14:54 conftest_18.c
-rw-r--r--  1 ian ian  1368 2008-12-24 14:54 conftest_18.o
-rw-r--r--  1 ian ian    42 2008-12-24 14:55 conftest_19.c
-rw-r--r--  1 ian ian   935 2008-12-24 14:55 conftest_19.o
-rw-r--r--  1 ian ian    34 2008-12-24 14:54 conftest_1.cpp
-rw-r--r--  1 ian ian   936 2008-12-24 14:54 conftest_1.o
-rwxr-xr-x  1 ian ian 10767 2008-12-24 14:55 conftest_20
-rw-r--r--  1 ian ian    31 2008-12-24 14:55 conftest_20.c
-rw-r--r--  1 ian ian  1232 2008-12-24 14:55 conftest_20.o
-rw-r--r--  1 ian ian    19 2008-12-24 14:55 conftest_21.c
-rw-r--r--  1 ian ian   935 2008-12-24 14:55 conftest_21.o
-rwxr-xr-x  1 ian ian 10767 2008-12-24 14:55 conftest_22
-rw-r--r--  1 ian ian    31 2008-12-24 14:55 conftest_22.c
-rw-r--r--  1 ian ian  1232 2008-12-24 14:55 conftest_22.o
-rw-r--r--  1 ian ian    22 2008-12-24 14:55 conftest_23.c
-rwxr-xr-x  1 ian ian 11036 2008-12-24 14:55 conftest_24
-rw-r--r--  1 ian ian   489 2008-12-24 14:55 conftest_24.c
-rw-r--r--  1 ian ian  1880 2008-12-24 14:55 conftest_24.o
-rw-r--r--  1 ian ian    20 2008-12-24 14:55 conftest_27.cpp
-rw-r--r--  1 ian ian  2280 2008-12-24 14:55 conftest_27.o
-rwxr-xr-x  1 ian ian 15861 2008-12-24 14:55 conftest_28
-rw-r--r--  1 ian ian    61 2008-12-24 14:55 conftest_28.cpp
-rw-r--r--  1 ian ian  3952 2008-12-24 14:55 conftest_28.o
-rw-r--r--  1 ian ian    89 2008-12-24 14:54 conftest_2.cpp
-rw-r--r--  1 ian ian  4472 2008-12-24 14:54 conftest_2.o
-rwxr-xr-x  1 ian ian 11417 2008-12-24 14:54 conftest_3
-rw-r--r--  1 ian ian    19 2008-12-24 14:55 conftest_31.cpp
-rw-r--r--  1 ian ian   937 2008-12-24 14:55 conftest_31.o
-rw-r--r--  1 ian ian    89 2008-12-24 14:54 conftest_3.cpp
-rw-r--r--  1 ian ian  4472 2008-12-24 14:54 conftest_3.o
-rw-r--r--  1 ian ian   107 2008-12-24 14:54 conftest_4.cpp
-rw-r--r--  1 ian ian  2904 2008-12-24 14:54 conftest_4.o
-rwxr-xr-x  1 ian ian 11447 2008-12-24 14:54 conftest_5
-rw-r--r--  1 ian ian   107 2008-12-24 14:54 conftest_5.cpp
-rw-r--r--  1 ian ian  2904 2008-12-24 14:54 conftest_5.o
-rw-r--r--  1 ian ian   108 2008-12-24 14:54 conftest_6.cpp
-rw-r--r--  1 ian ian 92464 2008-12-24 14:54 conftest_6.o
-rwxr-xr-x  1 ian ian 58685 2008-12-24 14:54 conftest_7
-rw-r--r--  1 ian ian   108 2008-12-24 14:54 conftest_7.cpp
-rw-r--r--  1 ian ian 92464 2008-12-24 14:54 conftest_7.o
-rw-r--r--  1 ian ian    89 2008-12-24 14:54 conftest_8.cpp
-rw-r--r--  1 ian ian  7928 2008-12-24 14:54 conftest_8.o
-rwxr-xr-x  1 ian ian 16524 2008-12-24 14:54 conftest_9
-rw-r--r--  1 ian ian    89 2008-12-24 14:54 conftest_9.cpp
-rw-r--r--  1 ian ian  7928 2008-12-24 14:54 conftest_9.o

Re: Scons can't find boost serialization

Posted: Fri Jan 02, 2009 10:39 am
by OndrejR
IConrad: I don't see any problem with file permissions.

Problem with FreeOrion segfault immediately after starting FreeOrion was fixed by tzlaine.

Re: Scons can't find boost serialization

Posted: Sat Jan 03, 2009 12:07 am
by IConrad
Problem with FreeOrion segfault immediately after starting FreeOrion was fixed by tzlaine.
That doesn't help somebody who can't compile FO in the first place, though... :(

libdevil-dev

Posted: Sat Jan 03, 2009 5:37 pm
by francys
I now get an error at

Code: Select all

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
but config.log says it's because of

Code: Select all

g++ -o .sconf_temp/conftest_6 -pthread .sconf_temp/conftest_6.o -L/usr/lib -L/usr/local/lib -L/usr/local/include/boost-1_37/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-mt
/usr/lib/libIL.so: undefined reference to `ilLoadVtfF'
/usr/lib/libIL.so: undefined reference to `ilLoadVtf'
/usr/lib/libIL.so: undefined reference to `ilLoadVtfL'
collect2: ld returned 1 exit status
I'm using libdevil1c2 and libdevil-dev version 1.7.5-1 (they have been uploaded to the debian testing repositories 2 days ago).

Re: libdevil-dev

Posted: Sat Jan 03, 2009 7:01 pm
by OndrejR
francys wrote: from another thread: 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.

I now get an error at

Code: Select all

...
/usr/lib/libIL.so: undefined reference to `ilLoadVtfF'
/usr/lib/libIL.so: undefined reference to `ilLoadVtf'
/usr/lib/libIL.so: undefined reference to `ilLoadVtfL'
collect2: ld returned 1 exit status
I'm using libdevil1c2 and libdevil-dev version 1.7.5-1 (they have been uploaded to the debian testing repositories 2 days ago).
No. libdevil-dev and libdevil1c2 are not in debian testing. They are in debian unstable. You can see this at:
http://packages.debian.org/search?keywo ... ection=all

I have libdevil-dev and libdevil1c3 in version 1.6.8-rc2-3 from debian testing(and have functional FreeOrion). Probably there is api change in devil and therefore you have to use version 1.6.8-rc2-3.

Re: Scons can't find boost serialization

Posted: Sat Jan 03, 2009 7:56 pm
by francys
Oh yes, I'm sorry. Thanks for pointing that out. I have now managed to compile FO... :D

Re: Scons can't find boost serialization

Posted: Mon Jan 05, 2009 5:11 pm
by IConrad
Any signs someone is going to be making a binary of FO 0.3.10 that doesn't still have the building bug?

Re: Scons can't find boost serialization

Posted: Mon Jan 05, 2009 6:37 pm
by OndrejR
IConrad wrote:Any signs someone is going to be making a binary of FO 0.3.10 that doesn't still have the building bug?
I don't know howto create static library. Francys after some upgrade now can play FreeOrion on Debian testing/unstable(and has libc 2.7). You should try vmware or wait until someone creates static binary.

Re: Scons can't find boost serialization

Posted: Mon Jan 05, 2009 9:18 pm
by OndrejR
IConrad:
boost mailing list wrote:That solved the problem. Thanks!

>> Fedora rawhide recently bumped the boost version from 1.34 to 1.37
>>> so I gave it a try. I can't compile the code below:
>>>
>>
> Unfortunately this is a bug in the TR1 library that hits you only if:
>
> * You have the TR1 headers in your include path.
> and:
> * Boost is installed in /usr/
>
> I believe this is fixed in SVN Trunk: can you try replacing the contents of
> /usr/include/boost/tr1 with the latest code from SVN and see if that helps?
Maybe you should try this.

Re: Scons can't find boost serialization

Posted: Mon Jan 05, 2009 9:22 pm
by IConrad
I can't compile Boost either. Doesn't seem to matter the version.

Re: Scons can't find boost serialization

Posted: Mon Jan 05, 2009 9:31 pm
by OndrejR
IConrad wrote:I can't compile Boost either. Doesn't seem to matter the version.
In Debian unstable there is functional boost(and francys successfully compiled FreeOrion). Did you install boost 1.37 from debian unstable?

Re: Scons can't find boost serialization

Posted: Mon Jan 05, 2009 9:37 pm
by IConrad
OndrejR: I've tried Debian unstable /and/ Ubuntu Jaunty. (Different instances.) I seem to recall that they pulled Boost 1.37 from Debian before I switched to Jaunty. I'll give re-installation of the Debian source a try again. Maybe it's just a bug that I'm able to correct. :/ Damn but I wish I knew enough to diagnose these things on my own!

EDIT: No dice. Same exact behavior. And it was with a clean svn of freeorion & GG as well.

Re: Scons can't find boost serialization

Posted: Sun Jan 25, 2009 5:59 pm
by physix
Hey there,

I finally want to take a look at FreeOrion, but I seem to be stuck in the same mess this thread is about.

I am running Ubuntu 8.10 and manually installed boost 1.37 today (ubuntu comes with 1.35). When I try to build GIGI I get:

Code: Select all

sudo scons
scons: Reading SConscript files ...
Checking for pkg-config... yes
Configuring for POSIX system...
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking Boost version >= 1.36... (cached) yes
Looking for boost lib boost_signals... 
Checking for boost::signals::connection() in C++ library boost_signals... yes
Looking for boost lib boost_system... 
Checking for boost::system::get_system_category() in C++ library boost_system... no
Checking for boost::system::get_system_category() in C++ library boost_system-mt... no
Boost configuration... (cached) no
There is no change whether I use the -mt suffix option or not. LD_LIBRARY_PATH contains the right path to boost.
Any ideas? Has this been resolved yet?

Thanks for your help. I apologize for being too noobish to figure that one out on my own...