scons bug

Bugs should be reported at https://savannah.nongnu.org/bugs/?group=glob2
This section is read only for reference.
Locked
Redemptor
Worker
Worker
Posts: 5
Joined: Sat Mar 01, 2008 1:20 pm

scons bug

Post by Redemptor » Sun Mar 02, 2008 1:58 pm

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

Lexen
Worker
Worker
Posts: 8
Joined: Thu Feb 28, 2008 6:54 pm
Location: Grand Haven, Michigan
Contact:

Re: scons bug

Post by Lexen » Sun Mar 02, 2008 8:25 pm

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?
My Machine: Ubuntu 7.10 Gutsy Gibbon, Globulation2 Version 0.9.1

Redemptor
Worker
Worker
Posts: 5
Joined: Sat Mar 01, 2008 1:20 pm

Re: scons bug

Post by Redemptor » Mon Mar 03, 2008 10:22 am

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 ;)

izual
Posts: 1
Joined: Tue Mar 04, 2008 4:40 am

Re: scons bug

Post by izual » Tue Mar 04, 2008 4:53 am

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.

Redemptor
Worker
Worker
Posts: 5
Joined: Sat Mar 01, 2008 1:20 pm

Re: scons bug

Post by Redemptor » Tue Mar 04, 2008 11:30 pm

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 ;)

AppleBoy
Site Admin
Posts: 51
Joined: Sat Nov 26, 2005 10:23 pm

Re: scons bug

Post by AppleBoy » Tue Mar 18, 2008 5:59 pm

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.

K776
Warrior
Warrior
Posts: 61
Joined: Sat Nov 26, 2005 10:23 pm
Location: New Zealand
Contact:

Re: scons bug

Post by K776 » Tue Apr 08, 2008 7:57 am

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.

Locked