[Development] Qt 5.6.0-rc build issues on CentOS 6.7 x86_64 with g++

Walter Stefan Stefan.Walter at lisec.com
Thu Mar 3 08:50:26 CET 2016


Dear Thiago,



Thank you very much. I will start to skip now qt modules with the -skip configure flag to get from one error to the next one. Therefore I can't tell you, if there would be more errors within the same module. If you guide me how could I use your fixed sources, then I could continue testing after your fixes.



This is my compiler used:

g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16)

Copyright (C) 2010 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



This is my CentOS used:

CentOS release 6.7 (Final)

Linux aedu2-build-qt 2.6.32-573.18.1.el6.x86_64 #1 SMP Tue Feb 9 22:46:17 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux



I get this error after skipping module qtserialbus:

g++ -c -include .pch/Qt53DRender -pipe -O2 -std=c++0x -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_XKB -DQT3DRENDER_LIBRARY -DQT_BUILD_3DRENDER_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I. -I../../include -I../../include/Qt3DRender -I../../include/Qt3DRender/5.6.0 -I../../include/Qt3DRender/5.6.0/Qt3DRender -Ibackend -Igeometry -Igraphicshelpers -Iframegraph -Ifrontend -Ijobs -Ilights -Imaterialsystem -Irenderstates -Iio -Idefaults -Ipicking -Iraycasting -Iservices -Itexture -I../../include/Qt3DCore/5.6.0 -I../../include/Qt3DCore/5.6.0/Qt3DCore -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/include/QtGui/5.6.0 -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/include/QtGui/5.6.0/QtGui -I../../include/Qt3DCore -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/include -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/include/QtOpenGLExtensions -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/include/QtGui -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/include/QtCore/5.6.0 -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/include/QtCore/5.6.0/QtCore -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/include/QtConcurrent -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/mkspecs/linux-g++ -o .obj/scenemanager.o io/scenemanager.cpp

io/scenemanager.cpp: In constructor âQt3DRender::Render::SceneManager::SceneManager()â:

io/scenemanager.cpp:44: error: class âQt3DRender::Render::SceneManagerâ does not have any field named âQResourceManagerâ

