Linux static compilation

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
mjoubert
Posts: 58
Joined: 02.04.2007
With us: 17 years 7 months

Linux static compilation

Post #1by mjoubert » 20.11.2007, 14:24

Hi all,

I'm looking for an option or something like that to compile Celestia on Linux with no link to the installation path. The aim is to make the result of this compilation movable.

Example :
./configure --prefix=/as/to/be/an/absolute/path
make
make install
mv /as/to/be/an/absolute/path /another/path

/another/path/bin/celestia won't work
/another/path/bin/celestia --dir /another/path will crash

strings /another/path/bin/celestia finds 2 references to /as/to/be/an/absolute/path (probably related to the use of --with-kde).

./configure --prefix=relative/path doesn't configure.

Everyone understand that I'm looking for a self-made binary version of Celestia for Linux.

Mathieu

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

Post #2by Christophe » 20.11.2007, 21:46

Assuming you're building the KDE frontend, your /another/path needs also to be defined in the KDEDIRS variable.

This should work:

Code: Select all

KDEDIRS=$KDEDIRS:/another/path /another/path/bin/celestia -dir /another/path/share/celestia


You also have to make sure that the symbolic link /another/path/share/apps/celestia correctly points to /another/path/share/celestia

Ideally, Celestia should be able to find its data files by relying on KDEDIRS alone, like any other KDE application.
Christophe


Return to “Development”