[libcamera-devel] README: Add some extra optional dependancies for cam sinks
diff mbox series

Message ID 20220622143731.26127-1-ecurtin@redhat.com
State Superseded
Headers show
Series
  • [libcamera-devel] README: Add some extra optional dependancies for cam sinks
Related show

Commit Message

Eric Curtin June 22, 2022, 2:37 p.m. UTC
KMS sink requires some DRM libraries, SDL sink requires some SDL
libraries.

Suggested-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Eric Curtin <ecurtin@redhat.com>
---
Changes in v2:

- Updated commit message/
---
 README.rst | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Comments

Eric Curtin June 23, 2022, 6:45 p.m. UTC | #1
I think this ones an easy review if someone gets the chance.

Is mise le meas/Regards,

Eric Curtin


On Wed, 22 Jun 2022 at 15:38, Eric Curtin <ecurtin@redhat.com> wrote:
>
> KMS sink requires some DRM libraries, SDL sink requires some SDL
> libraries.
>
> Suggested-by: Pavel Machek <pavel@ucw.cz>
> Signed-off-by: Eric Curtin <ecurtin@redhat.com>
> ---
> Changes in v2:
>
> - Updated commit message/
> ---
>  README.rst | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/README.rst b/README.rst
> index 05ebcec4..28c79b3f 100644
> --- a/README.rst
> +++ b/README.rst
> @@ -87,7 +87,13 @@ for gstreamer: [optional]
>          libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
>
>  for cam: [optional]
> -        libevent-dev
> +        libevent-dev libdrm-dev libsdl2-dev libsdl2-image-dev
> +
> +        If you would like to use KMS sink libdrm-dev is an optional dependancy,
> +        if you would like to use SDL sink with pixel formats such as YUYV,
> +        libsdl2-dev is an optional dependancy, if you would like to use SDL
> +        sink with pixel formats such as MJPEG, libsdl2-image-dev is an
> +        optional dependancy.
>
>  for qcam: [optional]
>          qtbase5-dev libqt5core5a libqt5gui5 libqt5widgets5 qttools5-dev-tools libtiff-dev
> --
> 2.35.3
>
Kieran Bingham June 24, 2022, 12:47 p.m. UTC | #2
Quoting Eric Curtin (2022-06-23 19:45:39)
> I think this ones an easy review if someone gets the chance.
> 
> Is mise le meas/Regards,
> 
> Eric Curtin
> 
> 
> On Wed, 22 Jun 2022 at 15:38, Eric Curtin <ecurtin@redhat.com> wrote:
> >
> > KMS sink requires some DRM libraries, SDL sink requires some SDL
> > libraries.
> >
> > Suggested-by: Pavel Machek <pavel@ucw.cz>
> > Signed-off-by: Eric Curtin <ecurtin@redhat.com>
> > ---
> > Changes in v2:
> >
> > - Updated commit message/
> > ---
> >  README.rst | 8 +++++++-
> >  1 file changed, 7 insertions(+), 1 deletion(-)
> >
> > diff --git a/README.rst b/README.rst
> > index 05ebcec4..28c79b3f 100644
> > --- a/README.rst
> > +++ b/README.rst
> > @@ -87,7 +87,13 @@ for gstreamer: [optional]
> >          libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
> >
> >  for cam: [optional]
> > -        libevent-dev
> > +        libevent-dev libdrm-dev libsdl2-dev libsdl2-image-dev

Should we wrap optional dependencies in [ ] ?
Cam is optional (hence the [optional]) but now the optional component
has optional dependencies!?

> > +
> > +        If you would like to use KMS sink libdrm-dev is an optional dependancy,
> > +        if you would like to use SDL sink with pixel formats such as YUYV,
> > +        libsdl2-dev is an optional dependancy, if you would like to use SDL
> > +        sink with pixel formats such as MJPEG, libsdl2-image-dev is an
> > +        optional dependancy.

This is quite some terse reading.

