Page 1 of 1

Linux static compilation

Posted: 20.11.2007, 14:24
by mjoubert
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

Posted: 20.11.2007, 21:46
by Christophe
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.