Page 1 of 1

[SOLVED] Problem compiling under Ubuntu 7.10

Posted: 11.02.2008, 16:32
by Fightspit
Hi everybody,

I am trying to compile Celestia from the SVN (svn co https://celestia.svn.sourceforge.net/sv ... stia/trunk celestia ) but I get an error after writing ./configure --with-gnome:

Code: Select all

francois@francois-laptop:~/Bureau/celestia$ ./configure --with-gnome
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
./configure: line 2008: syntax error near unexpected token `-Wno-portability'
./configure: line 2008: `AM_INIT_AUTOMAKE(-Wno-portability)'

The last version is 4110 (it shows when you write svn up in the console).

So ?

Posted: 11.02.2008, 21:09
by cartrite
When I ran autoreconf -iv and then ran ./configure --with-gnome I didn't get any configure errors with Suse 10.2.
I didn't get any configure errors after running make -f Makefile.cvs and then./configure --with-gnome so I'm not sure what could be going wrong.
I used the same svn version as you.
cartrite

Posted: 11.02.2008, 21:14
by Fightspit
Thanks cartrite :!:

I run as you said autoreconf -iv then ./configure --with-gnome
and it works :!:

Posted: 11.02.2008, 21:40
by cartrite
May I ask, How did you get a configure script to run before you ran autoreconf -iv? I don't think there is one in the svn folder. You have to generate it somehow.
cartrite

Posted: 12.02.2008, 12:20
by Fightspit
I remember I ran autoconf before writing ./configure --with-gnome but I think I couldn't compile because I didn't add the options -iv after autoconf. Just write autoconf is not enough probably.

Posted: 14.02.2008, 17:58
by eras
Hi to everything, before to nothing sorry for my bad english, i tested the 4110 and 4117 svn version and i have a problem when i compile at kde, the error message that i have its the next.

Code: Select all

/usr/include/QtCore/QVariant:584: error: expected initializer before ?€?operator?€™
In file included from /usr/include/kfilemetainfo.h:24,
                 from celsplashscreen.h:26,
                 from celsplashscreen.moc.cpp:11:
/usr/include/predicateproperties.h:26: error: expected constructor, destructor,
or type conversion before ?€?class?€™
/usr/include/predicateproperties.h:77: error: ?€?Type?€™ in class ?€?QVariant?€™ does no
t name a type
/usr/include/predicateproperties.h:86: error: expected ?€?;?€™ before ?€?*?€™ token
In file included from celsplashscreen.h:26,
                 from celsplashscreen.moc.cpp:11:
/usr/include/kfilemetainfo.h:89: error: ?€?WhatFlags?€™ has not been declared
/usr/include/kfilemetainfo.h:95: error: expected ?€?;?€™ before ?€?explicit?€™
/usr/include/kfilemetainfo.h:125: error: expected ?€?;?€™ before ?€?<?€™ token
/usr/include/kfilemetainfo.h:156: error: expected constructor, destructor, or ty                              pe conversion before ?€?(?€™ token
make[5]: *** [celsplashscreen.moc.o] Error 1
make[5]: Leaving directory `/root/celestia_svn/celestia4117/celestia/src/celesti                              a/kde'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/root/celestia_svn/celestia4117/celestia/src/celesti                              a/kde'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/celestia_svn/celestia4117/celestia/src/celesti                              a'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/celestia_svn/celestia4117/celestia/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/celestia_svn/celestia4117/celestia'
make: *** [all] Error 2


What i need to can compile celestia with kde?

i tested with gnome and here no have problem, all run correctly.

my system its a:

pemtium 4 ht 3 Ghz
nvidia geforce mx 4000 128 Mb ddr agp
512 Mb ram
Opensuse 10.3 updated


thanks and y hope a help,

Posted: 14.02.2008, 18:42
by cartrite
I did hear about problems compiling with open SUSE 10.3 but I was not affected ( I use openSUSE 10.2 ) and I'm not sure what was going on. These problems may have been fixed. The latest svn version is 4123. Try updating your svn copy to 4123.
cartrite

Posted: 14.02.2008, 19:10
by t00fri
No problems to compile svn 4123 with SuSE 10.3 and KDE, gnome and gtk.

F.

Posted: 14.02.2008, 20:13
by eras
no i have the same error with kde. thanks, i test moore times.

Posted: 14.02.2008, 22:55
by cartrite
eras wrote:In file included from /usr/include/kfilemetainfo.h:24,
from celsplashscreen.h:26,
from celsplashscreen.moc.cpp:11:
/usr/include/predicateproperties.h:26: error: expected constructor, destructor,
I think the kde includes are in /opt/kde3/include not /usr/include.
You need to set the KDE_INCLUDES variable to point to the right place. This can probably be done on the ./configure line but I'm not sure of the exact syntax.
EDIT
******************************************
But it looks like the file kfilemetainfo.h is found in usr/include on your system. My version of that file is in opt/kde3/include. Maybe something changed in SUSE 10.3? Weird. Maybe Fridger can help you.
cartrite