Building indilib and 3rd. party add-ons. In my case:
indi-eqmod
indi-asi
indi-gphoto
Building INDI from Source
Prerequisites
---
$ 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
---
Build indilib
---
mkdir -p ~/Projects/build/indi-core
cd ~/Projects
git clone --depth=1 https://github.com/indilib/indi.git
cd build/indi-core
cd build/indi-core
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi
make
make
sudo make install
---
To update the libindi source code in the future, go to the libindi source directory (e.g. ~/Projects/indi-core) and type git pull. After the code is updated, go to the build/libindi directory and run sudo make install.
---
Building 3rd party INDI drivers
Some INDI drivers are only available as 3rd party modules (e.g. EQMod and the camera drivers).
Get the 3rd. Party source:
cd ~/Projects
git clone --depth=1 https://github.com/indilib/indi-3rdparty.git
---
This example builds indi-eqmod
---
To update the libindi source code in the future, go to the libindi source directory (e.g. ~/Projects/indi-core) and type git pull. After the code is updated, go to the build/libindi directory and run sudo make install.
---
Building 3rd party INDI drivers
Some INDI drivers are only available as 3rd party modules (e.g. EQMod and the camera drivers).
Get the 3rd. Party source:
cd ~/Projects
git clone --depth=1 https://github.com/indilib/indi-3rdparty.git
---
This example builds indi-eqmod
mkdir -p build/indi-eqmod
cd build/indi-eqmod
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-3rdparty/indi-eqmod
make
sudo make install
---
Next, build any libraries you need.(especially is there's a new SDK for your camera or whatever) e.g. libasi
mkdir -p build/libasi
cd build/libasi
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-3rdparty/libasi
make
sudo make install
---
The SDK lives at /usr/lib/x86_64-linux-gnu, so we can have a look. Here, 0715 was replaced by 1108:
/usr/lib/x86_64-linux-gnu$ ls -la libASI*
lrwxrwxrwx 1 root root 18 nov 23 17:07 libASICamera2.so -> libASICamera2.so.1
lrwxrwxrwx 1 root root 26 nov 23 17:07 libASICamera2.so.1 -> libASICamera2.so.1.14.1108
-rw-r--r-- 1 root root 1628840 nov 7 17:28 libASICamera2.so.1.14.0715
-rw-r--r-- 1 root root 1959460 nov 23 17:07 libASICamera2.so.1.14.1108