Now that all the prerequisites are installed, you are ready to build libindi:
mkdir -p ~/Projects/build/indi-core
git clone --depth=1 https://github.com/indilib/indi.git
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi
sudo make install
To update the libindi source code in the future, just go libindi source directory (e.g. ~/Projects/libindi) and type git pull. After the code is updated, go to the build/libindi directory and run sudo make install.
3. Building 3rd party INDI drivers
Some INDI drivers are only available as 3rd party modules (such as EQMod and all CCD drivers). To build and install 3rd party drivers:
After installation of the packages is complete, then:
git clone --depth=1 https://github.com/indilib/indi-3rdparty.git
mkdir -p build/indi-eqmod
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-3rdparty/indi-eqmod
Then follow the detailed instructions in README.
4. Building KStars from Source
Assuming you built and installed libindi as instructed above, you can proceed to build KStars from source. You need to install the following packages:
Now that all the prerequisites are installed, you are ready to build KStars:
$ mkdir ~/Projects/build/kstars
$ cd ~/Projects
$ git clone git://anongit.kde.org/kstars.git
$ cd build/kstars
$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/kstars
$ sudo make install
To update the KStars source code in the future, just go KStars source directory (~/Projects/kstars) and type git pull. After the code is updated, go to the build/kstars directory and run sudo make install.