×

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

Bi-monthly release with minor bug fixes and improvements

Indi Support for Bullseye 64 bit RPI4

  • Posts: 51
  • Thank you received: 4
I think there must be some confusion here. I don't actually want to build the driver for the EFW.

I want to build the driver for the cameras, and there is a section of Jasem's tutorial which suggests that it is easily done without having to build all the drivers.

I have tried to follow those instructions, but without success.

Here is my tutorial to myself based on what I understand from the site: grateful if someone could correct it where necessary.

mkdir -p ~/Projects
cd ~/Projects

BUILD INDI CORE

git clone --depth 1 github.com/indilib/indi.git

mkdir -p ~/Projects/build/indi-core
cd ~/Projects/build/indi-core
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi
make -j4
sudo make install



INSTALL LIBRARIES

sudo apt-get -y install libindi-dev

OR

CLONE ALL LIBS TOGETHER

git clone --depth=1 github.com/indilib/indi-3rdparty

INSTALL ALL LIBS

1 MAKE DIRECTORY WHERE TO BUILD

mkdir -p ~/Projects/build/indi-3rdparty-libs

2 CHANGE INTO BUILD DIRECTORY

cd ~/Projects/build/indi-3rdparty-libs

3 CALL BINARIES FROM CLONEINTO BUILD DIRECTORY, BUILD AND INSTALL

cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DBUILD_LIBS=1 ~/Projects/indi-3rdparty-libs
make -j4
sudo make install


CLONE LIBS BY LIST

git clone --depth=1 github.com/indilib/indi-3rdparty

sudo apt-get -y install [ANY OF] [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]

INSTALL SINGLE LIB

1 MAKE DIRECTORY WHERE TO BUILD

mkdir -p ~/Projects/build/lib[DEVICE]

2 CHANGE INTO BUILD DIRECTORY

cd ~/Projects/build/lib[DEVICE]

3 CALL BINARIES FROM CLONE INTO BUILD DIRECTORY, BUILD AND INSTALL

cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DBUILD_LIBS=1 ~/Projects/indi-3rdparty/lib[DEVICE]
make -j4
sudo make install

INSTALL SINGLE DRIVER

MAKE DIRECTORY WHERE TO BUILD
mkdir -p ~/Projects/build/indi-[DRIVER]

CHANGE TO BUILD DIRECTORY
cd ~/Projects/build/indi-[DRIVER]

CALL BINARIES INTO BUILD DIRECTORY, MAKE AND INSTALL
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-3rdparty/indi-[DRIVER]
make -j4
sudo make install

With many thanks

R
2 years 1 month ago #80434

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

  • Posts: 349
  • Thank you received: 107
My last post was reaction to David Diaz.

You are trying to build and install single driver. This is not supported and can lead to whole lot of breakage and incompatibilities and bugs. Compile and install everything. INDI core, indi 3rd party libs and then 3rd party drivers. As described in README on github,
2 years 1 month ago #80440

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

  • Posts: 46
  • Thank you received: 4
All,

I am the OP on this thread and by no means have all the knowledge being displayed here by some.  I do echo David's comment about seeking a "final" version blessed by INDI (so to speak) for installing the full package of drivers, etc, on a 64 Bit Pi OS (Ubuntu, Bullseye, etc.) ..  I know a lot of this is through contribution by others but, while I understand a lot of the steps for example by Richard above, I just would hope that given the need, that there's a final version all could use?  I have no problem following the steps, but a build script sure would be nice..

If Stellarmate's 64 bit solution is working, have they cracked the code and made a ready for prime time solution?  I don't know which OS variant they're using off the top of my head..

Appreciate all the efforts!!!

Jay S.
The following user(s) said Thank You: David Diaz
2 years 1 month ago #80449

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

  • Posts: 46
  • Thank you received: 4
Jasem..

Are you saying following both those links will install everything needed to install INDI/EKOS/KSTARS, etc. and have the results ready to have PHD2 running as well?  I think that's what some are requesting?  The link also takes you "half way" down the instruction list vs. starting at the top..  I wasn't sure if that was the "actual" starting point for getting it installed..

Thanks..
Jay S.
2 years 1 month ago #80450

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

  • Posts: 51
  • Thank you received: 4
@ Jay S - absolutely second that plea for a simple install of all working drivers.

@ nou = I have in some despair and despite the clear indications in the README's that single driver installation is not only possible but preferable, attempted to build all the drivers, after installing Indi-Core and all the prerequsites, The build fails with numerous requests to install individual drivers again before attempting to make. There are no instrucfions as to how to install anything before make.

None of these failed drivers are required for anything I want to use.

