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

Report bugs, bug fixes, and workarounds here.

Moderator: selden

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

Postby valery on Thu Jan 15, 2004 4:56 am

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
valery
 

Thank you!!

Postby Anonymous Howard on Thu Jan 15, 2004 2:22 pm

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

Postby Guest on Wed Jan 28, 2004 6:36 am

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

Postby Christophe on Wed Jan 28, 2004 7:42 am

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
Christophe
 
Posts: 945
Joined: Thu Jul 18, 2002 1:13 pm
Location: Lyon (France)


Return to Celestia Bugs

Who is online

Users browsing this forum: No registered users and 2 guests