Build against imx-gpu-viv instead of mesa
GStreamer's vulkan plugin ain't happy with this driver, so disable it for now.
Disable desktop OpenGL, x11, glx so the default is wayland-egl/gles2. This
makes the gl elements (e.g. glupload, gldownload, glcolorconvert) usable
without setting GST environment variables (GST_GL_WINDOW, GST_GL_PLATFORM).
export XDG_RUNTIME_DIR=/run/user/0
export WAYLAND_DISPLAY=wayland-0
gst-launch-1.0 videotestsrc ! glupload ! gldownload ! fakesink
Change-Id: I1b6484840936b4b77e2a802239c8ed106e103ff4
diff --git a/debian/build-deps b/debian/build-deps
index 997c57d..b53bbe3 100644
--- a/debian/build-deps
+++ b/debian/build-deps
@@ -20,15 +20,11 @@
libdca-dev
libde265-dev
libdvdnav-dev (>= 4.1.2) [!hurd-any]
-libegl1-mesa-dev
libexempi-dev
libexif-dev (>= 0.6.16)
libfaad-dev (>= 2.7)
libfluidsynth-dev (>= 1.0)
-libgl1-mesa-dev
-libgles2-mesa-dev
libglib2.0-dev (>= 2.40)
-libglu1-mesa-dev
libgme-dev
libgnutls28-dev (>= 2.11.3)
libgsm1-dev
diff --git a/debian/control b/debian/control
index c392521..983d0d3 100644
--- a/debian/control
+++ b/debian/control
@@ -20,8 +20,8 @@
libwayland-dev (>= 1.4.0) [linux-any],
libdrm-dev (= 2.4.84+imx),
wayland-protocols (>= 1.4) [linux-any] | wayland-protocols-imx (>= 1.13) [linux-any],
+ imx-gpu-viv,
linux-headers-4.9.51-aiy (>=1),
- libvulkan-dev [linux-any],
libgstreamer1.0-dev (>= 1.12.0),
gstreamer1.0-plugins-base (>= 1.12.0),
ladspa-sdk,
@@ -34,15 +34,11 @@
libdca-dev,
libde265-dev,
libdvdnav-dev (>= 4.1.2) [!hurd-any],
- libegl1-mesa-dev,
libexempi-dev,
libexif-dev (>= 0.6.16),
libfaad-dev (>= 2.7),
libfluidsynth-dev (>= 1.0),
- libgl1-mesa-dev,
- libgles2-mesa-dev,
libglib2.0-dev (>= 2.40),
- libglu1-mesa-dev,
libgme-dev,
libgnutls28-dev (>= 2.11.3),
libgsm1-dev,
@@ -74,8 +70,6 @@
libwebp-dev (>= 0.2.1),
libwebrtc-audio-processing-dev (>= 0.2),
libwildmidi-dev (>= 0.2.3),
- libx11-dev,
- libx11-xcb-dev,
libx265-dev,
libxml2-dev (>= 2.8),
libxvidcore-dev,
diff --git a/debian/gstreamer-plugins-bad.install b/debian/gstreamer-plugins-bad.install
index e61714f..eb74d75 100644
--- a/debian/gstreamer-plugins-bad.install
+++ b/debian/gstreamer-plugins-bad.install
@@ -111,4 +111,3 @@
@waylandsink@
@kms@
@vcd@
-@vulkan@
diff --git a/debian/rules b/debian/rules
index 50da3b8..fbcb4c3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -60,7 +60,6 @@
gst_extra_build_depends += , libwayland-dev (>= 1.4.0) [linux-any]
gst_extra_build_depends += , libdrm-dev (>= 2.4.55) [linux-any]
gst_extra_build_depends += , wayland-protocols (>= 1.4) [linux-any]
-gst_extra_build_depends += , libvulkan-dev [linux-any]
# The plugins are basically the same.
# Link special names to a template file.
@@ -91,7 +90,6 @@
waylandsink = debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gstreamer-$(gst_abi)/libgstwaylandsink.so
wayland = debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libgstwayland-$(gst_abi).so.*
kms = debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gstreamer-$(gst_abi)/libgstkms.so
-vulkan = debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gstreamer-$(gst_abi)/libgstvulkan.so
endif
ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
@@ -128,7 +126,6 @@
-e 's,@sbc@,$(sbc),g' \
-e 's,@waylandsink@,$(waylandsink),g' \
-e 's,@kms@,$(kms),g' \
- -e 's,@vulkan@,$(vulkan),g' \
-e 's/@GST_ABI@/$(gst_abi)/g' \
debian/gstreamer-$$p.install \
> debian/$(gst_pkgname)-$$p.install; \
@@ -155,7 +152,13 @@
--with-package-name=$(GST_PACKAGE_NAME) \
--disable-pvr \
--disable-mpeg2enc \
- --disable-mplex\
+ --disable-mplex \
+ --enable-wayland \
+ --disable-x11 \
+ --disable-glx \
+ --disable-opengl \
+ --enable-gles2 \
+
common-binary-fixup-arch::
LD_LIBRARY_PATH=debian/libgstreamer-plugins-bad1.0-0/usr/lib/$(DEB_HOST_MULTIARCH):$(LD_LIBRARY_PATH) \