setTimeZoneBias

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
Anonymous Howard

setTimeZoneBias

Post #1by Anonymous Howard » 18.01.2004, 18:26

Sorry to repost this message here, but I got no replies in the Users forum.

I have successfully built Celestia from Linux source on Darwin. I'm using X11 and gtk for graphics, rather than Aqua.

In order to get it to build, I had to comment out a few lines in src/celestia/gtkmain.cpp that referenced daylight and/or timezone. This is because my OS has no daylight or timezone variables. Lines like the following:

Code: Select all

appCore->setTimeZoneBias(-timezone + 3600 * daylight);
appCore->setTimeZoneName(tzname[daylight]);


My question is, What do I lose by commenting these few lines out? Celestia appears to work properly, although I have nothing to compare it to.

p.s.- FYI, I also had to hack configure, which couldn't find GL/gl.h, GL/glu.h and GL/glut.h as others have reported. Also, I'm confused as to why there are two releases of 1.3.1.

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

Post #2by Christophe » 18.01.2004, 19:06

By removing those lines I suppose you lose the local time display, that is you can only view time in UTC.

The GTK version is being ported to GTK2, so you'll hopefuly have less problems building the next version.

As for the two releases of 1.3.1, I believe the first one was missing some KDE source files, so it shouldn't matter to you.
Christophe


Return to “Development”