# HOWTO: Building latest libindi & Ekos

**URL:** <https://forum.indilib.org/t/howto-building-latest-libindi-ekos/57>\
**Category:** General\
**Created:** [December 14, 2013, 10:15am UTC](https://forum.indilib.org/t/howto-building-latest-libindi-ekos/57 "2013-12-14T10:15:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![knro](https://forum.indilib.org/user_avatar/forum.indilib.org/knro/32/64_2.png) [@knro](https://forum.indilib.org/u/knro)\
**Post date:** [December 14, 2013, 10:15am UTC](https://forum.indilib.org/t/howto-building-latest-libindi-ekos/57/1 "2013-12-14T10:15:33Z")

</div>

The following instructions are only applicable to desktop Linux. For Raspberry PI, [download the daily-built Raspberry PI package](http://www.indilib.org/download/raspberry-pi.html).

1. Ubuntu

Packages are already available for Ubuntu 16.04 or newer ONLY as Ekos now depends on KDE Frameworks 5.10+:

Ubuntu 16.04+: x86, x64, and ARMHF versions avaiable:

```auto
$ sudo apt-add-repository ppa:mutlaqja/ppa
$ sudo apt-get update
```

If you have Ubuntu 16.04 or higher, you can install kstars-bleeding which will install KStars, Ekos, libindi, and all 3rd party drivers.

```auto
$ sudo apt-get -y install kstars-bleeding indi-bin indi-full
```

It is highly recommended to install the debug symbols as well to help diagnosing any issues with KStars/Ekos

```auto
$ sudo apt-get install -y kstars-bleeding-dbg indi-dbg
```

_If you plan to use the CCD Simulator, you should download the General Star Catalog (GSC) as it is used to generate the simulated star maps_

```auto
$ sudo apt-get install gsc
```

2. Building INDI from Source

To build libindi, first install the following packages:

```auto
$ sudo apt-get -y install libnova-dev libcfitsio-dev libusb-1.0-0-dev zlib1g-dev libgsl-dev build-essential cmake git libjpeg-dev libcurl4-gnutls-dev libtheora-dev libfftw3-dev
```

Now that all the prerequisites are installed, you are ready to build libindi:

```auto
mkdir -p ~/Projects/build/indi-core
cd ~/Projects
git clone --depth=1 https://github.com/indilib/indi.git
cd build/indi-core
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:

```auto
sudo apt-get -y install libnova-dev libcfitsio-dev libusb-1.0-0-dev zlib1g-dev libgsl-dev build-essential cmake git libjpeg-dev libcurl4-gnutls-dev libtiff-dev libfftw3-dev libftdi-dev libgps-dev libraw-dev libdc1394-22-dev libgphoto2-dev libboost-dev libboost-regex-dev librtlsdr-dev liblimesuite-dev libftdi1-dev libavcodec-dev libavdevice-dev
```

After installation of the packages is complete, then:

```auto
cd ~/Projects
git clone --depth=1 https://github.com/indilib/indi-3rdparty.git
mkdir -p build/indi-eqmod
cd 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:

> [@](#):
>
> sudo apt-get -y install build-essential cmake git libeigen3-dev libcfitsio-dev zlib1g-dev libindi-dev extra-cmake-modules libkf5plotting-dev libqt5svg5-dev libkf5xmlgui-dev kio-dev kinit-dev libkf5newstuff-dev kdoctools-dev libkf5notifications-dev qtdeclarative5-dev libkf5crash-dev gettext libnova-dev libgsl-dev libraw-dev libkf5notifyconfig-dev wcslib-dev libqt5websockets5-dev xplanet xplanet-images qt5keychain-dev libsecret-1-dev breeze-icon-theme

Now that all the prerequisites are installed, you are ready to build KStars:

```auto
$ 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
$ make
$ 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.