In an effort to make it easier I'll have a go:

	libevent-dev is required to support cam, however the following
	optional dependencies bring more functionality to the cam test
	tool:

	libdrm-dev: Enables the KMS sink
	libsdl2-dev: Enables the SDL sink
	libsdl2-image-dev: Supports MJPEG on the SDL sink


> >
> >  for qcam: [optional]
> >          qtbase5-dev libqt5core5a libqt5gui5 libqt5widgets5 qttools5-dev-tools libtiff-dev
> > --
> > 2.35.3
> >
>
Eric Curtin June 24, 2022, 7:16 p.m. UTC | #3
Yeah I'm happy with that!

Is mise le meas/Regards,

Eric Curtin



On Fri, 24 Jun 2022 at 13:47, Kieran Bingham <
kieran.bingham@ideasonboard.com> wrote:

> Quoting Eric Curtin (2022-06-23 19:45:39)
> > I think this ones an easy review if someone gets the chance.
> >
> > Is mise le meas/Regards,
> >
> > Eric Curtin
> >
> >
> > On Wed, 22 Jun 2022 at 15:38, Eric Curtin <ecurtin@redhat.com> wrote:
> > >
> > > KMS sink requires some DRM libraries, SDL sink requires some SDL
> > > libraries.
> > >
> > > Suggested-by: Pavel Machek <pavel@ucw.cz>
> > > Signed-off-by: Eric Curtin <ecurtin@redhat.com>
> > > ---
> > > Changes in v2:
> > >
> > > - Updated commit message/
> > > ---
> > >  README.rst | 8 +++++++-
> > >  1 file changed, 7 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/README.rst b/README.rst
> > > index 05ebcec4..28c79b3f 100644
> > > --- a/README.rst
> > > +++ b/README.rst
> > > @@ -87,7 +87,13 @@ for gstreamer: [optional]
> > >          libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
> > >
> > >  for cam: [optional]
> > > -        libevent-dev
> > > +        libevent-dev libdrm-dev libsdl2-dev libsdl2-image-dev
>
> Should we wrap optional dependencies in [ ] ?
> Cam is optional (hence the [optional]) but now the optional component
> has optional dependencies!?
>
> > > +
> > > +        If you would like to use KMS sink libdrm-dev is an optional
> dependancy,
> > > +        if you would like to use SDL sink with pixel formats such as
> YUYV,
> > > +        libsdl2-dev is an optional dependancy, if you would like to
> use SDL
> > > +        sink with pixel formats such as MJPEG, libsdl2-image-dev is an
> > > +        optional dependancy.
>
> This is quite some terse reading.
>
> In an effort to make it easier I'll have a go:
>
>         libevent-dev is required to support cam, however the following
>         optional dependencies bring more functionality to the cam test
>         tool:
>
>         libdrm-dev: Enables the KMS sink
>         libsdl2-dev: Enables the SDL sink
>         libsdl2-image-dev: Supports MJPEG on the SDL sink
>
>
> > >
> > >  for qcam: [optional]
> > >          qtbase5-dev libqt5core5a libqt5gui5 libqt5widgets5
> qttools5-dev-tools libtiff-dev
> > > --
> > > 2.35.3
> > >
> >
>
>

Patch
diff mbox series

diff --git a/README.rst b/README.rst
index 05ebcec4..28c79b3f 100644
--- a/README.rst
+++ b/README.rst
@@ -87,7 +87,13 @@  for gstreamer: [optional]
         libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
 
 for cam: [optional]
-        libevent-dev
+        libevent-dev libdrm-dev libsdl2-dev libsdl2-image-dev
+
+        If you would like to use KMS sink libdrm-dev is an optional dependancy,
+        if you would like to use SDL sink with pixel formats such as YUYV,
+        libsdl2-dev is an optional dependancy, if you would like to use SDL
+        sink with pixel formats such as MJPEG, libsdl2-image-dev is an
+        optional dependancy.
 
 for qcam: [optional]
         qtbase5-dev libqt5core5a libqt5gui5 libqt5widgets5 qttools5-dev-tools libtiff-dev