Ubuntu 16.04 / GStreamer 1.19 compilation fails
Hello,
I'm trying to compile the latest version on Ubuntu 16.04. Here are the steps I followed:
git clone https://gitlab.freedesktop.org/gstreamer/gstreamer.git
cd gstreamer
export QMAKE='/path/to/Qt/5.12.3/gcc_64/bin/qmake'
meson build
ninja -C build
I get the following error:
../subprojects/gst-plugins-good/ext/qt/gstqtglutility.h:33:27: error: 'function' in namespace 'std' does not name a template type
Adding a #include <functional>
fixes this error but then I get this one:
../subprojects/gst-plugins-good/ext/qt/gstqtglutility.cc:358:39: required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:693:47: error: static assertion failed:
Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system
#define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message)
My G++ version is 7.4.0, so C++14 is supported.
What's wrong?