libcamera icon indicating copy to clipboard operation
libcamera copied to clipboard

bootstrap dependencies script

Open kbingham opened this issue 4 years ago • 7 comments

we have a growing complexity of dependencies. It would be nice if we could wrap this up in a helper script:

bootstrap-deps.sh [all] [cam] [qcam] [raspberrypi] [tracing] [gstreamer] [hotplug] [documentation] [tracing]

kbingham avatar Nov 23 '20 11:11 kbingham

Hey! Is this still needed? Could I work on this as my first patch? I am interested in contributing to libcamera for GSoC 2023 :)

filbert14 avatar Feb 23 '23 10:02 filbert14

Sure, might be a helpful/useful addition - I'm not sure how we could make something generic across distributions - but it would certainly have potential to be a first contribution for sure.

kbingham avatar Feb 23 '23 11:02 kbingham

Hey! I submitted my patch to the libcamera mailing list (please tell me if it did not arrive, it's my first time working with patches). I added the script to utils - it installs all required dependencies and allows installation of any optional dependencies using the syntax you wrote above.

It also has a help message to detail the arguments for the optional dependencies. For now though, it would only work for debian/ubuntu based distros (those which use apt-get as package manager). And simply doesn't do anything otherwise. Sorry for the delay, I spent a lot of time trying to find a solution to make this work generically but did not come to a compact alternative. Maybe I could expand the current solution in another PR?

filbert14 avatar Feb 23 '23 17:02 filbert14

Yes, I think it hit the list. Thanks!

As we only specify dependencies for debian/ubuntu - I think it's reasonable that the script only handles that for now ;-) - Lets continue discussions on the list. Hopefully we can get some review comments from other community members or someone to try and test it.

kbingham avatar Feb 23 '23 20:02 kbingham

Join the IRC/Matrix channel too if you want to get into GSoC ... it really helps to get an idea of whats going on.

kbingham avatar Feb 23 '23 20:02 kbingham

I was able to find the IRC channel in webchat but wasn't able to find the matrix channel, could you tell me where I could find it? There doesn't seem to be any public room. Sorry and thanks!

filbert14 avatar Feb 24 '23 06:02 filbert14

https://app.element.io/#/room/#oftc#libcamera:matrix.org - it's just the matrix bridge to the irc channel.

kbingham avatar Feb 24 '23 09:02 kbingham