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.
Build GStreamer for the target platform using cerbero.
Enter the cerbero shell:
./cerbero-uninstalled -c config/<target platform config>.cbc shell
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.
cd to the directory of the gstqmlgl plugin and run:
qmake . make
Copy the built plugin to your $GSTREAMER_ROOT/lib/gstreamer-1.0 or link to it directly if it is compiled statically
Open qtplugin.pro in Qt Creator as project and configure it as usual.
Open qtplugin.pro in the editor and make sure GSTREAMER_PATH variable in qmlplugin.pro is set to the path of your gstreamer SDK installation. This directory should contain subdirectories bin, include, lib etc. Pay attention to the correct choice of x86 or x86_64 platform.
Build the project as usual.
Copy the built plugin to your $GSTREAMER_ROOT/lib/gstreamer-1.0 or link to it directly if it is compiled statically.
Launch Qt developer command line from the Start menu.
cd to the directory of the gstqmlgl plugin and make sure GSTREAMER_PATH variable in qmlplugin.pro is set to the path of your gstreamer SDK installation. This directory should contain subdirectories bin, include, lib etc. Pay attention to the correct choice of x86 or x86_64 platform.
Run the following commands in the gstqmlgl plugin directory:
qmake mingw32-make
Copy the built plugin to your $GSTREAMER_ROOT/lib/gstreamer-1.0 or link to it directly if it is compiled statically.