Hello!

The details are here:
https://www.linuxquestions.org/questions/slackware-14/can%27t-compile-mlt-6-10-0-on-stable-4175636167/#post5890571

If you need to compile mlt with QT5 support, QT5 must be compile with
C++11, and mlt needs added flag to tell configure about c++11.
Otherwise compile/install mlt first (defaults to qt4) and then
compile/install qt5.

Attached are 2 diffs against today's SBo master to resolve this issue.

Have fun.
-Ed
diff --git a/libraries/qt5/qt5.SlackBuild b/libraries/qt5/qt5.SlackBuild
index 7b829ff5f3..7351494397 100644
--- a/libraries/qt5/qt5.SlackBuild
+++ b/libraries/qt5/qt5.SlackBuild
@@ -50,6 +50,14 @@ VERSION=${VERSION:-5.7.1}
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 
+if [ "${WITHC11:-no}" == "yes" ]; then
+  C11FLAG="-std=c++11"
+  C11CONF="-c++std c++11"
+else
+  C11FLAG=""
+  C11CONF=""
+fi
+
 if [ -z "$ARCH" ]; then
   case "$( uname -m )" in
     i?86) ARCH=i586 ;;
@@ -128,7 +136,7 @@ fi
 echo "$PRCOD" >> qtwebengine/.qmake.conf
 
 export CFLAGS="$SLKCFLAGS"
-export CXXFLAGS="$SLKCFLAGS"
+export CXXFLAGS="$SLKCFLAGS $C11FLAG"
 ./configure -v \
   -confirm-license \
   -opensource \
@@ -159,6 +167,7 @@ export CXXFLAGS="$SLKCFLAGS"
   -release \
   -no-use-gold-linker \
   -pulseaudio \
+  $C11CONF \
   $RELOCATIONS \
   $BUILD_EXAMPLES
 
diff --git a/multimedia/mlt/mlt.SlackBuild b/multimedia/mlt/mlt.SlackBuild
index f3d75a2073..1ac0615fb7 100644
--- a/multimedia/mlt/mlt.SlackBuild
+++ b/multimedia/mlt/mlt.SlackBuild
@@ -50,7 +50,8 @@
 # 22-OCT-2016   add qt5 support, bug fixes/addenda (Larry Hajali)
 # 29-JAN-2017   version update
 # 16-APR-2017   Compiling with vdpau is no longer supported ffmpeg-3.x
-# 08-AUG-2018   verion update, remove qt5 patch
+# 08-AUG-2018   version update, remove qt5 patch
+# 18-AUG-2018	add -std=c++11 to allow compile with Qt5
 
 PRGNAM=mlt
 VERSION=${VERSION:-6.10.0}
@@ -82,9 +83,11 @@ if [ -f "$(which csharp)" ]; then csharp="csharp"; else csharp=""; fi
 if [ -f "$(which ruby)" ]; then ruby="ruby"; else ruby=""; fi
 
 # Use qt5 if present, otherwise system default
+QTCXX=""
 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)"
@@ -120,7 +123,7 @@ find -L . \
   -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
 CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS $QTCXX" \
 ./configure \
   --disable-debug \
   --prefix=/usr \

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/

Reply via email to