[kdepim] [Bug 400934] kdepim-runtime does not compile with qt 5.11 (because QString::QString(const char*), QChar::QChar(char) and QString::QString(const QByteArray&) are private)

Manuel Nickschas bugzilla_noreply at kde.org
Mon Nov 12 10:54:26 GMT 2018


https://bugs.kde.org/show_bug.cgi?id=400934

Manuel Nickschas <sputnick at quassel-irc.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
     Ever confirmed|0                           |1
                 CC|                            |sputnick at quassel-irc.org
         Resolution|LATER                       |---

--- Comment #14 from Manuel Nickschas <sputnick at quassel-irc.org> ---
The compiler flags -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY
-DQT_NO_CAST_TO_ASCII are enforced by extra-cmake-modules in
KDEFrameworkCompilerSettings.cmake; so those are not added by Gentoo.

In addition, resources/ews/ewsclient/auth/ewspkeyauthjob.cpp misses an #include
<QUrlQuery>; also in that file, QString::toAscii() is used twice, which is
deprecated since Qt 5.0 (and I guess something in KDE's build chain disables
those methods, although I could not find the actual place).

Removing the flags from KDEFrameworkCompilerSettings.cmake, adding the missing
include and changing toAscii() to toLatin1() fixes the kdepim-runtime build for
me, but obviously these are hacks that should be fixed properly.

I'm reopening the bug, because these seem to be upstream issues rather than
Gentoo issues. If you disagree, feel free to close again.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list