Page 1 of 1

scons bug

Posted: Sun Mar 02, 2008 1:58 pm
by Redemptor
Hi everyone
I've been trying to get this whole compile thing to work but I'm having problems
(I've just made "apt-get install g++" as explained in another topic in the bug section, it solved another problem)

vincent@vincent-laptop:~/Desktop/glob2-0.9.2$ sudo scons
scons: Reading SConscript files ...
Checking for C library SDL... (cached) yes
Checking for C library SDL_ttf... (cached) yes
Checking for C library SDL_image... (cached) yes
Checking for C library SDL_net... (cached) yes
Checking for C library speex... (cached) yes
Checking for C header file speex/speex.h... (cached) yes
Checking for C library vorbisfile... (cached) yes
Checking for C header file zlib.h... (cached) yes
Checking for C library z... (cached) yes
Checking for C library boost_thread... (cached) yes
Checking for C++ header file boost/thread/thread.hpp... (cached) yes
Checking for C++ header file boost/shared_ptr.hpp... (cached) yes
Checking for C++ header file boost/tuple/tuple.hpp... (cached) yes
Checking for C++ header file boost/tuple/tuple_comparison.hpp... (cached) yes
Checking for C++ header file boost/logic/tribool.hpp... (cached) yes
Checking for C++ header file boost/lexical_cast.hpp... (cached) yes
Checking for C library GL... (cached) yes
Checking for C header file GL/gl.h... (cached) yes
Checking for C library GLU... (cached) yes
Checking for C header file GL/glu.h... (cached) yes
Checking for C library fribidi... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
scons: `libgag/src/libgag.a' is up to date.
g++ -o src/CampaignMenuScreen.o -c -g -DHAVE_CONFIG_H -D_GNU_SOURCE=1 -D_REENTRANT -Ilibgag/include -I. -I/usr/include/SDL src/CampaignMenuScreen.cpp
In file included from src/YOGClient.h:32,
from src/NetEngine.h:26,
from src/Engine.h:31,
from src/CampaignMenuScreen.cpp:22:
src/YOGChatChannel.h:23:53: error: boost/date_time/posix_time/posix_time.hpp: No such file or directory
src/YOGChatChannel.h:50: error: 'boost::posix_time' has not been declared
src/YOGChatChannel.h:50: error: ISO C++ forbids declaration of 'ptime' with no type
src/YOGChatChannel.h:50: error: expected ';' before 'getMessageTime'
src/YOGChatChannel.h:73: error: 'posix_time' is not a member of 'boost'
src/YOGChatChannel.h:73: error: 'posix_time' is not a member of 'boost'
src/YOGChatChannel.h:73: error: template argument 2 is invalid
src/YOGChatChannel.h:73: error: template argument 1 is invalid
src/YOGChatChannel.h:73: error: template argument 2 is invalid
scons: *** [src/CampaignMenuScreen.o] Error 1
scons: building terminated because of errors.

vincent@vincent-laptop:~/Desktop/glob2-0.9.2$


I've just checked in synaptic : libfribidi0 and libfribidi-dev are installed...
I don't understand well all those compilation stuves, help me please :D

(I use eee xubuntu latest version installed a few weeks ago)

thanks in advance

Re: scons bug

Posted: Sun Mar 02, 2008 8:25 pm
by Lexen
I am using ubuntu and I didn't get that far. I got a failure at "Checking for C library SDL_ttf..." What programs did you install to get that far? Does anyone know who is in charge of the Debian/Ubuntu .deb packages?

Re: scons bug

Posted: Mon Mar 03, 2008 10:22 am
by Redemptor
each time you want a library to be checked you must install both the normal library and the dev one for example for the ttf stuff you must install :
libsdl-ttf2.0-0
and libsdl-ttf2.0-dev
in synaptic.

I just can't manage to get fribidi checked although I installed it properly...
Anyway, there are other problems ;)

Re: scons bug

Posted: Tue Mar 04, 2008 4:53 am
by izual
Ran into the same problem on my ubuntu. Found out what the problem was on glob2-devel

Scons needs:

libboost-date-time
libboost-date-time-dev

But it doesnt check to see if they are installed. After installing them with apt-get it compiled.

After i did scons install i got

scons: *** Source `/usr/local/share/glob2/data/zik' not found, needed by target `install'. Stop.
scons: building terminated because of errors.

dont really know what it means but it seems to have installed since i can run the game.

Re: scons bug

Posted: Tue Mar 04, 2008 11:30 pm
by Redemptor
Thanks a lot, it works now,
it took a long time (I have an eeepc :D) but it worked
(and I've had the same problem with data/zik but it works anyway)

thanks again

problem solved ;)

Re: scons bug

Posted: Tue Mar 18, 2008 5:59 pm
by AppleBoy
Just as an update, the data/zik problem was an issue with the packaging, it's fixed in the latest mercurial branch that should be released within the next week or two (I'm really excited about it, easily over 100 bug fixes, being rolled with changes to packaging procedures, release procedures, etc. :P Not much in the way of new features, but the stability is amazing!)

libfribidi isn't actually required to compile and run Glob2. From what I can tell it was put in for Arabic language support, but I don't have it installed on my mac and everything works like a charm.

http://globulation2.org/wiki/Compiling can also help for compiling from source.

Re: scons bug

Posted: Tue Apr 08, 2008 7:57 am
by K776
As of beta3 (released soon), scons now checks for the required posix_time.hpp file needed to compile. If you still get this problem after beta3 is released, please let us know.