qtqmlqt5gstreamerqtgstreamer

QML module not found (QtGStreamer)


I have been trying to install gstreamer on my ubuntu 18.04 and to integrate it into a Qt 5.14.1 project.

These are the installation steps I followed in order to install gstreamer:

git clone git://anongit.freedesktop.org/gstreamer/qt-gstreamer
cd qt-gstreamer
mkdir build && cd build
cmake QtGstreamer
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH) -DCMAKE_INSTALL_INCLUDEDIR=include -DQT_VERSION=5 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=-std=c++11
make -j6 && sudo make install

Which installed a bunch of files under /usr/lib/x86_64-linux-gnu/ and /usr/include/Qt5GStreamer/.

I extended the PKGCONFIG in the .pro file like so:

PKGCONFIG += gstreamer-1.0 gstreamer-app-1.0 gstreamer-video-1.0
PKGCONFIG += Qt5GLib-2.0 Qt5GStreamer-1.0 Qt5GStreamerQuick-1.0 Qt5GStreamerUtils-1.0

In my QML file I try to import it like so:

import QtGStreamer 1.0

Which results in an error.

QML module not found. (QtGSteamer)

How do I solve this?


Solution

  • Looks like the module is not found in mldule search path. Did you update pro file as described in Build system integration|qmake? Did you check if this module exists on file system?