Sure.
Here's what I did on my Ubuntu Raspberry Pi.
First, make sure you have all the indi dependencies from:
github.com/indilib/indi -- I didn't re-install the dependencies, so best get them from that indi github site
Also, make sure you have all the kstars dependencies from
invent.kde.org/education/kstars/-/blob/master/README.md. -- ditto
# Clone the Indi and KStars source code
mkdir -p ~/Projects;
cd ~/Projects
git clone
github.com/indilib/indi.git
git clone
github.com/indilib/indi-3rdparty.git
git clone
invent.kde.org/education/kstars.git
# Compile Indi
mkdir -p build/indi-core; cd build/indi-core
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo ~/Projects/indi
make -j4
sudo make install
# Compile Indi 3rdparty Libraries
mkdir -p ~/Projects/build/indi-3rdparty-libs
cd ~/Projects/build/indi-3rdparty-libs
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_LIBS=1 ~/Projects/indi-3rdparty
make -j4
sudo make install
# Compile Indi 3rdparty Drivers
mkdir -p ~/Projects/build/indi-3rdparty
cd ~/Projects/build/indi-3rdparty
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo ~/Projects/indi-3rdparty
make -j4
sudo make install
# Compile KStars
mkdir -p kstars-build
cd ~/Projects/kstars-build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCCACHE_SUPPORT=ON ../kstars
make -j4
# See note below before executing the below
sudo make install
Note: I don't actually install KStars (last line). I tend to keep the release installed and I run the 'from-git' KStars from the location the compiler saves to, which in the above would be ~/Projects/kstars-build/kstars/kstars