Skip to contentSkip to conversation

package/gst1-vaapi: fix x11 dependencies

PATCH Applied James Hilliard 2 participants 2 messages Feb 5, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/gst1-vaapi: fix x11 dependencies

The x11 feature needs libx11 and libxrandr support.

Select and depend on these when x11 is enabled.

Fixes:
gst1-vaapi-1.22.0/meson.build:96:0: ERROR: Dependency "xrandr" not found, tried pkgconfig and cmake

---
 package/gstreamer1/gst1-vaapi/Config.in     | 2 ++
 package/gstreamer1/gst1-vaapi/gst1-vaapi.mk | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
package/gstreamer1/gst1-vaapi/Config.in +2 -0
index ade8b83a5f..a1062097ed 100644
@@ -8,6 +8,8 @@ config BR2_PACKAGE_GST1_VAAPI
 	select BR2_PACKAGE_LIBDRM
 	select BR2_PACKAGE_GST1_PLUGINS_BASE
 	select BR2_PACKAGE_GST1_PLUGINS_BAD # gstreamer-codecparsers
+	select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_XLIB_LIBXRANDR if BR2_PACKAGE_XORG7
 	help
 	  gstreamer-vaapi consists in a collection of VA-API based
 	  plugins for GStreamer and helper libraries.
package/gstreamer1/gst1-vaapi/gst1-vaapi.mk +2 -1
index 3d9eb91ffb..9533cdf2b6 100644
@@ -43,8 +43,9 @@ else
 GST1_VAAPI_CONF_OPTS += -Dwayland=disabled
 endif
 
-ifeq ($(BR2_PACKAGE_XORG7),y)
+ifeq ($(BR2_PACKAGE_XLIB_LIBX11)$(BR2_PACKAGE_XLIB_LIBXRANDR),yy)
 GST1_VAAPI_CONF_OPTS += -Dx11=enabled
+GST1_VAAPI_DEPENDENCIES += xlib_libX11 xlib_libXrandr
 ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
 GST1_VAAPI_CONF_OPTS += -Dglx=enabled
 else
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

James, All,

On 2023-02-04 19:37 -0700, James Hilliard spake thusly:

Quoted 8 lines

The x11 feature needs libx11 and libxrandr support.

Select and depend on these when x11 is enabled.

Fixes:
gst1-vaapi-1.22.0/meson.build:96:0: ERROR: Dependency "xrandr" not found, tried pkgconfig and cmake

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 40 lines
---
 package/gstreamer1/gst1-vaapi/Config.in     | 2 ++
 package/gstreamer1/gst1-vaapi/gst1-vaapi.mk | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
package/gstreamer1/gst1-vaapi/Config.in +2 -0
index ade8b83a5f..a1062097ed 100644
@@ -8,6 +8,8 @@ config BR2_PACKAGE_GST1_VAAPI
 	select BR2_PACKAGE_LIBDRM
 	select BR2_PACKAGE_GST1_PLUGINS_BASE
 	select BR2_PACKAGE_GST1_PLUGINS_BAD # gstreamer-codecparsers
+	select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_XLIB_LIBXRANDR if BR2_PACKAGE_XORG7
 	help
 	  gstreamer-vaapi consists in a collection of VA-API based
 	  plugins for GStreamer and helper libraries.
package/gstreamer1/gst1-vaapi/gst1-vaapi.mk +2 -1
index 3d9eb91ffb..9533cdf2b6 100644
@@ -43,8 +43,9 @@ else
 GST1_VAAPI_CONF_OPTS += -Dwayland=disabled
 endif
 
-ifeq ($(BR2_PACKAGE_XORG7),y)
+ifeq ($(BR2_PACKAGE_XLIB_LIBX11)$(BR2_PACKAGE_XLIB_LIBXRANDR),yy)
 GST1_VAAPI_CONF_OPTS += -Dx11=enabled
+GST1_VAAPI_DEPENDENCIES += xlib_libX11 xlib_libXrandr
 ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
 GST1_VAAPI_CONF_OPTS += -Dglx=enabled
 else
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot