Page 3 of 6

Re: Scons can't find boost serialization

Posted: Sun Dec 21, 2008 1:21 pm
by yoshi
[email protected]:~/freeorion/FreeOrion/GG$ 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
g++: .sconf_temp/conftest_5.cpp: No such file or directory
g++: no input files
[email protected]:~/freeorion/FreeOrion/GG$ 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
g++: .sconf_temp/conftest_5.o: No such file or directory



i wont downgrade to hardy. it was hard enough to get hardy to upgrade in the first place. if thats the thing i need then i will just have to wait till the next version of FO :(

Re: Scons can't find boost serialization

Posted: Sun Dec 21, 2008 5:54 pm
by francys
OndrejR wrote:francys: please post your config.log from GG(you should run scons config with --force=true)
This,

Code: Select all

scons configure with_boost_include=/usr/local/include/boost-1_37/ --force=true
,
returned
file /opt/FreeOrion/GG/SConstruct,line 283:
Configure(confdir = .sconf_temp)
scons: Configure: Checking for pkg-config...
scons: Configure: ".sconf_temp/conftest_0" is up to date.
scons: Configure: The original builder output was:
|pkg-config --atleast-pkgconfig-version 0.15.0
|
scons: Configure: (cached) yes

scons: Configure: Checking for C++ header file boost/shared_ptr.hpp...
scons: Configure: ".sconf_temp/conftest_1.cpp" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_1.cpp <-
| |
| |#include "boost/shared_ptr.hpp"
| |
| |
|
scons: Configure: ".sconf_temp/conftest_1.o" is up to date.
scons: Configure: The original builder output was:
|g++ -o .sconf_temp/conftest_1.o -c .sconf_temp/conftest_1.cpp
|
scons: Configure: (cached) yes

scons: Configure: Checking Boost version >= 1.36...
scons: Configure: (cached) yes

scons: Configure: Checking for boost::signals::connection() in C++ library boost_signals...
scons: Configure: ".sconf_temp/conftest_2.cpp" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_2.cpp <-
| |
| |
| |#include "boost/signals.hpp"
| |
| |int
| |main() {
| | boost::signals::connection();
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_2.o" is up to date.
scons: Configure: The original builder output was:
|g++ -o .sconf_temp/conftest_2.o -c .sconf_temp/conftest_2.cpp
|
scons: Configure: ".sconf_temp/conftest_2" is up to date.
scons: Configure: The original builder output was:
|g++ -o .sconf_temp/conftest_2 .sconf_temp/conftest_2.o -lboost_signals
|
scons: Configure: (cached) yes

scons: Configure: Checking for boost::system::get_system_category() in C++ library boost_system...
scons: Configure: ".sconf_temp/conftest_3.cpp" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_3.cpp <-
| |
| |
| |#include "boost/system/error_code.hpp"
| |
| |int
| |main() {
| | boost::system::get_system_category();
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_3.o" is up to date.
scons: Configure: The original builder output was:
|g++ -o .sconf_temp/conftest_3.o -c .sconf_temp/conftest_3.cpp
|
scons: Configure: ".sconf_temp/conftest_3" is up to date.
scons: Configure: The original builder output was:
|g++ -o .sconf_temp/conftest_3 .sconf_temp/conftest_3.o -lboost_signals -lboost_system
|
scons: Configure: (cached) yes

scons: Configure: Checking for boost::filesystem::initial_path() in C++ library boost_filesystem...
scons: Configure: ".sconf_temp/conftest_4.cpp" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_4.cpp <-
| |
| |
| |#include "boost/filesystem/operations.hpp"
| |
| |int
| |main() {
| | boost::filesystem::initial_path();
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_4.o" is up to date.
scons: Configure: The original builder output was:
|g++ -o .sconf_temp/conftest_4.o -c .sconf_temp/conftest_4.cpp
|
scons: Configure: ".sconf_temp/conftest_4" is up to date.
scons: Configure: The original builder output was:
|g++ -o .sconf_temp/conftest_4 .sconf_temp/conftest_4.o -lboost_signals -lboost_system -lboost_filesystem
|
scons: Configure: (cached) yes

scons: Configure: Checking for boost::thread::yield() in C++ library boost_thread...
scons: Configure: ".sconf_temp/conftest_5.cpp" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_5.cpp <-
| |
| |
| |#include "boost/thread/thread.hpp"
| |
| |int
| |main() {
| | boost::thread::yield();
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_5.o" is up to date.
scons: Configure: The original builder output was:
|g++ -o .sconf_temp/conftest_5.o -c .sconf_temp/conftest_5.cpp
|
scons: Configure: ".sconf_temp/conftest_5" is up to date.
scons: Configure: The original builder output was:
|g++ -o .sconf_temp/conftest_5 .sconf_temp/conftest_5.o -lboost_signals -lboost_system -lboost_filesystem -lboost_thread
|
scons: Configure: (cached) yes

scons: Configure: Boost configuration...
scons: Configure: (cached) ok

scons: Configure: Checking for C header file pthread.h...
scons: Configure: ".sconf_temp/conftest_6.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_6.c <-
| |
| |#include "pthread.h"
| |
| |
|
scons: Configure: ".sconf_temp/conftest_6.o" is up to date.
scons: Configure: The original builder output was:
|gcc -o .sconf_temp/conftest_6.o -c .sconf_temp/conftest_6.c
|
scons: Configure: (cached) yes

scons: Configure: Checking for pthread_create() in C library pthread...
scons: Configure: ".sconf_temp/conftest_7.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_7.c <-
| |
| |
| |
| |#ifdef __cplusplus
| |extern "C"
| |#endif
| |char pthread_create();
| |
| |int
| |main() {
| | pthread_create();
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_7.o" is up to date.
scons: Configure: The original builder output was:
|gcc -o .sconf_temp/conftest_7.o -c .sconf_temp/conftest_7.c
|
scons: Configure: ".sconf_temp/conftest_7" is up to date.
scons: Configure: The original builder output was:
|gcc -o .sconf_temp/conftest_7 .sconf_temp/conftest_7.o -lboost_signals -lboost_system -lboost_filesystem -lboost_thread -lpthread
|
scons: Configure: (cached) yes

scons: Configure: Checking for C header file GL/gl.h...
scons: Configure: ".sconf_temp/conftest_8.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_8.c <-
| |
| |#include "GL/gl.h"
| |
| |
|
scons: Configure: ".sconf_temp/conftest_8.o" is up to date.
scons: Configure: The original builder output was:
|gcc -o .sconf_temp/conftest_8.o -c -pthread .sconf_temp/conftest_8.c
|
scons: Configure: (cached) yes

scons: Configure: Checking for C header file GL/glu.h...
scons: Configure: ".sconf_temp/conftest_9.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_9.c <-
| |
| |#include "GL/glu.h"
| |
| |
|
scons: Configure: ".sconf_temp/conftest_9.o" is up to date.
scons: Configure: The original builder output was:
|gcc -o .sconf_temp/conftest_9.o -c -pthread .sconf_temp/conftest_9.c
|
scons: Configure: (cached) yes

scons: Configure: Checking for glBegin() in C library GL...
scons: Configure: ".sconf_temp/conftest_10.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_10.c <-
| |
| |
| |
| |#ifdef __cplusplus
| |extern "C"
| |#endif
| |char glBegin();
| |
| |int
| |main() {
| | glBegin();
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_10.o" is up to date.
scons: Configure: The original builder output was:
|gcc -o .sconf_temp/conftest_10.o -c -pthread .sconf_temp/conftest_10.c
|
scons: Configure: ".sconf_temp/conftest_10" is up to date.
scons: Configure: The original builder output was:
|gcc -o .sconf_temp/conftest_10 -pthread .sconf_temp/conftest_10.o -lboost_signals -lboost_system -lboost_filesystem -lboost_thread -lGL
|
scons: Configure: (cached) yes

scons: Configure: Checking for gluLookAt() in C library GLU...
scons: Configure: ".sconf_temp/conftest_11.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_11.c <-
| |
| |
| |
| |#ifdef __cplusplus
| |extern "C"
| |#endif
| |char gluLookAt();
| |
| |int
| |main() {
| | gluLookAt();
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_11.o" is up to date.
scons: Configure: The original builder output was:
|gcc -o .sconf_temp/conftest_11.o -c -pthread .sconf_temp/conftest_11.c
|
scons: Configure: ".sconf_temp/conftest_11" is up to date.
scons: Configure: The original builder output was:
|gcc -o .sconf_temp/conftest_11 -pthread .sconf_temp/conftest_11.o -lboost_signals -lboost_system -lboost_filesystem -lboost_thread -lGL -lGLU
|
scons: Configure: (cached) yes

scons: Configure: Checking for freetype2 >= 9.0.0...
scons: Configure: ".sconf_temp/conftest_12" is up to date.
scons: Configure: The original builder output was:
|pkg-config freetype2 --atleast-version 9.0.0
|
scons: Configure: (cached) yes

scons: Configure: Checking for C header file ft2build.h...
scons: Configure: ".sconf_temp/conftest_13.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_13.c <-
| |
| |#include "ft2build.h"
| |
| |
|
scons: Configure: ".sconf_temp/conftest_13.o" is up to date.
scons: Configure: The original builder output was:
|gcc -o .sconf_temp/conftest_13.o -c -pthread -I/usr/include/freetype2 .sconf_temp/conftest_13.c
|
scons: Configure: (cached) yes

scons: Configure: Checking for FT_Init_FreeType() in C library freetype...
scons: Configure: ".sconf_temp/conftest_14.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_14.c <-
| |
| |
| |
| |#ifdef __cplusplus
| |extern "C"
| |#endif
| |char FT_Init_FreeType();
| |
| |int
| |main() {
| | FT_Init_FreeType();
| |return 0;
| |}
| |
|
scons: Configure: ".sconf_temp/conftest_14.o" is up to date.
scons: Configure: The original builder output was:
|gcc -o .sconf_temp/conftest_14.o -c -pthread -I/usr/include/freetype2 .sconf_temp/conftest_14.c
|
scons: Configure: ".sconf_temp/conftest_14" is up to date.
scons: Configure: The original builder output was:
|gcc -o .sconf_temp/conftest_14 -pthread .sconf_temp/conftest_14.o -lboost_signals -lboost_system -lboost_filesystem -lboost_thread -lGL -lGLU -lfreetype -lz -lfreetype
|
scons: Configure: (cached) yes

scons: Configure: Checking for C header file jpeglib.h...
.sconf_temp/conftest_15.c <-
|#include "stdio.h"
|
|#include "jpeglib.h"
|
|
gcc -o .sconf_temp/conftest_15.o -c -pthread -I/usr/local/include/boost-1_37 -I/usr/include/freetype2 .sconf_temp/conftest_15.c
scons: Configure: yes

scons: Configure: Checking for C library jpeg...
.sconf_temp/conftest_16.c <-
|
|
|
|int
|main() {
|
|return 0;
|}
|
gcc -o .sconf_temp/conftest_16.o -c -pthread -I/usr/local/include/boost-1_37 -I/usr/include/freetype2 .sconf_temp/conftest_16.c
gcc -o .sconf_temp/conftest_16 -pthread .sconf_temp/conftest_16.o -lboost_signals -lboost_system -lboost_filesystem -lboost_thread -lGL -lGLU -lfreetype -lz -lfreetype -ljpeg
/usr/bin/ld: cannot find -lboost_signals
collect2: ld returned 1 exit status
scons: Configure: no

scons: Configure: Checking for C header file png.h...
.sconf_temp/conftest_17.c <-
|
|#include "png.h"
|
|
gcc -o .sconf_temp/conftest_17.o -c -pthread -I/usr/local/include/boost-1_37 -I/usr/include/freetype2 .sconf_temp/conftest_17.c
scons: Configure: yes

scons: Configure: Checking for C library png...
.sconf_temp/conftest_18.c <-
|
|
|
|int
|main() {
|
|return 0;
|}
|
gcc -o .sconf_temp/conftest_18.o -c -pthread -I/usr/local/include/boost-1_37 -I/usr/include/freetype2 .sconf_temp/conftest_18.c
gcc -o .sconf_temp/conftest_18 -pthread .sconf_temp/conftest_18.o -lboost_signals -lboost_system -lboost_filesystem -lboost_thread -lGL -lGLU -lfreetype -lz -lfreetype -lpng
/usr/bin/ld: cannot find -lboost_signals
collect2: ld returned 1 exit status
scons: Configure: no

scons: Configure: Checking for C header file tiffio.h...
.sconf_temp/conftest_19.c <-
|
|#include "tiffio.h"
|
|
gcc -o .sconf_temp/conftest_19.o -c -pthread -I/usr/local/include/boost-1_37 -I/usr/include/freetype2 .sconf_temp/conftest_19.c
scons: Configure: yes

scons: Configure: Checking for C library tiff...
.sconf_temp/conftest_20.c <-
|
|
|
|int
|main() {
|
|return 0;
|}
|
gcc -o .sconf_temp/conftest_20.o -c -pthread -I/usr/local/include/boost-1_37 -I/usr/include/freetype2 .sconf_temp/conftest_20.c
gcc -o .sconf_temp/conftest_20 -pthread .sconf_temp/conftest_20.o -lboost_signals -lboost_system -lboost_filesystem -lboost_thread -lGL -lGLU -lfreetype -lz -lfreetype -ltiff
/usr/bin/ld: cannot find -lboost_signals
collect2: ld returned 1 exit status
scons: Configure: no

scons: Configure: Generating libltdl/config.h using libltdl/configure...
scons: Configure: (cached) ok

scons: Configure: Configuration successful...
scons: Configure: (cached) yes


file /opt/FreeOrion/GG/SConstruct,line 516:
Configure(confdir = .sconf_temp)
scons: Configure: Checking for sdl-config...
scons: Configure: (cached) yes

scons: Configure: Checking SDL version >= 1.2.7...
scons: Configure: (cached) yes

scons: Configure: Linking SDL/OpenGL test app...
.sconf_temp/conftest_21.c <-
|
|#include <SDL/SDL.h>
|#include <SDL/SDL_opengl.h>
|int main(int argc, char **argv)
|{
| SDL_Init(SDL_INIT_VIDEO);
| SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5);
| SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 5);
| SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);
| SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);
| SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
| SDL_SetVideoMode(640, 480, SDL_GetVideoInfo()->vfmt->BitsPerPixel, SDL_OPENGL);
| glBegin(GL_TRIANGLES);
| glEnd();
| return 0;
|}
|
gcc -o .sconf_temp/conftest_21.o -c -pthread -Wall -O2 -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/boost-1_37 -I/usr/include/freetype2 -I. -Ilibltdl -I/usr/include/SDL .sconf_temp/conftest_21.c
gcc -o .sconf_temp/conftest_21 -pthread .sconf_temp/conftest_21.o -L/usr/lib -lboost_signals -lboost_system -lboost_filesystem -lboost_thread -lGL -lGLU -lz -lfreetype -lSDL
/usr/bin/ld: cannot find -lboost_signals
collect2: ld returned 1 exit status
scons: Configure: no

scons: Configure: SDL configuration...
scons: Configure: (cached) no

scons: Configure: Configuration successful...
scons: Configure: (cached) no


file /opt/FreeOrion/GG/SConstruct,line 535:
Configure(confdir = .sconf_temp)
scons: Configure: Checking for pkg-config...
pkg-config --atleast-pkgconfig-version 0.15.0
scons: Configure: yes

scons: Configure: Checking for OGRE >= 1.4.3...
pkg-config OGRE --atleast-version 1.4.3
scons: Configure: yes

scons: Configure: Checking for C++ header file Ogre.h...
.sconf_temp/conftest_24.cpp <-
|
|#include "Ogre.h"
|
|
g++ -o .sconf_temp/conftest_24.o -c -pthread -Wall -O2 -DOGRE_GUI_GLX -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/local/include/boost-1_37 -I/usr/include/freetype2 -I. -Ilibltdl -I/usr/include/OGRE .sconf_temp/conftest_24.cpp
In file included from /usr/include/c++/4.3/ext/hash_map:64,
from /usr/include/OGRE/OgreStdHeaders.h:38,
from /usr/include/OGRE/OgreMemoryManager.h:46,
from /usr/include/OGRE/OgrePrerequisites.h:87,
from /usr/include/OGRE/Ogre.h:32,
from .sconf_temp/conftest_24.cpp:2:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
scons: Configure: yes

scons: Configure: Checking for Ogre::Root() in C++ library OgreMain...
.sconf_temp/conftest_25.cpp <-
|
|
|#include <Ogre.h>
|int
|main() {
| Ogre::Root();
|return 0;
|}
|
g++ -o .sconf_temp/conftest_25.o -c -pthread -Wall -O2 -DOGRE_GUI_GLX -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/local/include/boost-1_37 -I/usr/include/freetype2 -I. -Ilibltdl -I/usr/include/OGRE .sconf_temp/conftest_25.cpp
In file included from /usr/include/c++/4.3/ext/hash_map:64,
from /usr/include/OGRE/OgreStdHeaders.h:38,
from /usr/include/OGRE/OgreMemoryManager.h:46,
from /usr/include/OGRE/OgrePrerequisites.h:87,
from /usr/include/OGRE/Ogre.h:32,
from .sconf_temp/conftest_25.cpp:3:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
g++ -o .sconf_temp/conftest_25 -pthread .sconf_temp/conftest_25.o -lboost_signals -lboost_system -lboost_filesystem -lboost_thread -lGL -lGLU -lz -lfreetype -lOgreMain -lOgreMain
/usr/bin/ld: cannot find -lboost_signals
collect2: ld returned 1 exit status
scons: Configure: no

scons: Configure: Configuration successful...
scons: Configure: (cached) no


Re: Scons can't find boost serialization

Posted: Sun Dec 21, 2008 7:24 pm
by OndrejR
francys: I have different config.log with same system. The only one difference is other boost. You have compiled boost 1.37 and I have boost 1.37 from unstable repository. Could you install boost 1.37 from unstable Debian?

In my log the only failed test(but configuration of all tests successfully end) is test6 in which I can find:

Code: Select all

g++ -o .sconf_temp/conftest_6 .sconf_temp/conftest_6.o -lboost_signals-mt -lboost_system-mt -lboost_filesystem
/usr/bin/ld: cannot find -lboost_filesystem
collect2: ld returned 1 exit status
In your other tests failed, but problem was boost either. But your tests don't use mt version of boost.

Debian probably somehow patched boost, but error from my and your log indicate linker(ld) problem. Problem is maybe with LD_LIBRARY_PATH variable.

yoshi: You have not created .sconf_temp directory with tests. Scons should it create.

Re: Scons can't find boost serialization

Posted: Sun Dec 21, 2008 7:41 pm
by yoshi
ooooo so thats the whole command? well inputting that whole command from the guy a couple posts back makes my config.log look like this http://pastebin.com/f79849861

Re: Scons can't find boost serialization

Posted: Sun Dec 21, 2008 7:51 pm
by OndrejR
yoshi wrote:ooooo so thats the whole command? well inputting that whole command from the guy a couple posts back makes my config.log look like this http://pastebin.com/f79849861
Certainly problem is with linker ld which can't find some parts of boost. Problem may be solved by changing LD_LIBRARY_PATH to tell g++ where to find boost. Changing this variable to /usr/lib doesn't work and I need to find out why...

yoshi: files in .sconf_temp have to exist.

Re: Scons can't find boost serialization

Posted: Sun Dec 21, 2008 9:48 pm
by OndrejR
I finally found out that problem with ld. Linker ld can't find(in my case -lboost_signal) boost library and when I run compilation example from test

Code: Select all

g++ -o .sconf_temp/conftest_2 .sconf_temp/conftest_2.o -lboost_signals
I get error(but it strange that GG and FO compiles successfully)

Code: Select all

usr/bin/ld: cannot find -lboost_signals
collect2: ld returned 1 exit status
Linker ld can't find this library because in /usr/lib there is no library libboost-signals.so. But there is library libboost-signals-mt.so (mt means multithreaded) and therefore I must fix my test example to:

Code: Select all

g++ -o .sconf_temp/conftest_2 .sconf_temp/conftest_2.o -lboost_signals-mt
which compiles sucessfully.

All: you have to find out which version of boost you have(if is multithreaded) and to fix scons script. But how to fix scons script is another case. I have no idea. Yet.

Re: Scons can't find boost serialization

Posted: Sun Dec 21, 2008 10:36 pm
by yoshi
look i am just pasting out the command as you tell them to me in the spot you tell me to type them in. if it says it doesnt exist then it dont exist

Re: Scons can't find boost serialization

Posted: Mon Dec 22, 2008 12:17 pm
by loonycyborg
OndrejR wrote: All: you have to find out which version of boost you have(if is multithreaded) and to fix scons script. But how to fix scons script is another case. I have no idea. Yet.
There's no need to fix scons script. It already has an option to specify suffix of the library.
E.g. boost_lib_suffix=-gcc41-mt-1_37

Re: Scons can't find boost serialization

Posted: Mon Dec 22, 2008 3:19 pm
by yoshi
and the full command for using that would be?

Re: Scons can't find boost serialization

Posted: Mon Dec 22, 2008 3:23 pm
by loonycyborg
scons boost_lib_suffix=-gcc41-mt-1_37
Substitute suffix as appropriate for your boost libs. E.g. -gcc43-mt-1_37

Re: Scons can't find boost serialization

Posted: Tue Dec 23, 2008 2:06 am
by yoshi
my c onfig.log has gotten bigger here it is http://pastebin.com/f2735d235

Re: Scons can't find boost serialization

Posted: Tue Dec 23, 2008 9:01 am
by OndrejR
yoshi: you have in log:

Code: Select all

#
gcc -o .sconf_temp/conftest_10 -pthread .sconf_temp/conftest_10.o -L/usr/local/lib -lboost_signals-gcc43-mt-1_37 -lboost_system-gcc43-mt-1_37 -lboost_filesystem-gcc43-mt-1_37 -lboost_thread-gcc43-mt-1_37 -lGL
#
/usr/bin/ld: cannot find -lGL
GL missing

Re: Scons can't find boost serialization

Posted: Tue Dec 23, 2008 12:01 pm
by francys
OndrejR wrote:Linker ld can't find this library because in /usr/lib there is no library libboost-signals.so. But there is library libboost-signals-mt.so (mt means multithreaded) and therefore I must fix my test example to:

Code: Select all

g++ -o .sconf_temp/conftest_2 .sconf_temp/conftest_2.o -lboost_signals-mt
which compiles sucessfully.
yes that is the problem.

Re: Scons can't find boost serialization

Posted: Tue Dec 23, 2008 3:20 pm
by yoshi
ok which package has gl?

Re: Scons can't find boost serialization

Posted: Tue Dec 23, 2008 3:47 pm
by IConrad
Alright, my VM efforts have failed me for now...

I'm still stuck in the same position I was before. Would not having libc6 version 2.7 really cause me to have the issue of scons not being able to find libboost_serialization when attempting to compile FreeOrion itself, while not having that issue w/ GG?

I tried to use the boost_lib_suffix advice from loonycyborg but my library seems to have no special suffix? :?