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

Report bugs, bug fixes and workarounds here.
Topic author
valery

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

Post #1by valery » 15.01.2004, 11:56

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

Anonymous Howard

Thank you!!

Post #2by Anonymous Howard » 15.01.2004, 21:22

I never would have been able to figure this out. :P

Guest

Post #3by Guest » 28.01.2004, 13:36

That means that the celestia developers do not even try to compile the gtk-version before they make a release? *NICE* :-(

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 4 months
Location: Lyon (France)

Post #4by Christophe » 28.01.2004, 14:42

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.
Christophe


Return to “Bugs”