×
INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

update for INDI drivers for Raspberry Pi

3 months 1 week ago
han.k
Expert Boarder
Expert Boarder
Posts: 111
Karma: 5
More
Topic Author
update for INDI drivers for Raspberry Pi #40714
My Pi4 will arrive mid July, but in preparation for some testing, I already installed the new Raspbian Buster (Debian 32 bit) on my Pi3:

I installed the INDI drivers from:

indilib.org/download/raspberry-pi.html

This works well but INDI drivers are from last year, version 1.7.4

Is it possible to create an archive with .deb installers with the latest INDI version which will install both on Stretch/Buster?

Thanks in advance, Han

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

3 months 1 week ago
AstroNerd
Moderator
Moderator
Posts: 605
Karma: 1
More
update for INDI drivers for Raspberry Pi #40720

han.k wrote: My Pi4 will arrive mid July, but in preparation for some testing, I already installed the new Raspbian Buster (Debian 32 bit) on my Pi3:

I installed the INDI drivers from:

indilib.org/download/raspberry-pi.html

This works well but INDI drivers are from last year, version 1.7.4

Is it possible to create an archive with .deb installers with the latest INDI version which will install both on Stretch/Buster?

Thanks in advance, Han


Just compile the latest from git hub... :)

Stellarmate OS BETA on Raspberry pi4b
Skywatcher EQ8 pro
Meade series 5000 80mm triplet Apo & Meade 8” SCT (de-forked)
Starlight Xpress SXVR H18, SXVR M25c, Lodestar Guide Camera
Pegasus Ultimate Hub for all USB & Power
Pegasus focus motors on both scopes

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

3 months 1 week ago
Copello
Senior Boarder
Senior Boarder
Posts: 49
Karma: 1
More
update for INDI drivers for Raspberry Pi #40721
Building Debian packages for Buster from master is unfortunately not that simple, also when you:
apt source libindi*
and then copy the Debian directories to git master, does not give the desired result.
Probably it is indeed much simpler to compile from master, or checkout a certain tag version and compile. I use the following simple
bash script
indibuild.sh
in git master:
#!/bin/bash

declare -a INDI_DRIVERS=( indi-gphoto libatik indi-atik indi-asi indi-eqmod indi-gpsd )

MAIN_PATH=$(pwd)
INSTALL_PREFIX=/usr

# Cleanup build directories.
rm -rf ${MAIN_PATH}/build

# Create build directories.
mkdir -p ${MAIN_PATH}/build/libindi
for i in "${INDI_DRIVERS[@]}"
do
    mkdir -p ${MAIN_PATH}/build/3rdparty/${i}
done

# Build libindi.
cd ${MAIN_PATH}/build/libindi
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} ../../libindi && make -j4 && sudo make install

# Build desired indi drivers.
for i in "${INDI_DRIVERS[@]}"
do
    cd ${MAIN_PATH}/build/3rdparty/${i}
    cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} ${MAIN_PATH}/3rdparty/${i} && make -j4 && sudo make install
done

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

3 months 1 week ago 3 months 1 week ago by han.k.
han.k
Expert Boarder
Expert Boarder
Posts: 111
Karma: 5
More
Topic Author
update for INDI drivers for Raspberry Pi #40727
Hello Copello,

Thanks for the script. Looks very useful.

I have followed the instructions in the README.md contained in the Github indi-1.7.9 library. Installed all dependencies as indicated.
Tried to compile one third party driver indi-eqmod
Then it is asking for "libnova". Installed that one.
Then it is complaining about GSL (Missing_include_DIR_Library GSL_Cblas_Library)

I give up for the moment.

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

3 months 1 week ago
Copello
Senior Boarder
Senior Boarder
Posts: 49
Karma: 1
More
update for INDI drivers for Raspberry Pi #40732
There is no need to check by hand which dependencies need to be installed. Just type:
sudo apt-get build-dep libindi-data libindi-dev libindi-plugins libindialignmentdriver1

and it will install are the required/depended packages for compiling these packages from source.
So for instance when I want to compile VIM editor my self I would do:
>sudo apt-get build-dep vim    
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  cscope docbook-dsssl docbook-utils liblua5.2-dev libosp5 libostyle1c2 libperl-dev libtool-bin lua5.2 openjade opensp pdf2svg tcl-dev tcl8.6-dev texlive-formats-extra
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.8 MB of archives.
After this operation, 56.4 MB of additional disk space will be used.
Do you want to continue? [Y/n]

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

3 months 1 week ago
han.k
Expert Boarder
Expert Boarder
Posts: 111
Karma: 5
More
Topic Author
update for INDI drivers for Raspberry Pi #40735
The command line doesn't work. I have downloaded the complete indi 1.7.9 but I could not find the files libindi-data libindi-dev libindi-plugins

Lets concentrate first on ./3rdparty/indi-eqmod Looking to your example "sudo apt-get build-dep vim", I assume it should be something like

@raspberrypi:~/Downloads/indibuild/indi-1.7.9 $ sudo apt-get build-dep ./3rdparty/indi-eqmod
E: Unsupported file ./3rdparty/indi-eqmod given on commandline
E: Must specify at least one package to check builddeps for

or

pi@raspberrypi:~/Downloads/indibuild/indi-1.7.9 $ sudo apt-get build-dep ./3rdparty/indi-eqmod/eqmod
E: Unsupported file ./3rdparty/indi-eqmod/eqmod given on commandline
E: Must specify at least one package to check builddeps for


How do i get build-dep working for eqmod?

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