io/scenemanager.cpp:44: error: expected â(â before â<â token

io/scenemanager.cpp:44: error: expected â{â before â<â token

io/scenemanager.cpp: At global scope:

io/scenemanager.cpp:44: error: expected unqualified-id before â<â token

make[3]: *** [.obj/scenemanager.o] Error 1

make[3]: Leaving directory `/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qt3d/src/render'

make[2]: *** [sub-render-make_first] Error 2

make[2]: Leaving directory `/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qt3d/src'

make[1]: *** [sub-src-make_first] Error 2

make[1]: Leaving directory `/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qt3d'

make: *** [module-qt3d-make_first] Error 2



I get this error after skipping module qt3d:

g++ -c -pipe -O2 -std=gnu++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_XKB -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NFC_LIB -DQT_CORE_LIB -I. -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/include -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/include/QtWidgets -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/include/QtGui -I../../../include -I../../../include/QtNfc -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/include/QtCore -I.moc -isystem /usr/include/libdrm -I.uic -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/mkspecs/linux-g++ -o .obj/moc_annotatedurl.o .moc/moc_annotatedurl.cpp

g++ -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../../../lib -o annotatedurl .obj/main.o .obj/mainwindow.o .obj/annotatedurl.o .obj/moc_mainwindow.o .obj/moc_annotatedurl.o   -L/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/lib -lQt5Widgets -lQt5Gui -L/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib -lQt5Nfc -lQt5Core -lGL -lpthread

/usr/bin/ld: warning: libQt5DBus.so.5, needed by /home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so, not found (try using -rpath or -rpath-link)

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `operator<<(QDebug, QDBusError const&)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusAbstractInterface::disconnectNotify(QMetaMethod const&)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusAbstractInterface::staticMetaObject at Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::beginMap() const at Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::beginMapEntry() const at Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::operator<<(QDBusObjectPath const&)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusConnection::systemBus()@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusAbstractInterface::asyncCallWithArgumentList(QString const&, QList<QVariant> const&)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::beginMap(int, int)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::endMapEntry()@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::endMap() const at Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusPendingCall::error() const at Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusAbstractInterface::connectNotify(QMetaMethod const&)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusPendingCall::~QDBusPendingCall()@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `typeinfo for QDBusAbstractInterface at Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusPendingCall::waitForFinished()@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusAbstractInterface::qt_metacall(QMetaObject::Call, int, void**)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusPendingReplyData::setMetaTypes(int, int const*)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::operator<<(QString const&)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::QDBusArgument(QDBusArgument const&)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::~QDBusArgument()@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::operator>>(QDBusVariant&) const at Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusAbstractInterface::qt_metacast(char const*)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::QDBusArgument()@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::operator<<(QDBusVariant const&)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusPendingReplyData::argumentAt(int) const at Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `operator>>(QDBusArgument const&, QVariant&)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusPendingReplyData::QDBusPendingReplyData()@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::operator>>(QDBusObjectPath&) const at Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::beginMapEntry()@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusAbstractInterface::QDBusAbstractInterface(QString const&, QString const&, char const*, QDBusConnection const&, QObject*)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusAbstractInterface::~QDBusAbstractInterface()@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::endMap()@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusPendingReplyData::~QDBusPendingReplyData()@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::atEnd() const at Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusPendingCall::isError() const at Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusConnection::~QDBusConnection()@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusPendingReplyData::assign(QDBusPendingCall const&)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusMetaType::registerMarshallOperators(int, void (*)(QDBusArgument&, void const*), void (*)(QDBusArgument const&, void*))@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::endMapEntry() const at Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusArgument::operator>>(QString&) const at Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/lib/libQt5Nfc.so: undefined reference to `QDBusAbstractInterface::isValid() const at Qt_5'

collect2: ld returned 1 exit status

make[4]: *** [annotatedurl] Error 1

make[4]: Leaving directory `/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/examples/nfc/annotatedurl'

make[3]: *** [sub-annotatedurl-make_first] Error 2

make[3]: Leaving directory `/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/examples/nfc'

make[2]: *** [sub-nfc-make_first] Error 2

make[2]: Leaving directory `/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity/examples'

make[1]: *** [sub-examples-make_first] Error 2

make[1]: Leaving directory `/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtconnectivity'

make: *** [module-qtconnectivity-make_first] Error 2



I get this error after skipping module qtconnectivity:

g++ -c -pipe -O2 -std=gnu++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_XKB -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_WEBCHANNEL_LIB -DQT_CORE_LIB -I. -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtwebsockets/include -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtwebsockets/include/QtWebSockets -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/include -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/include/QtNetwork -I../../../include -I../../../include/QtWebChannel -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/include/QtCore -I.moc -I/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/mkspecs/linux-g++ -o .obj/moc_websockettransport.o .moc/moc_websockettransport.cpp

g++ -Wl,-O1 -Wl,--enable-new-dtags -Wl,-rpath,/home/walteste/qt-5.6/qt-5.6.0-rc/qt-install/lib -o chatserver .obj/main.o .obj/chatserver.o .obj/websocketclientwrapper.o .obj/websockettransport.o .obj/moc_chatserver.o .obj/moc_websocketclientwrapper.o .obj/moc_websockettransport.o   -L/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtwebsockets/lib -lQt5WebSockets -L/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtbase/lib -lQt5Network -L/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtwebchannel/lib -lQt5WebChannel -lQt5Core -lpthread

/usr/bin/ld: warning: libQt5Qml.so.5, needed by /home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtwebchannel/lib/libQt5WebChannel.so, not found (try using -rpath or -rpath-link)

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QJSValue::QJSValue(QJSValue::SpecialValue)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QJSValue::toVariant() const at Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QJSValue::QJSValue(QJSValue const&)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QtQml::qmlAttachedPropertiesObject(int*, QObject const*, QMetaObject const*, bool)@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QQmlContext::nameForObject(QObject*) const at Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QJSValue::~QJSValue()@Qt_5'

/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QtQml::qmlContext(QObject const*)@Qt_5'

collect2: ld returned 1 exit status

make[4]: *** [chatserver] Error 1

make[4]: Leaving directory `/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtwebchannel/examples/webchannel/chatserver-cpp'

make[3]: *** [sub-chatserver-cpp-make_first] Error 2

make[3]: Leaving directory `/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtwebchannel/examples/webchannel'

make[2]: *** [sub-webchannel-make_first] Error 2

make[2]: Leaving directory `/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtwebchannel/examples'

make[1]: *** [sub-examples-make_first] Error 2

make[1]: Leaving directory `/home/walteste/qt-5.6/qt-5.6.0-rc/qt-source/qtwebchannel'

make: *** [module-qtwebchannel-make_first] Error 2



Best Regards,

Stefan





-----Original Message-----
From: Development [mailto:development-bounces+stefan.walter=lisec.com at qt-project.org] On Behalf Of Thiago Macieira
Sent: Donnerstag, 3. März 2016 09:57
To: development at qt-project.org
Subject: Re: [Development] Qt 5.6.0-rc build issues on CentOS 6.7 x86_64 with g++



On quinta-feira, 3 de março de 2016 05:45:32 PST Walter Stefan wrote:

> Dear Thiago,

>

> Thanks a lot.

>

> There are more compilation issues on CentOS 6.7 x86_64, shall I list

> them or what do you recommend?



Usually, I'd ask for bug reports, one for each. But let's have them here...



By the way, which GCC version is that?



--

Thiago Macieira - thiago.macieira (AT) intel.com

  Software Architect - Intel Open Source Technology Center



_______________________________________________

Development mailing list

Development at qt-project.org<mailto:Development at qt-project.org>

http://lists.qt-project.org/mailman/listinfo/development


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160303/bf620b31/attachment.html>


More information about the Development mailing list