×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Build Kstars Nightly from Git

  • Posts: 460
  • Thank you received: 69
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
  Jerry
 
The following user(s) said Thank You: Gilles Gagnon, David Thompson, ouioui01, Grimaldi
Last edit: 2 years 9 months ago by Jerry Black.
2 years 9 months ago #71737

Please Log in or Create an account to join the conversation.

  • Posts: 294
  • Thank you received: 54
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.

Thanks again.
2 years 9 months ago #71744

Please Log in or Create an account to join the conversation.

  • Posts: 294
  • Thank you received: 54
Hello again Jerry,

I just ran your script on my laptop, with "-DBUILD_TESTING=OFF" added to the KStars cmake, and everything went fine. Great job! I will try it on my ODroid next.

Thanks again.
2 years 9 months ago #71745

Please Log in or Create an account to join the conversation.

  • Posts: 460
  • Thank you received: 69
OK, I think I've successfully updated my git library github.com/JerryBlack/buildKstarsNightlyFromGit to add  -DBUILD_TESTING=OFF as the default for the cmake calls.
Cheers
The following user(s) said Thank You: Gilles Gagnon
2 years 9 months ago #71746

Please Log in or Create an account to join the conversation.

  • Posts: 104
  • Thank you received: 21
Hi today, I started trying to compile on Astroberry/ RPi 3b and I had to install in addition:
libftdi1-dev
libdc1394-22-dev
libeigen3-dev

Can you add that to the build dependencies, or do you want a pull request?
Last edit: 2 years 9 months ago by Grimaldi.
2 years 9 months ago #71928

Please Log in or Create an account to join the conversation.

  • Posts: 460
  • Thank you received: 69
OK, thanks. I think I've added those just now.
The following user(s) said Thank You: David Thompson
2 years 9 months ago #71929

Please Log in or Create an account to join the conversation.

  • Posts: 294
  • Thank you received: 54
Hi Jerry,

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".

Thanks.
2 years 9 months ago #71930

Please Log in or Create an account to join the conversation.

  • Posts: 104
  • Thank you received: 21
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...
The following user(s) said Thank You: David Thompson
Last edit: 2 years 9 months ago by Grimaldi.
2 years 9 months ago #71931

Please Log in or Create an account to join the conversation.

  • Posts: 460
  • Thank you received: 69
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.
Last edit: 2 years 9 months ago by Jerry Black.
2 years 9 months ago #71934

Please Log in or Create an account to join the conversation.

  • Posts: 69
  • Thank you received: 5
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.
Last edit: 2 years 9 months ago by David Thompson.
2 years 9 months ago #71954

Please Log in or Create an account to join the conversation.

  • Posts: 460
  • Thank you received: 69
OK, thanks for reporting this. I may have fixed this during your compile run.
github.com/JerryBlack/buildKstarsNightly...b708a8114ca84c4d3de7

In addition, a subsequent update also set the -j3 compile option to be configured via a script variable.

Cheers
The following user(s) said Thank You: David Thompson
2 years 9 months ago #71956

Please Log in or Create an account to join the conversation.

  • Posts: 69
  • Thank you received: 5
Just ran the full script on my RPi4 running the latest Raspbian (PiOS). It worked perfectly.

The script is a great way of keeping up to date.
2 years 9 months ago #71973

Please Log in or Create an account to join the conversation.

Time to create page: 0.307 seconds