I have created a git repository for a shell script to clone and build Kstars/indi from their respective source-code git repositories.
This was based off of information kindly provided by Hy Murveit earlier on the forum.
Please see the github repository for more information... github.com/JerryBlack/buildKstarsNightlyFromGit
The script may be executed with one of these parameter options:
all - run everything
dependencies - install the dependencies
clone - clone the repositories
update - update the repositories \(git pull\)
stellarsolver - clone and install stellarsolver
indicore - compile and install indi-core
indi3rdpartylibs - compile and install indi-3rdparty-libs
indi3rdparty - compile and install indi-3rdparty
kstars - compile kstars
help - describe the parmeter options (sic).
Thanks for your script Jerry, it will surely make building the KStars/Ekos/Indilib suite much simpler. Great idea!
If I may ask, would it be possible to add a "-DBUILD_TESTING=OFF" cmake option to the KStars build as building for smaller machines (Raspi, ODroid...) tends to fail when it gets to the KStars test suite, and they may not be necessary for those running Raspi or ODroid?
I will add it to my version of the script but others may benefit from this option as well.
I noticed that you specify a "-j3" option when making, is that so that it can 'make' the software without failing on the ODroid N2? I had tried "-j4" on the C4 and make failed before completion so I reverted back to "-j2".
make -jX specifies how many concurrent jobs (X) make is going to start. This speeds up compilation at the expense of more resource needs (esp. memory). The smaller the machine, the smaller the X should be. E.g. on a Raspi 3b, the defaults leads to out of memory kills and hangs in kstars compilation. I am currently retrying with -j1...
yes, as described above by Grimaldi, it depends on the machine. On my 4G Odroid, with 2 G zram, there are a couple of groups of files which won't compile in parallel in the build with -j4, but everything compiles with -j3 for me.
Just tried running your script on my testbed RPi3b using the - all option, It took quite a few hours BUT everything went well until Part 7 the kstars compile. It failed because it could not find eigen3. After doing a manual apt-get install again for libeigen3-dev and doing only the kstars compile all went well.
Kstars worked and Ekos was there --- YIPPEE. __
Big thank you for sorting this.
I will now run it on my main system using a RPi4 with ssd.