099712338f
Instead of querying the Qt include path from the dependency or from qmake, rely on the qt5qml_dep to set the include path to QtGui correctly, and look for the header inside the private includedir. Then we can use that path to include the header directly. Reported in https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/780#note_548092 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/640> |
||
---|---|---|
.. | ||
gstplugin.cc | ||
gstqsgtexture.cc | ||
gstqsgtexture.h | ||
gstqtgl.h | ||
gstqtglutility.cc | ||
gstqtglutility.h | ||
gstqtoverlay.cc | ||
gstqtoverlay.h | ||
gstqtsink.cc | ||
gstqtsink.h | ||
gstqtsrc.cc | ||
gstqtsrc.h | ||
meson.build | ||
qtglrenderer.cc | ||
qtglrenderer.h | ||
qtitem.cc | ||
qtitem.h | ||
qtplugin.pro | ||
qtwindow.cc | ||
qtwindow.h | ||
README.md |
Building for non-linux platforms
Compiling the gstqmlgl plugin for non-linux platforms is not so trivial. This file explains the steps that need to be followed for a successful build.
Step 1
Build GStreamer for the target platform using cerbero.
Step 2
Enter the cerbero shell:
./cerbero-uninstalled -c config/<target platform config>.cbc shell
Step 3
Export the following environment variables:
export PATH=/path/to/Qt/<version>/<platform>/bin:$PATH
if you are cross-compiling (ex. for android), also export:
export PKG_CONFIG_SYSROOT_DIR=/
Additionally, if you are building for android:
export ANDROID_NDK_ROOT=$ANDROID_NDK
Note: the ANDROID_NDK variable is set by the cerbero shell; if you are not using this shell, set it to the directory where you have installed the android NDK. Additionally, if you are not building through the cerbero shell, it is also important to have set PKG_CONFIG_LIBDIR to $GSTREAMER_ROOT/lib/pkgconfig.
Step 4
cd to the directory of the gstqmlgl plugin and run:
qmake .
make
Step 5
Copy the built plugin to your $GSTREAMER_ROOT/lib/gstreamer-1.0 or link to it directly if it is compiled statically