Problems compiling VA-API in GStreamer 1.18

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems compiling VA-API in GStreamer 1.18

peter12
This post was updated on .
I have installed in my ubuntu the 1.18 Gstreamer version (https://github.com/GStreamer/gst-build).

In this way, I am able to enter into a development environment of Gstreamer 1.18 running the following command

```
ninja -C builddir devenv
```
However, I would like to compile the plugin VA-API with the aim to use it in that version of Gstreamer.
I download the correspondent package (http://www.linuxfromscratch.org/blfs/view/svn/multimedia/gstreamer10-vaapi.html), I unzip it and I execute the next commands in the terminal to install it:

```
mkdir build &&
cd    build &&

meson  --prefix=/usr       \
       -Dbuildtype=release \
       -Dpackage-origin=http://www.linuxfromscratch.org/blfs/view/svn/ &&
ninja

```
The problem is that I get the following error :

gstreamer-vaapi 1.18.0

  Subprojects
    gst-plugins-base: NO Subproject directory not found and
gst-plugins-base.wrap file not found
              libdrm: NO Subproject directory not found and libdrm.wrap file not found

I have compiled the gst-build in another directory, and inside it is located the subprojects directory. So how could I tell the terminal to find in that path and install in that directory?

Or how could I solve this problem?




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problems compiling VA-API in GStreamer 1.18

Victor Jaquez
On Mon, 19 Oct 2020 at 03:11, peter12 wrote:
> I have installed in my ubuntu (https://github.com/GStreamer/gst-build).
>
> In this way, I am able to enter into a development environment of Gstreamer
> 1.18 running the following command
>
> ```
> ninja -C builddir devenv
> ```

If you are using gst-build, without 'worktrees', then you're using master branch
of all gstreamer repositories. Thus...

> However, I would like to compile the plugin VA-API with the aim to use it in
> that version of Gstreamer.
> I download the package
> (http://www.linuxfromscratch.org/blfs/view/svn/multimedia/gstreamer10-vaapi.html),
> I unzip it and I execute the next commands in the terminal to install it:

if you're trying to compile a gstreamer-vaapi tarball of a certain version, say
1.18, then a version mismatch will happen, as it follows:

>
> ```
> mkdir build &&
> cd    build &&
>
> meson  --prefix=/usr       \
>        -Dbuildtype=release \
>        -Dpackage-origin=http://www.linuxfromscratch.org/blfs/view/svn/ &&
> ninja
>
> ```
> The problem is that I get the following error :
>
> gstreamer-vaapi 1.18.0
>
>   Subprojects
>     gst-plugins-base: NO Subproject directory not found and
> gst-plugins-base.wrap file not found
>               libdrm: NO Subproject directory not found and libdrm.wrap file
> not found
>
> I have compiled the gst-build in another directory, and inside it is located
> the subprojects directory. So how could I tell the terminal to find in that
> path and install in that directory?

Gstreamer-vaapi is part of gstreamer, all the modules have to have the same
version.

If you are using gst-build, you can just enable it:

cd ~/gst-build
meson -Dvaapi=enable build
ninja -C build
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problems compiling VA-API in GStreamer 1.18

peter12
Yes, your are right!

I have just found this:
https://gstreamer.freedesktop.org/documentation/installing/building-from-source-using-meson.html?gi-language=c
and have installed vaapi plugins in a similar way you have said me.

I am new in the gstreamer environment, so I have to learn lots of things
yet... I don't understand you when you say that "if you are using gst-build,
without 'worktrees', then you're using master branch of all gstreamer
repositories".



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problems compiling VA-API in GStreamer 1.18

Victor Jaquez
On Mon, 19 Oct 2020 at 04:58, peter12 wrote:

> Yes, your are right!
>
> I have just found this:
> https://gstreamer.freedesktop.org/documentation/installing/building-from-source-using-meson.html?gi-language=c
> and have installed vaapi plugins in a similar way you have said me.
>
> I am new in the gstreamer environment, so I have to learn lots of things
> yet... I don't understand you when you say that "if you are using gst-build,
> without 'worktrees', then you're using master branch of all gstreamer
> repositories".

You can read about them in
https://gitlab.freedesktop.org/gstreamer/gst-build/-/blob/master/README.md

Basically is a way to compile a specific stable branch among gstreamer
repositories, rather than just master.

>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel