[Slackbuilds-users] CONFIRMED: mlt with qt5 requires C++11 (was: Updates - 20180811.1)

King Beowulf kingbeowulf at gmail.com
Mon Aug 13 19:35:19 UTC 2018


All:

If one uses Alien Bob's QT5-5.7.1 package, the mlt build defaults to
QT4.  To use QT5, you need to compile the SBo QT5 with c++11 and then
compile mlt with c++11

This was a requirement since mlt-6.6.0 but I never noticed during
testing - because I never built with QT5.

This is a moot point for Kdenlive on SBo, since the new KDE QT5
framework is not available in 14.2.  But for flowblade (I think, will
test tonight) or other mlt based s/w, qt5 with c++11 (or C++14) may be
required.
---------------------
qt5-5.7.1 SBo version
=====================
Modify the following:

export CFLAGS="$SLKCFLAGS"
export CXXFLAGS="$SLKCFLAGS -std=c++11"
./configure -v -c++std c++11 \

...

mlt-6.10.0 SBo version
======================
Modification are:

# Use qt5 if present, otherwise system default
if pkg-config --exists Qt5 ; then
  qt="--qt-libdir=$(pkg-config Qt5 --variable=libdir)
      --qt-includedir=$(pkg-config Qt5 --variable=headerdir)"
  QTCXX="-std=c++11"
else
  qt="--qt-libdir=$(pkg-config Qt --variable=libdir)
      --qt-includedir=$(pkg-config Qt --variable=headerdir)"
fi

and

export CFLAGS="$SLKCFLAGS"
export CXXFLAGS="$SLKCFLAGS $QTCXX"
./configure \

...

make clean
make
make install DESTDIR=$PKG
-------------------------

both now compile. For QT5 maybe add a user switch for c++11 rather than
have it be the default.


-Ed

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: OpenPGP digital signature
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20180813/ced75481/attachment.asc>


More information about the SlackBuilds-users mailing list