×

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

Bi-monthly release with minor bug fixes and improvements

My gentoo overlay with indilib 3rd party drivers

  • Posts: 31
  • Thank you received: 7
Hello,
I hacked together some ebuilds so that I can install indilib drivers for my equipement the gentoo way. And then I said to myself why not create complete set of indilib 3rd party drivers for gentoo?

So here they are: git.brancik.cz/gentoo-overlay.git/tree/sci-libs

INSTALLATION GUIDE

0. Login as root or use sudo.

1. Install layman to manage overlays if don't have this tool already.
sudo emerge -v app-portage/layman

2. Add brancik-overlay.xml file to the /etc/layman/overlays directory wit the following content:
sudo nano /etc/layman/overlays/brancik-overlay.xml

File Attachment:

File Name: brancik-overlay.txt
File Size:1 KB

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE repositories SYSTEM "/dtd/repositories.dtd">
<repositories xmlns="" version="1.0">
<repo quality="experimental" status="official">
        <name>brancik-overlay</name>
        <description>Ctibor Brancik's overlay</description>
        <homepage>http://git.brancik.cz</homepage>
        <owner type="project">
                <email>ctibor@brancik.cz</email>
                <name>Ctibor Brančík</name>
        </owner>
        <source type="git">git://git.brancik.cz/gentoo-overlay.git</source>
</repo>
</repositories>
 
 

Or you can use layman-overlay-maker tool if you have >=app-portage/layman-2.0.0.

More info about Gentoo overlays and their management can be found on Gentoo wiki .

3. Add overlay:
sudo layman -f -a brancik-overlay

4. To install all available indilib drivers simply use provided portage set:
sudo emerge -v @indilib-drivers

5. If you want to install only drivers for the devices you use (as is the Gentoo way), you have to set appropriate USE flags:

Available USE flags (note that only 3rd party drivers are present, with exception of indi-qhy-old. All other drivers are installed by sci-libs/indilib itself):
  • aagcloudwatcher
  • apogee
  • asicam
  • duino
  • eqmod
  • ffmv
  • fishcamp
  • fli
  • gphoto2
  • maxdomeii
  • meadedsi
  • qhy
  • qsi
  • sbig
  • spectracyber
  • sx
  • tess
nano /etc/portage/package.use/indilib
#Enable drivers USE flag which pulls sci-libs/indilib-drivers as dependency
 
sci-libs/indilib drivers
 
# To install indi_gphoto_ccd, indi_qhy_ccd and indi_sbig_ccd.
# sci-libs/indilib-drivers is a meta ebuild and works similar to x11-base/xorg-drivers package.
 
sci-libs/indilib-drivers gphoto2 qhy sbig
sudo emerge sci-libs/indilib::brancik-overlay

6. Note that ebuilds for stable release of indilib drivers (currently 0.9.9) are keyworded unstable (~amd64, ~x86 specifically) and live source ebuilds are all masked by package.mask. You will have to unmask them during installation (use emerge with --autounmask-write option). See official docs if you do not know this means exactly.

7. You can use provided init script to start indiserver automatically during boot now!

I have tested all the drivers and they compile OK at least on amd64 and arm. Whether they work with your device is up to you to discover :-) I will try to maintain ebuilds as the time goes by and my spare time allows me.

Known problems:

Firmware for sbig and qhy (sci-libs/sbig, sci-libs/libqhy) won't cross emerge if the host machine belongs to different ARCH.

The overlay also includes ebuilds for linguider , ccd , qastrocam-g2 and PHD (version 1 and 2 directly from svn).

I hope someone will find this useful and please report any bugs with the ebuilds or compilation failures.
Last edit: 9 years 1 month ago by Ctibor Brančík.
9 years 1 month ago #2892
Attachments:

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

Thank you Ctibor, I'm sure Gentoo users will highly appreciate this! Would it possible if you can write a short step-by-step guide that I can post in the INDI website download section?
9 years 1 month ago #2894

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

  • Posts: 31
  • Thank you received: 7
Thanks for words of support. I have added guide per you request :-)
9 years 1 month ago #2945

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

  • Posts: 314
  • Thank you received: 34
Do I miss something? I cant add your overlay. /var/lib/layman/brancik-overlay.xml exists.
At point 3. shouldnt it be "sudo layman -a brancik-overlay", when I do that I get:
--= human, without Windows™ =--
pls excuse my bad english! :)
9 years 1 month ago #2959

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

  • Posts: 31
  • Thank you received: 7
Ok, it seems that documentation on the wiki and in layman man page differs. I have fixed the guide with the instructions from the man page and tested it. It should work.

instead of /var/lib/layman place the xml file to /etc/layman/overlays. Note that I have also changed its content slightly.

Afterwards run layman -f -a brancik-overlay. Layman needs to get know about the new file in fetch action first, apparently.
9 years 1 month ago #2960

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

  • Posts: 314
  • Thank you received: 34
Still no luck:
--= human, without Windows™ =--
pls excuse my bad english! :)
9 years 1 month ago #2963

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

  • Posts: 31
  • Thank you received: 7
Oh, sorry for me being stupid :-) I have been using overlay on my home server only and haven't had opened firewall port for git daemon. Should be working now. And thanks for testing this out.
Last edit: 9 years 1 month ago by Ctibor Brančík.
9 years 1 month ago #2964

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

  • Posts: 31
  • Thank you received: 7
I have bumped ebuilds to v1.0.0 and added the new ffmv driver. Enjoy!
9 years 1 month ago #3202

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

Thanks Ctibor! This is really appreciated! I added some description to the download section, is it valid?
9 years 1 month ago #3206

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

  • Posts: 31
  • Thank you received: 7
Instructions are OK, only problem I see is that tags in xml file are somehow stripped off or invisible to the users. This can be confusing. I have uploaded txt file as attachment to the intial post. Maybe you can link to that file instead.
9 years 1 month ago #3207

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

  • Posts: 205
  • Thank you received: 19
I thought I'd give these a try, since it's an excellent idea and will make life a lot easier.

I've managed to build all the indilib drivers except the qsi one. It's not a big deal since I don't have access to QSI camera at this time, but I was wondering if you might have come across the problem and know the fix.

When it tries to build the sci-libs/libqsi, it gets this error:
CMake Error at cmake_modules/FindFTDI.cmake:43 (message):
  FTDI not found.  Please install libftdi-dev

I've installed dev-embedded/libftdi, but can't find anything that seems to be libftdi-dev. Any ideas?

Anyway, thanks for doing these builds.
9 years 2 weeks ago #3458

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

  • Posts: 31
  • Thank you received: 7
There is no need for ftdi-dev package on gentoo since the dev files are installed automatically with dev-embedded/libftdi. And this should be pulled into the system automatically by sci-libs/libqsi.

Are you trying to install the 1.0.0 version or live ebuild? What ARCH do you use?
9 years 2 weeks ago #3461

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

Time to create page: 1.072 seconds