Celestia/Development/Linux platform

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search

Contents

[edit] Getting source from SVN

Use your favorite Subversion client program to download Celestia from SourceForge. If you're using the command line svn client, use the following command line to update your local Celestia development directory:

svn co https://celestia.svn.sourceforge.net/svnroot/celestia/trunk dir_name

You may use "dir_name" for downloading directory name such as celestia. The default directory name is trunk if "dir_name" is omitted.

[edit] Basic installation steps

First, change directory with "cd dir_name/celestia" and type

autoreconf -iv

If this step does not succeed, make sure the following packages are installed (names shown for SuSE 10.2):

  • gconf2-devel
  • gettext-devel

For Ubuntu, the following basic build tools should be installed

  • build-essential
  • automake

In addition, dependent packages are also installed for Ubuntu:

sudo apt-get build-dep celestia

After the make ran through successfully, type

./configure

to get the list of available frontends and choose the one appropriate for you. Also, decide if you want to compile "--with-lua" and/or with "--enable-theora", Celestia itself runs fine without them, but some Addons use Lua.

Type

./configure --help

to see a list other compile options you might want to enable/disable.

Now, configure the build tree with the following commands:

./configure --with-frontend <other options>

To finally build celestia and install it, type:

make
sudo make install

[edit] Packages needed

At the first installation, configure probably will complain about missing packages. Install and repeat.

For OpenSuse 10.2, at least the following packages have to be installed:

  • freeglut-devel
  • qt3-devel
  • kdebase3-devel

[edit] Directory Layout

The executable will be installed in

/usr/local/bin/celestia

the data directory is located in

/usr/local/share/celestia/

or whatever your --prefix-option of configure pointed to.

[edit] References

The basic information how to install Celestia under Linux was obtained from this thread in the celestia forums: http://shatters.net/forum/viewtopic.php?t=11055