Kstars compiling from source

ts2018 at sy-edm.com ts2018 at sy-edm.com
Wed Feb 4 05:57:53 GMT 2026


I am trying to build Kstars from Source - as I am experiencing an issue when trying to Polar Align using 3 plate solves (That is for another day)

So I am using Arch Linux - having given up with Ubuntu. 

I should also point out that I have QT installed (version 6.10.2) as a development package.

So my workflow is 

git clone kstars (etc) 
mkdir kstars/build
cd kstars/build 
./t.sh # This is my build command script which looks like this 


This is t.sh 

QT_ROOT=$(qmake6 -query QT_INSTALL_PREFIX)
echo "QT is based at $QT_ROOT"
cmake \
  -DCMAKE_PREFIX_PATH=$QT_ROOT \
  -DCMAKE_BUILD_RPATH=$QT_ROOT/lib \
  -DCMAKE_INSTALL_RPATH=$QT_ROOT/lib \
  -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE \
  -DQt6_DIR=$QT_ROOT/lib/cmake/Qt6 \
  -DBUILD_WITH_QT6=ON \
  -DQT_DEBUG_FIND_PACKAGE=ON \
  -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_INSTALL_PREFIX=/usr/local \
  -DBUILD_TESTING=OFF \
  ..


This will fail due to PIC code alignment 

To fix this please change the datahandlers/CMakeLists.txt 

And instead of only RaspberryPi using POSITION_INDEPENDENT_CODE ON 

Change to something like this 

#if (BUILD_PYKSTARS)     ● Extra spaces between 'if' and its ()
 set_target_properties(LibKSDataHandlers PROPERTIES POSITION_INDEPENDENT_CODE ON)     
#ENDIF ()    

Kstars now builds - and apart from some manual data setup. Looks Ok (I think) 

Many thanks for this great software 

  Tim 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kstars-devel/attachments/20260204/ce7bc531/attachment.htm>


More information about the Kstars-devel mailing list