Page 1 of 1

Building from a git checkout

Posted: 05.11.2022, 16:14
by jpellegrini
Hello,

I was trying to build Celestia from a git checkout, following the instructions in INSTALL.md.

What I did was this:

Code: Select all

git clone https://github.com/CelestiaProject/Celestia.git
cd Celestia
git submodule update -init
mkdir build
cd build
cmake ..  -DENABLE_DATA=ON
make
sudo make install


But this ends the cmake configuration step with the warning:

Code: Select all

CMake Warning:
  Manually-specified variables were not used by the project:

    ENABLE_DATA


and after installing, if I try to run celestia, it doesn't start, complaining that it cannot read the star database.
I understand that it needs a file data/stars.dat (either in /usr/local/share or in my homedir somehow), but it doesn't seem to be anywhere.

Did I do something wrong when trying to install? Or is there something missing in the installation instructions?

Thanks a lot!

Posted: 06.11.2022, 01:03
by TheLostProbe
jpellegrini wrote:I understand that it needs a file data/stars.dat (either in /usr/local/share or in my homedir somehow), but it doesn't seem to be anywhere.
the data files for celestia can be obtained from the CelestiaContent repository

Posted: 06.11.2022, 01:32
by jpellegrini
the data files for celestia can be obtained from the CelestiaContent repository

Ah, that makes sense. Thank you!

Posted: 06.11.2022, 20:56
by ajtribick
There are scripts (UpdateContent.ps1 and updatecontent.sh - pick whichever is more convenient on your OS) in the support subfolder that will download the latest version of the CelestiaContent repository into the content subdirectory.