Page 1 of 1

Can't compile Celestia 1.3.1 with GTK (under GNU/Linux)

Posted: 15.01.2004, 11:56
by valery
Hi all,

I have got compilation errors when I try to compile Celestia1.3.1 after configuring it
like this:

./configure --with-gtk

The file gtkmain.cpp doesn't compile, because the Selection object class has been
modified: the method select() and the attributes star and body exist no longer.

Comparing with Celestia 1.3.0, I have been able to fix the problem and get
Celestia working with GTK.

Here are my modifications; I did it fast, so I don't garantee them; it works for me:

1333c1333
< browserSel.select(selStar);
---
> browserSel = Selection(selStar);
1352c1352
< browserSel.select((Star *) nearestStar);
---
> browserSel = Selection((Star *) nearestStar);
1354c1354
< browserSel.select(body);
---
> browserSel = Selection(body);
1423c1423
< browserSel.select((Star *)(*stars)[0]);
---
> browserSel = Selection((Star *)(*stars)[0]);
1517,1519c1517,1518
< tmpSel=browserSel.star;
< browserSel.star=(Star *)nearestStar;
< browserSel.body=NULL;
---
> tmpSel=(Star*)browserSel.obj;
> browserSel = Selection((Star *)nearestStar);
1522c1521
< browserSel.select((Star *)tmpSel);
---
> browserSel = Selection((Star *)tmpSel);
1532c1531
< browserSel.select((Star *)NULL);
---
> browserSel = Selection((Star *)NULL);
1587c1586
< tmpSel=browserSel.star;
---
> tmpSel=(Star*)browserSel.obj;
1670c1669
< browserSel.select((Star *)NULL);
---
> browserSel = Selection((Star *)NULL);

Cheers

Thank you!!

Posted: 15.01.2004, 21:22
by Anonymous Howard
I never would have been able to figure this out. :P

Posted: 28.01.2004, 13:36
by Guest
That means that the celestia developers do not even try to compile the gtk-version before they make a release? *NICE* :-(

Posted: 28.01.2004, 14:42
by Christophe
That's been talked about before.

Until not so long ago there wasn't a maintainer for the GTK frontend and 1.3.1 got released with no GTK testing.

The next release will feature an updated GTK2 GUI thanks to Pat Suwalski.