Skip to content
Cole Brinsfield edited this page Feb 14, 2021 · 3 revisions

The following instructions will build the Qt video library to use instead of the OMX library.

Note that the install script will run through these steps. This page remains for those wishing to install manually.

  1. Install the pre-requisite packages:
sudo apt install qt5-default qml-module-qtquick2 qtdeclarative5-dev qtmultimedia5-dev qml-module-qtquick* qml-module-qtmultimedia qml-module-qt-labs-settings qml-module-qt-labs-folderlistmodel libqt5xmlpatterns5-dev qml-module-qtbluetooth libqt5charts5 qml-module-qtcharts build-essential openssl libglib2.0-dev libboost-dev libudev-dev libgstreamer1.0-dev gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-alsa libgstreamer-plugins-base1.0-dev gstreamer1.0-pulseaudio libfaad-dev libfftw3-dev librtlsdr-dev libusb-1.0-0-dev mesa-common-dev libglu1-mesa-dev zlib1g-dev portaudio19-dev libsndfile1-dev libsamplerate0-dev bluez bluez-obexd pulseaudio-module-bluetooth  qml-module-qtbluetooth qml-module-org-kde-bluezqt qtbase5-private-dev libcanberra-dev libgconf2-dev libpulse-dev libmp3lame-dev libsoapysdr-dev libmpg123-dev

2. Clone the qt-gstreamer repo:

git clone git://anongit.freedesktop.org/gstreamer/qt-gstreamer

3. Change to the cloned directory:

cd qt-gstreamer

4. Create the build directory then change to it:

mkdir build
cd build

5. Run the following cmake command:

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

6. Compile qt-gstreamer:

make -j4

7. Install and scan for recently installed directory:

sudo make install
sudo ldconfig