- SPICE is a system to combine the most accurate space geometry and event data with space mission analysis, observation planning, or science data processing software developed by NASA.
- CSPICE is the C language version of SPICE and mandatory library for S2E to get planet information.
- Note From the s2e-core v5.0.0, we provide the CMake file to download and install the external libraries and recommend to use it since it is simpler. So users do not need to execute the following process.
Note: Users can use the script file to automatically set up the following process in the s2e-core/script
directory. If the script does not work, please see the following process.
- Make directories as follow
├─ExtLibraries │ └─cspice │ ├─cspice_xxx │ │ └─lib │ ├─generic_kernels │ └─include └─s2e-core
-
xxx is depends on your compile environment
xxx = msvs
for Microsoft Visual Studioxxx = cygwin
for Cygwin gCCxxx = unix
for Linux gCC
-
Download library and compile
- Download
cspice.zip
from NAIF Toolkit, and unzip. - You need to choose a link suit with your compile environment
- Copy
include
directory intocspice
directory - Copy
lib
orlib64
directory intocspice_***
directory- VS 2019 users need to compile the library before copying the
lib
- launch following command prompt for VS2019 compile from the start menu of Windows
- 32bit:
x86 Native tools command prompt for VS2019
- 64bit:
x64 Native tools command prompt for VS2019
- 32bit:
- Move to the unzipped directory and execute
makeall.bat
- launch following command prompt for VS2019 compile from the start menu of Windows
- VS 2019 users need to compile the library before copying the
- Download
-
Download kernel files
- Download the following kernel files from NAIF Generic Kernels, and copy them to the directories
- Each kernel file can be updated for the latest one, but we have not confirmed it yet.
├─generic_kernels │ ├─lsk │ └─naif0010.tls │ ├─pck │ └─de-403-masses.tpc │ └─gm_de431.tpc │ └─pck00010.tpc │ └─spk │ └─planets │ │ └─de430.bsp
- Download the following kernel files from NAIF Generic Kernels, and copy them to the directories
Note: When you change the directory or file name, you should modify s2e-core/CMakeLists
and PlanetSelect.ini