Again, can I request some assistance in building one or two single drivers, with associated libraries, and installing. Jasem said 'its not complicated' and referred again to his README tutorials, These are complicated by addressing in parallel (apparently) different ways of building the libraries, so that no one method is laid out end to end. For instance, it is not clear whether there is actually a requirement for Iibindi-dev, or whether this is an extra (purpose not specified) or whether it is a useful short-cut when installing a single driver. There is even a suggestion in this thread that that is the only library which is required for building all the drivers.

To a newbie, this is complicated, and I agree it should not be.

It would be extremely helpful if someone could lay out all the steps, from absolute zero, necessary to install one driver and associated libraries. I don't expect this to require only one library. IF (to anticipate an objection) the libraries required depend on what sort of driver is to be installed, then of course it makes sense to install all of them. Or (for instance, I am making this up) to install a camera driver it may always be necessary to install gphoto. But not for a mount. Etc..

AND, as a Debian (Raspberry OS) user, it would be even more helpful if all these could be installed with sudo apt-get.

Yours in hope ....

Tks

R
The following user(s) said Thank You: Jay Sottolano, David Diaz
2 years 1 month ago #80451

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

  • Posts: 12
  • Thank you received: 0
Hi Richard,

RE: your post #80320 above, this section:

$ ~/Projects/build/libasi $ mkdir -p ~/Projects/build/indi-asi
$ ~/Projects/build/libasi $ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-3rdparty/indi-asi
CMake Error: The source "/home/pi/Projects/indi-3rdparty/indi-asi/CMakeLists.txt" does not match the source "/home/pi/Projects/indi-3rdparty/libasi/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.

It seems you are trying to use the build directory you used (successfully...) for libasi to also make indi-asi.  Did you neglect to 'cd ~/Projects/build/indi-asi' after you created the directory in the first command, there?
2 years 1 month ago #80453

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

  • Posts: 349
  • Thank you received: 107
I downloaded this image downloads.raspberrypi.org/raspios_arm64/...s-bullseye-arm64.zip
Then run my scripts install-dependencies.sh and then build-soft-stable.sh from gitea.nouspiro.space/nou/astro-soft-build and got working INDI and KStars.
So try start clean by writing that image again to SD card and just download my scripts and try to run them. Don't add additional PPA my scripts should install whole INDI and KStars.
The following user(s) said Thank You: Alan Archer, Bernd Limburg, Rafa Barberá, Val Chevalier
Last edit: 2 years 1 month ago by nou.
2 years 1 month ago #80465

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

  • Posts: 51
  • Thank you received: 4
Thanks to both Tim and Nou.

I may have failed to change to the correct build directory. I tried again and this time got build errors relating to various properties not being defined or declared. I have the whole output if anyone is interested.

Then looked inside the repository, found indi-asi folder and the readme.md inside it which gave instructions for building the driver by itself. Tried these, they gave the same / similar errors.

So now I will try the scripts to which Nou refers, however, I will not be doing this on a clean image, because I have a pile of other things installed including CdCiel/CCDCiel, ASTAP (thanks to HAN who has recompiled this to work with Raspberry64 - see his Sourceforge page) and so forth.

Will get back here when I have tried this.

Best

R
2 years 1 month ago #80470

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

  • Posts: 46
  • Thank you received: 4
Nou,

Many thanks..  I just did a fresh 64 bit build last night and am at the latest (with updates) from the Raspberry Pi site.. Will try running the scripts today.  Which is "better". Stable or latest?  The Latest mentions auto-detect of cores?  Will let everyone know how it goes.  SkyX and SkyX LTI 64 bit are already installed..

Jay S.
2 years 1 month ago #80471

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

  • Posts: 51
  • Thank you received: 4
I haven't met an html bash script before. I have downloaded the scripts and attempted to run with ./ from the download location.

How do I do this on the pi? My researches only find links advising how to place html links on a web-server. I have Firefox installed but no objection to installing Chromium.

Tks

R
2 years 1 month ago #80480

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

  • Posts: 46
  • Thank you received: 4
Richard...

Did running the script from the command line in terminal not work?  I was just getting ready to try ./ as well..

Jay S.
2 years 1 month ago #80481

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

  • Posts: 349
  • Thank you received: 107
Best way to get them is clone that repository by running
git clone https://gitea.nouspiro.space/nou/astro-soft-build.git
That text is just last commit message that modified file. Both script automatically use number of cores. Stable script build last released version of INDI and KStars. I update it regullary to reflect this. You can get latest version of script by running
git pull origin
in directory with scripts.
Latest script build latest code from git repositories. This can fail as sometimes there are code error that prevent compilation or they can be unstable so use it only if you need to test really latest code.
If you just download script then you need add excutable permission to script by running
chmod +x install-dependencies.sh build-soft-latest.sh
The following user(s) said Thank You: Rafa Barberá
Last edit: 2 years 1 month ago by nou.
2 years 1 month ago #80484

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

Time to create page: 1.860 seconds