3 months 1 week ago
Copello
Senior Boarder
Senior Boarder
Posts: 49
Karma: 1
More
update for INDI drivers for Raspberry Pi #40737
One does not have to concentrate here on anything, but rather use logical reasoning:
>apt-get build-dep
E: Must specify at least one package to check builddeps for

Does exist on Debian Buster (Raspbian) an eq-mod INDI package?
Answer no, so obviously "build-dep" works on shipped Debian packages only.
Please visit libindidriver1 and other
packages to see the dependencies,e.g.:

search libindi

One can observe that e.g. libgphoto2-dev is not in the dependency,
because Debian maintainer are building the packages in a different way. However,
e.g. libindi-plugins has dependency list:


dep: libc6 (>= 2.17) [arm64, ppc64el]
        GNU C Library: Shared libraries
        also a virtual package provided by libc6-udeb 

    dep: libc6 (>= 2.4) [not arm64, ppc64el]

    dep: libcfitsio7 (>= 3.450~)
        shared library for I/O with FITS format data files 

    dep: libgcc1 (>= 1:3.0) [not armel]
        GCC support library 

    dep: libgcc1 (>= 1:3.5) [armel]

    dep: libindidriver1 (>= 1.7.5+dfsg)
        Instrument-Neutral Device Interface library -- driver library 

    dep: libjpeg62-turbo (>= 1.3.1)
        libjpeg-turbo JPEG runtime library 

    dep: libnova-0.16-0
        celestial mechanics, astrometry and astrodynamics library 

    dep: libogg0 (>= 1.0rc3)
        Ogg bitstream library 

    dep: libstdc++6 (>= 5.2)
        GNU Standard C++ Library v3 

    dep: libtheora0 (>= 1.0)
        Theora Video Compression Codec 

    dep: libusb-1.0-0 (>= 2:1.0.8)
        userspace USB programming library 

    dep: zlib1g (>= 1:1.1.4)
        compression library - runtime 

So in other words, when you
>sudo apt-get build-dep libindi-plugins

This will install all the required dependencies to build that package.

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

3 months 1 week ago
stash
Gold Boarder
Gold Boarder
Posts: 268
Karma: 4
More
update for INDI drivers for Raspberry Pi #40738
I think the basic message from Hans is why isn't Raspbian Buster/Stretch etc not supported in the same way as Ubuntu Mate.

It feels, too many, that relying on Ubuntu Mate on the PI means Indi is always playing "catch up" (which of course is always going to be true to some extent) and Mate too far behind on PI support for "average joe user" who does not want to compile from sources but wants Raspbian - a fairly popular OS :-)

In effect they want a mechanism the same as Ubuntu Mate that provides an up todate version of Indi/Kstars/Indi and a simple(ish) update method.

I know that there are tech reasons why Indi relies on Ubuntu Mate (for the PI) but IMO I think its time to look if there is an alternative solution - after all PI does not update theeir kit that often :-)

Are the tech difficulties so bad ?

Could not Docker type approach be used - there was an attempt a while back !

RPI3 Ubuntu 16.04 / AMD desktop Kstars under Ubuntu 16.04 Mounts :azeq6 ,SWAZGoTo

RPI3 Fedora testing out on AMD desktop Fedpra 28 - running kstars 2.9.4 , Indilib 1.7.4 ?????
The following user(s) said Thank You han.k

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

3 months 1 week ago
han.k
Expert Boarder
Expert Boarder
Posts: 111
Karma: 5
More
Topic Author
update for INDI drivers for Raspberry Pi #40739
In Buster the following line doesn't work :

pi@raspberrypi:~ $ sudo apt-get build-dep libindi-plugins
Reading package lists... Done
E: You must put some 'source' URIs in your sources.list


I checked all the dependencies you indicated above and they are all fulfilled.

Worse the eqmod driver 1.74 can't be installed in Buster. Get thefollowing error " Dependency is not satisfiable libgsl2"

I can't install libgsl2 since libgslcblas0 is already installed:

pi@raspberrypi:~/Downloads $ sudo apt-get install libgsl2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libgsl2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libgslcblas0
E: Package 'libgsl2' has no installation candidate


So no progress

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

3 months 1 week ago
han.k
Expert Boarder
Expert Boarder
Posts: 111
Karma: 5
More
Topic Author
update for INDI drivers for Raspberry Pi #40741

stash wrote: In effect they want a mechanism the same as Ubuntu Mate that provides an up todate version of Indi/Kstars/Indi and a simple(ish) update method.
!


Thanks Stash, for me a INDI Debian package for Buster would be fine or maybe INDI can be added to the Raspbian repository. Note that Raspbian Stretch is no longer available for installation. Any new install of Raspbian on a Pi will be edition Buster.

Normally I program in Object Pascal and the IDE generates a single executable either for Linux armhf, Linux/Windows AMD64, I386 or MacOS x86_64 and it just works. Any library is included in the single executable file. No dependencies or separate libraries.

Han

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

3 months 1 week ago
Copello
Senior Boarder
Senior Boarder
Posts: 49
Karma: 1
More
update for INDI drivers for Raspberry Pi #40744
You need to activate the source repo in apt

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

3 months 1 week ago 3 months 1 week ago by han.k.
han.k
Expert Boarder
Expert Boarder
Posts: 111
Karma: 5
More
Topic Author
update for INDI drivers for Raspberry Pi #40750
Hello Copello,

Copello wrote: You need to activate the source repo in apt


I assume you mean enable the source code repositories? Is that something you can do in a Debian Linux and how? /etc/apt/sources.list ?

Han

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

Time to create page: 1.555 seconds