Anjo replied to the topic 'INDI LibCamera Driver' in the forum. 6 months ago

Yeah, setting this up is extremely fragile and tiresome. The vanilla stellarmate seems to include a version of libcamera from 2022, which is pretty old. And each time you apt-update something, you'll end up with that version again and you have to select it all over again:

stellarmate@astroberry:~/astro/indi_pylibcamera $ sudo apt list libcamera0
Listing... Done
libcamera0/unknown,now 1.0-stable~202211161314 arm64 [installed,automatic]
libcamera0/oldstable 0~git20230720+bde9b04f-1 armhf
stellarmate@astroberry:~ $ sudo apt list libcamera-dev
Listing... Done
libcamera-dev/unknown,now 1.0-stable~202211161314 arm64 [installed]
libcamera-dev/oldstable 0~git20230720+bde9b04f-1 armhf
stellarmate@astroberry:~ $ sudo apt list libcamera-apps
Listing... Done
libcamera-apps/oldstable,now 1.2.1-1 arm64 [installed]
libcamera-apps/oldstable 1.2.1-1 armhf

But I had the same hassle when installing the picamera driver, so it might be a general package problem. For now I "fixed" at least part of this by doing
sudo apt install libcamera-dev/oldstable 0~git20230720+bde9b04f-1 libcamera0/oldstable 0~git20230720+bde9b04f-1

which kinda, sorta worked but I still can't compile the indi driver when usiing the libcamera-apps libs. I got the same errors in LibCameraApps as the rest of the folks and don't want to use the one that has uses the included code. That seems like a dead end as you can't reasonably package it.

But at least with the IMX290 the python driver also hangs every few shots... if I have time, I'll try to make a version that supports the libcamera-apps utils like libcamera-still and the like as I hope that you'll be able to more easily kill an extra process as opposed to constantly having to restart the driver. But that will take time since I just started.

Read More...