In e.g. ~/
git clone https://github.com/rlancaste/stellarsolver.git
cd stellarsolver
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ../
make && sudo make install
If there are kstars cmake library errors e.g.
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/StellarSolver/StellarSolverConfig
.cmake:89 (message):
The imported target "StellarSolver::stellarsolver" references the file
"/usr/lib/x86_64-linux-gnu/libstellarsolver.so.1.6"
but this file does not exist.
link the library to whichever version they want in this case 1.6
sudo ln -s libstellarsolver.so.1.8 libstellarsolver.so.1.6
to get something like this in /usr/lib/x86_64-linux-gnu/
ls -l libstellar*
lrwxrwxrwx 1 root root 21 nov 19 2020 libstellarsolver.so -> libstellarsol
ver.so.1
lrwxrwxrwx 1 root root 23 nov 11 13:45 libstellarsolver.so.1 -> libstellars
olver.so.1.8
lrwxrwxrwx 1 root root 23 ene 11 11:51 libstellarsolver.so.1.6 -> libstella
rsolver.so.1.8
-rw-r--r-- 1 root root 6197920 ene 11 11:46 libstellarsolver.so.1.8
Problems
cd stellarsolver
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ../
make && sudo make install
If there are kstars cmake library errors e.g.
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/StellarSolver/StellarSolverConfig
.cmake:89 (message):
The imported target "StellarSolver::stellarsolver" references the file
"/usr/lib/x86_64-linux-gnu/libstellarsolver.so.1.6"
but this file does not exist.
link the library to whichever version they want in this case 1.6
sudo ln -s libstellarsolver.so.1.8 libstellarsolver.so.1.6
to get something like this in /usr/lib/x86_64-linux-gnu/
ls -l libstellar*
lrwxrwxrwx 1 root root 21 nov 19 2020 libstellarsolver.so -> libstellarsol
ver.so.1
lrwxrwxrwx 1 root root 23 nov 11 13:45 libstellarsolver.so.1 -> libstellars
olver.so.1.8
lrwxrwxrwx 1 root root 23 ene 11 11:51 libstellarsolver.so.1.6 -> libstella
rsolver.so.1.8
-rw-r--r-- 1 root root 6197920 ene 11 11:46 libstellarsolver.so.1.8
Problems
If kstars cmake throws an error:
sudo rm -r /usr/lib/x86_64-linux-gnu/cmake/Stellarsolvermake install
in the Stellarsolver build folder
No hay comentarios:
Publicar un comentario