[mythtv-commits] Ticket #12399: Cannot build mythtv qjson master with qt-5.4
MythTV
noreply at mythtv.org
Thu Mar 5 08:30:43 UTC 2015
#12399: Cannot build mythtv qjson master with qt-5.4
--------------------------------------+-------------------------
Reporter: yiannividalis@… | Owner: dblain
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: Bindings - XML/JSON | Version: Master Head
Severity: medium | Keywords:
Ticket locked: 0 |
--------------------------------------+-------------------------
Hi, after the announcement re minimum qt version 5.2, I installed the qt
packages for openSuSE (tumbleweed, it's become a rolling release) which
installed version 5.4. That's on my laptop, which I can afford to break
MythTV without worring about WAF and CAF!
I'm unable to build mythtv since.
{{{
yianni at eagle1:~/mythtv-git/mythtv> make
sh version.sh /home/yianni/mythtv-git/mythtv
make -C external
make[1]: Entering directory '/home/yianni/mythtv-git/mythtv/external'
make -C FFmpeg all
(cd qjson ; qmake-qt5 -o Makefile)
[ -f qjson/include/QJson ] && \
(cd qjson/include ; rm -f QJson ; ln -s -f ../src QJson)
Makefile:47: recipe for target 'qjson-all' failed
make[1]: [qjson-all] Error 1 (ignored)
make -C qjson all
make[2]: Entering directory '/home/yianni/mythtv-
git/mythtv/external/qjson'
cd src/ && ( test -e Makefile || /usr/bin/qmake-qt5 /home/yianni/mythtv-
git/mythtv/external/qjson/src/src.pro -o Makefile ) && make -f Makefile
all
make[3]: Entering directory '/home/yianni/mythtv-
git/mythtv/external/qjson/src'
ccache g++ -c -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC
-march=pentium-m -DNDEBUG -fomit-frame-pointer -fPIC
-DQT_DISABLE_DEPRECATED_BEFORE -msse -pthread -g -Wall -Wpointer-arith
-D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -fvisibility-inlines-hidden
-Wmissing-declarations -Wno-switch -Woverloaded-virtual -funit-at-a-time
-D_REENTRANT -fPIC -DMMX -Di386 -D_GNU_SOURCE -DQT_CORE_LIB -I/usr/include
-I/usr/lib/qt5/mkspecs/linux-g++ -I. -isystem /usr/include -I/usr -isystem
/usr/include/libxml2 -I../include -I. -isystem /usr/include/qt5 -isystem
/usr/include/qt5/QtCore -I. -o moc_parserrunnable.o moc_parserrunnable.cpp
moc_parserrunnable.cpp:15:2: error: #error "This file was generated using
the moc from 5.4.0. It"
#error "This file was generated using the moc from 5.4.0. It"
^
moc_parserrunnable.cpp:16:2: error: #error "cannot be used with the
include files from this version of Qt."
#error "cannot be used with the include files from this version of Qt."
^
moc_parserrunnable.cpp:17:2: error: #error "(The moc has changed too
much.)"
#error "(The moc has changed too much.)"
^
moc_parserrunnable.cpp:22:5: error: ‘QByteArrayData’ does not name a type
QByteArrayData data[6];
^
moc_parserrunnable.cpp:28:24: error: ‘QByteArrayData’ was not declared in
this scope
- idx * sizeof(QByteArrayData)) \
^
moc_parserrunnable.cpp:32:1: note: in expansion of macro ‘QT_MOC_LITERAL’
QT_MOC_LITERAL(0, 0, 21), // "QJson::ParserRunnable"
^
moc_parserrunnable.cpp:29:5: error:
‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared
in this scope
)
^
moc_parserrunnable.cpp:32:1: note: in expansion of macro ‘QT_MOC_LITERAL’
QT_MOC_LITERAL(0, 0, 21), // "QJson::ParserRunnable"
^
moc_parserrunnable.cpp:28:24: error: ‘QByteArrayData’ was not declared in
this scope
- idx * sizeof(QByteArrayData)) \
^
moc_parserrunnable.cpp:33:1: note: in expansion of macro ‘QT_MOC_LITERAL’
QT_MOC_LITERAL(1, 22, 15), // "parsingFinished"
^
moc_parserrunnable.cpp:29:5: error:
‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared
in this scope
)
^
moc_parserrunnable.cpp:33:1: note: in expansion of macro ‘QT_MOC_LITERAL’
QT_MOC_LITERAL(1, 22, 15), // "parsingFinished"
^
moc_parserrunnable.cpp:28:24: error: ‘QByteArrayData’ was not declared in
this scope
- idx * sizeof(QByteArrayData)) \
^
moc_parserrunnable.cpp:34:1: note: in expansion of macro ‘QT_MOC_LITERAL’
QT_MOC_LITERAL(2, 38, 0), // ""
^
moc_parserrunnable.cpp:29:5: error:
‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared
in this scope
)
^
moc_parserrunnable.cpp:34:1: note: in expansion of macro ‘QT_MOC_LITERAL’
QT_MOC_LITERAL(2, 38, 0), // ""
^
moc_parserrunnable.cpp:28:24: error: ‘QByteArrayData’ was not declared in
this scope
- idx * sizeof(QByteArrayData)) \
^
moc_parserrunnable.cpp:35:1: note: in expansion of macro ‘QT_MOC_LITERAL’
QT_MOC_LITERAL(3, 39, 4), // "json"
^
moc_parserrunnable.cpp:29:5: error:
‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared
in this scope
)
^
moc_parserrunnable.cpp:35:1: note: in expansion of macro ‘QT_MOC_LITERAL’
QT_MOC_LITERAL(3, 39, 4), // "json"
^
moc_parserrunnable.cpp:28:24: error: ‘QByteArrayData’ was not declared in
this scope
- idx * sizeof(QByteArrayData)) \
^
moc_parserrunnable.cpp:36:1: note: in expansion of macro ‘QT_MOC_LITERAL’
QT_MOC_LITERAL(4, 44, 2), // "ok"
^
moc_parserrunnable.cpp:29:5: error:
‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared
in this scope
)
^
moc_parserrunnable.cpp:36:1: note: in expansion of macro ‘QT_MOC_LITERAL’
QT_MOC_LITERAL(4, 44, 2), // "ok"
^
moc_parserrunnable.cpp:28:24: error: ‘QByteArrayData’ was not declared in
this scope
- idx * sizeof(QByteArrayData)) \
^
moc_parserrunnable.cpp:37:1: note: in expansion of macro ‘QT_MOC_LITERAL’
QT_MOC_LITERAL(5, 47, 9) // "error_msg"
^
moc_parserrunnable.cpp:29:5: error:
‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared
in this scope
)
^
moc_parserrunnable.cpp:37:1: note: in expansion of macro ‘QT_MOC_LITERAL’
QT_MOC_LITERAL(5, 47, 9) // "error_msg"
^
moc_parserrunnable.cpp: In static member function ‘static void
QJson::ParserRunnable::qt_static_metacall(QObject*, QMetaObject::Call,
int, void**)’:
moc_parserrunnable.cpp:75:22: error: ‘IndexOfMethod’ is not a member of
‘QMetaObject’
} else if (_c == QMetaObject::IndexOfMethod) {
^
moc_parserrunnable.cpp: At global scope:
moc_parserrunnable.cpp:88:76: error: ‘const struct
qt_meta_stringdata_QJson__ParserRunnable_t’ has no member named ‘data’
{ &QObject::staticMetaObject,
qt_meta_stringdata_QJson__ParserRunnable.data,
^
moc_parserrunnable.cpp:89:64: error: ‘Q_NULLPTR’ was not declared in this
scope
qt_meta_data_QJson__ParserRunnable, qt_static_metacall, Q_NULLPTR,
Q_NULLPTR}
^
moc_parserrunnable.cpp:89:75: error: ‘Q_NULLPTR’ was not declared in this
scope
qt_meta_data_QJson__ParserRunnable, qt_static_metacall, Q_NULLPTR,
Q_NULLPTR}
^
moc_parserrunnable.cpp: In member function ‘virtual const QMetaObject*
QJson::ParserRunnable::metaObject() const’:
moc_parserrunnable.cpp:95:57: error: ‘class QObjectData’ has no member
named ‘dynamicMetaObject’
return QObject::d_ptr->metaObject ?
QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
^
moc_parserrunnable.cpp: In member function ‘virtual void*
QJson::ParserRunnable::qt_metacast(const char*)’:
moc_parserrunnable.cpp:100:26: error: ‘Q_NULLPTR’ was not declared in this
scope
if (!_clname) return Q_NULLPTR;
^
moc_parserrunnable.cpp: In member function ‘virtual int
QJson::ParserRunnable::qt_metacall(QMetaObject::Call, int, void**)’:
moc_parserrunnable.cpp:117:22: error: ‘RegisterMethodArgumentMetaType’ is
not a member of ‘QMetaObject’
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
^
moc_parserrunnable.cpp: In member function ‘void
QJson::ParserRunnable::parsingFinished(const QVariant&, bool, const
QString&)’:
moc_parserrunnable.cpp:128:20: error: ‘Q_NULLPTR’ was not declared in this
scope
void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const
void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)),
const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
^
moc_parserrunnable.cpp: In member function ‘virtual const QMetaObject*
QJson::ParserRunnable::metaObject() const’:
moc_parserrunnable.cpp:96:1: warning: control reaches end of non-void
function [-Wreturn-type]
}
^
Makefile:421: recipe for target 'moc_parserrunnable.o' failed
make[3]: *** [moc_parserrunnable.o] Error 1
make[3]: Leaving directory '/home/yianni/mythtv-
git/mythtv/external/qjson/src'
Makefile:45: recipe for target 'sub-src-all' failed
make[2]: *** [sub-src-all] Error 2
make[2]: Leaving directory '/home/yianni/mythtv-git/mythtv/external/qjson'
Makefile:47: recipe for target 'qjson-all' failed
make[1]: *** [qjson-all] Error 2
make[1]: Leaving directory '/home/yianni/mythtv-git/mythtv/external'
Makefile:67: recipe for target 'external' failed
make: *** [external] Error 2
}}}
mythtv is at commit 39dd1ee
{{{
qt5 packages:
yianni at eagle1:~/mythtv-git/mythtv> rpm -qa | grep -i qt5
libQt5Widgets5-5.4.0-5.1.i586
libQt5Network5-5.4.0-5.1.i586
libQt5Concurrent-devel-5.4.0-5.1.i586
libQt5Sql5-5.4.0-5.1.i586
libQt5PrintSupport-devel-5.4.0-5.1.i586
libQt5Core5-5.4.0-5.1.i586
libQt5Xml-devel-5.4.0-5.1.i586
libQt5Network-devel-5.4.0-5.1.i586
libQt5Test5-5.4.0-5.1.i586
libQt5Sql-devel-5.4.0-5.1.i586
libQt5OpenGL-devel-5.4.0-5.1.i586
libQt5Concurrent5-5.4.0-5.1.i586
libQt5Sql5-mysql-5.4.0-5.1.i586
libQt5DBus-devel-5.4.0-5.1.i586
libqt5-qtbase-common-devel-5.4.0-5.1.i586
libQt5Gui-devel-5.4.0-5.1.i586
libQt5X11Extras5-5.4.0-1.1.i586
libQt5OpenGL5-5.4.0-5.1.i586
libQt5DBus5-5.4.0-5.1.i586
libQt5Gui5-5.4.0-5.1.i586
libQt5Core-devel-5.4.0-5.1.i586
libQt5Widgets-devel-5.4.0-5.1.i586
libqt5-qtbase-doc-5.4.0-5.1.i586
libqt5-qtimageformats-5.4.0-1.1.i586
libQt5Test-devel-5.4.0-5.1.i586
libqt5-qtbase-platformtheme-gtk2-5.4.0-5.1.i586
libQt5PrintSupport5-5.4.0-5.1.i586
libQt5PlatformHeaders-devel-5.4.0-5.1.i586
libQt5Xml5-5.4.0-5.1.i586
libqt5-qtbase-devel-5.4.0-5.1.i586
}}}
I know Stuart's announcement mentions 5.2 as the min version but could
this be fixed for 5.4 as well? I wouldn't like to change the repos for
opensuse and possibly crash my KDE.
Thanks and best regards,
Yianni.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12399>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list