[Development] Build faild on Ubuntu 12.04

Thomas McGuire thomas.mcguire at kdab.com
Wed Feb 13 17:22:01 CET 2013


Hi,

bug in the dbus library headers, they don't compile in C++11 mode. Either 
update dbus, disable dbus in Qt or disable C++11 in Qt.
See https://bugs.freedesktop.org/show_bug.cgi?id=46147.

Regards,
Thomas

On Wednesday 13 February 2013 16:59:53 Дмитрий Волосных wrote:
> It fails at this step:
> 
> g++ -c -m64 -pipe -I/usr/include/dbus-1.0
> -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -g -std=c++0x
> -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall
> -W -D_REENTRANT -fPIC -DQT_NO_LIBUDEV -DDBUS_API_SUBJECT_TO_CHANGE
> -DQT_BUILD_DBUS_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_CORE_LIB -I../../mkspecs/linux-g++-64 -I. -I../../include
> -I../../include/QtDBus -I../../include/QtDBus/5.0.1
> -I../../include/QtDBus/5.0.1/QtDBus -I../../include/QtCore
> -I../../include/QtCore/5.0.1 -I../../include/QtCore/5.0.1/QtCore
> -I.moc/debug-shared -o .obj/debug-shared/qdbusabstractinterface.o
> qdbusabstractinterface.cpp
> g++ -c -m64 -pipe -I/usr/include/dbus-1.0
> -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -g -std=c++0x
> -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall
> -W -D_REENTRANT -fPIC -DQT_NO_LIBUDEV -DDBUS_API_SUBJECT_TO_CHANGE
> -DQT_BUILD_DBUS_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_CORE_LIB -I../../mkspecs/linux-g++-64 -I. -I../../include
> -I../../include/QtDBus -I../../include/QtDBus/5.0.1
> -I../../include/QtDBus/5.0.1/QtDBus -I../../include/QtCore
> -I../../include/QtCore/5.0.1 -I../../include/QtCore/5.0.1/QtCore
> -I.moc/debug-shared -o .obj/debug-shared/qdbusinternalfilters.o
> qdbusinternalfilters.cpp
> qdbusinternalfilters.cpp: In function ‘QString
> qDBusIntrospectObject(const QDBusConnectionPrivate::ObjectTreeNode&,
> const QString&)’:
> qdbusinternalfilters.cpp:126:36: error: inconsistent user-defined
> literal suffixes ‘DBUS_INTROSPECT_1_0_XML_PUBLIC_IDENTIFIER’ and
> ‘DBUS_INTROSPECT_1_0_XML_SYSTEM_IDENTIFIER’ in string literal
> qdbusinternalfilters.cpp:126:36: error: unable to find string literal
> operator ‘operator"" DBUS_INTROSPECT_1_0_XML_PUBLIC_IDENTIFIER’
-- 
Thomas McGuire | thomas.mcguire at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3637 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130213/7b6e3885/attachment.bin>


More information about the Development mailing list