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
Can't compile Celestia 1.3.1 with GTK (under GNU/Linux)
-
- Developer
- Posts: 944
- Joined: 18.07.2002
- With us: 22 years 4 months
- Location: Lyon (France)