Building gst-plugins-bad fails on libqtsink_la-gstqsgtexture.lo in my
system (-current).
The compiler output is actually quite large at the point, but the crux
of the matter seems to be this message:
# error "Qt requires C++11 support"
Upon some investigation, it looks like the culprit is Qt 5.7, which
requires C+11.
The workaround would be to explictly enable the compiler to use C++11
during compilation. That is achieved by adding "-std=c++11" to
SLKCFLAGS. After that step, gst-plugins-bad builds correctly.
Below is the output of the failed build with the stock SlackBuild.
Thanks
Eduardo
CXX libqtsink_la-gstqsgtexture.lo
In file included from /usr/include/qt5/QtCore/qatomic.h:46:0,
from /usr/include/qt5/QtCore/qglobal.h:1145,
from /usr/include/qt5/QtQuick/qtquickglobal.h:43,
from /usr/include/qt5/QtQuick/qsgtexture.h:43,
from /usr/include/qt5/QtQuick/QSGTexture:1,
from gstqsgtexture.h:25,
from gstqsgtexture.cc:29:
/usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires
C++11 support" # error "Qt requires C++11 support"
^
In file included from /usr/include/qt5/QtCore/QObject:1:0,
from /usr/include/qt5/QtQuick/qsgtexture.h:44,
from /usr/include/qt5/QtQuick/QSGTexture:1,
from gstqsgtexture.h:25,
from gstqsgtexture.cc:29:
/usr/include/qt5/QtCore/qobject.h:322:9: warning: identifier 'decltype'
is a keyword in C++11 [-Wc++0x-compat] typedef
QtPrivate::FunctionPointer SlotType ; ^
In file included from /usr/include/qt5/QtQuick/qtquickglobal.h:43:0,
from /usr/include/qt5/QtQuick/qsgtexture.h:43,
from /usr/include/qt5/QtQuick/QSGTexture:1,
from gstqsgtexture.h:25,
from gstqsgtexture.cc:29:
/usr/include/qt5/QtCore/qglobal.h:1133:23: error: expected ',' or '...'
before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE;
^
In file included from /usr/include/qt5/QtCore/qatomic.h:46:0,
from /usr/include/qt5/QtCore/qglobal.h:1145,
from /usr/include/qt5/QtQuick/qtquickglobal.h:43,
from /usr/include/qt5/QtQuick/qsgtexture.h:43,
from /usr/include/qt5/QtQuick/QSGTexture:1,
from gstqsgtexture.h:25,
from gstqsgtexture.cc:29:
/usr/include/qt5/QtCore/qbasicatomic.h:90:13: error: 'QAtomicOps' does
not name a type typedef QAtomicOps Ops;
^
In file included from /usr/include/qt5/QtQuick/qtquickglobal.h:43:0,
from /usr/include/qt5/QtQuick/qsgtexture.h:43,
from /usr/include/qt5/QtQuick/QSGTexture:1,
from gstqsgtexture.h:25,
from gstqsgtexture.cc:29:
/usr/include/qt5/QtCore/qbasicatomic.h:93:23: error:
'QAtomicOpsSupport' was not declared in this scope
Q_STATIC_ASSERT_X(QAtomicOpsSupport::IsSupported,
"template parameter is an integral of a size not supported on this
platform"); ^ /usr/include/qt5/QtCore/qglobal.h:756:110: note: in
definition of macro 'Q_STATIC_ASSERT' enum
{Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, __COUNTER__) =
sizeof(QStaticAssertFailure)}
^ /usr/include/qt5/QtCore/qbasicatomic.h:93:5: note: in expansion of
macro 'Q_STATIC_ASSERT_X'
Q_STATIC_ASSERT_X(QAtomicOpsSupport::IsSupported,
"template parameter is an integral of a size not supported on this
platform"); ^ /usr/include/qt5/QtCore/qbasicatomic.h:93:51: error:
'::IsSupported' has not been declared
Q_STATIC_ASSERT_X(QAtomicOpsSupport::IsSupported,
"template parameter is an integral of a size not supported on this
platform"); ^ /usr/include/qt5/QtCore/qglobal.h:756:110: note: in
definition of macro 'Q_STATIC_ASSERT' enum
{Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, __COUNTER__) =
sizeof(QStaticAssertFailure)}
^ /usr/include/qt5/QtCore/qbasicatomic.h:93:5: note: in expansion of
macro 'Q_STATIC_ASSERT_X'
Q_STATIC_ASSERT_X(QAtomicOpsSupport::IsSupported,
"template parameter is an integral of a size not supported on this
platform"); ^ /usr/include/qt5/QtCore/qglobal.h:756:120: error:
template argument 1 is invalid enum
{Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, __COUNTER__) =
sizeof(QStaticAssertFailure)}
^ /usr/include/qt5/QtCore/qglobal.h:761:47: note: in expansion of
macro 'Q_STATIC_ASSERT' #define Q_STATIC_ASSERT_X(Condition, Message)
Q_STATIC_ASSERT(Condition)
^ /usr/include/qt5/QtCore/qbasicatomic.h:93:5: note: in expansion of
macro 'Q_STATIC_ASSERT_X'
Q_STATIC_ASSERT_X(QAtomicOpsSupport::IsSupported,
"template parameter is an integral of a size not supported on this
platform"); ^ In file included
from /usr/include/qt5/QtCore/qatomic.h:46:0,
from /usr/include/qt5/QtCore/qglobal.h:1145,
from