Configuring gst-plugins-base with OpenGL integration on Windows

Matthew Waters ystreet00 at gmail.com
Sun Oct 23 00:00:03 UTC 2022



On 21/10/22 21:25, Ilya Aleshkov via gstreamer-devel wrote:
> Hi,
>
> I'd like to build the nvcodec plugin from source. Dependency 
> 'gstreamer-gl-1.0' is required.
> That's why I'm looking for a way to enable OpenGL integration for 
> gst-plugins-base.
> Obviously, gl_winsys=win32 is not enough:
>
> meson --buildtype=release
> -Dauto_features=disabled
> -Dgstreamer:tools=disabled
> -Dbase=enabled
> -Dgst-plugins-base:gl=enabled
> -Dgst-plugins-base:gl_winsys=win32
> -Dbad=enabled
> -Dgst-plugins-bad:gl=enabled
> -Dgst-plugins-bad:nvcodec=enabled
>
> Output:
> gst-plugins-base| Dependency (anonymous) from subproject 
> subprojects/gl-headers found: YES 2019.1.0
> gst-plugins-base| Run-time dependency opengl found: NO (tried pkgconfig)
> gst-plugins-base| Run-time dependency gl found: NO (tried pkgconfig)
> gst-plugins-base| Library opengl32 found: YES
> gst-plugins-base| Has header "GL/gl.h" : YES
> gst-plugins-base| Run-time dependency glx found: NO (tried pkgconfig)
> gst-plugins-base| Found CMake: C:\Program Files\CMake\bin\cmake.EXE 
> (3.24.2)
> gst-plugins-base| Run-time dependency glesv2 found: NO (tried 
> pkgconfig and cmake)
> gst-plugins-base| Library GLESv2 found: NO
> gst-plugins-base| Has header "GLES2/gl2.h" : NO
> gst-plugins-base| Run-time dependency egl found: NO (tried pkgconfig 
> and cmake)
> gst-plugins-base| Library EGL found: NO
> gst-plugins-base| Library gdi32 found: YES
> gst-plugins-base| Has header "GL/wglext.h" : NO

There is a gl-headers subproject available for precisely this purpose of 
providing a version of GL/wglext.h.  If that detection is wrong, then 
that needs to be fixed in the meson build files.

Cheers
-Matt

> gst-plugins-base| Message: No OpenGL Platforms found or requested
> gst-plugins-base| Message: No OpenGL Window systems found or requested
>
> ..\subprojects\gst-plugins-base\gst-libs\gst\gl\meson.build:1224:2: 
> ERROR: Problem encountered: GStreamer OpenGL integration required via 
> options, but needed dependencies not found.
>
> Thanks,
> Ilya

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20221023/e81bcea0/attachment.sig>


More information about the gstreamer-devel mailing list