kconfig build fails with recent qt5

Treeve Jelbert treeve at scarlet.be
Fri Aug 30 08:02:06 UTC 2013


doing a standalone compile of kconfig



FAILED: /var/lib/sorcery/build/c++   -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -
DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -
DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -
DQT_STRICT_ITERATORS -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -
D_BSD_SOURCE -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=500 -
march=native -mtune=native -m64 -pipe -ffast-math -funroll-loops -O3  -Wnon-
virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -
Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-
check-new -fno-common -Woverloaded-virtual -Werror=return-type -
fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG -
fPIE -Isrc/kconf_update -I/var/git/kde5libs/kconfig/src/kconf_update -Isrc/core 
-I/var/git/kde5libs/kconfig/src/core -I/opt/qt5/include -
I/opt/qt5/include/QtCore -I/opt/qt5/mkspecs/linux-g++ -MMD -MT 
src/kconf_update/CMakeFiles/kconf_update.dir/kconf_update.cpp.o -MF 
"src/kconf_update/CMakeFiles/kconf_update.dir/kconf_update.cpp.o.d" -o 
src/kconf_update/CMakeFiles/kconf_update.dir/kconf_update.cpp.o -c 
/var/git/kde5libs/kconfig/src/kconf_update/kconf_update.cpp
In file included from /opt/qt5/include/QtCore/qdatetime.h:45:0,
                 from /opt/qt5/include/QtCore/QDate:1,
                 from 
/var/git/kde5libs/kconfig/src/kconf_update/kconf_update.cpp:23:
/opt/qt5/include/QtCore/qstring.h: In constructor 
'KonfUpdate::KonfUpdate(QCommandLineParser*)':
/opt/qt5/include/QtCore/qstring.h:695:5: error: 'QString::QString(const 
char*)' is private
     QString(const char *ch);
     ^
/var/git/kde5libs/kconfig/src/kconf_update/kconf_update.cpp:113:44: error: 
within this context
     m_config = new KConfig("kconf_updaterc");
                                            ^


there are several other similar errors

It appears that QString will no longer allow such literals in the constuctot


More information about the Kde-frameworks-devel mailing list