Details
-
Bug
-
Resolution: Incomplete
-
P3: Somewhat important
-
None
-
5.9.2
-
None
-
Qt5.9.2 for Mac: qt-opensource-mac-x64-5.9.0.dmg
downloaded from [https://download.qt.io/official_releases/qt/5.9/5.9.0/]
System Version: macOS Sierra 10.12.6 (16G29)
Kernel Version: Darwin 16.7.0
Compiler:
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.7.0
Thread model: posixQt5.9.2 for Mac: qt-opensource-mac-x64-5.9.0.dmg downloaded from [ https://download.qt.io/official_releases/qt/5.9/5.9.0/ ] System Version: macOS Sierra 10.12.6 (16G29) Kernel Version: Darwin 16.7.0 Compiler: Apple LLVM version 8.1.0 (clang-802.0.42) Target: x86_64-apple-darwin16.7.0 Thread model: posix
Description
Following two errors wih solution:
- First
File:
/Volumes/data/Qt5.9.2/5.9.2/clang_64/lib/QtCore.framework/Versions/5/Headers/qdebug.h
Code:
141 #ifdef Q_COMPILER_UNICODE_STRINGS
142 inline QDebug &operator<<(char16_t t) { return *this << QChar(ushort(t)); }
143 inline QDebug &operator<<(char32_t t) { putUcs4(t); return maybeSpace(); }
144 #endif
Compiler error:
/Volumes/data/Qt5.9.2/5.9.2/clang_64/lib/QtCore.framework/Headers/qdebug.h:142: Fehler: expected '(' for function-style cast or type construction
inline QDebug &operator<<(char16_t t) { return *this << QChar(ushort(t)); }
^~~~~~
Solution, change line 142 as followed:
142 inline QDebug &operator<<(char16_t t) { return *this << QChar((ushort)(t)); }
- Second
File:
/Volumes/data/Qt5.9.2/5.9.2/clang_64/lib/QtGui.framework/Versions/5/Headers/qrgba64.h
Code:
123 Q_DECL_CONSTEXPR ushort toRgb16() const
124 {
125 return ushort((red() & 0xf800) | ((green() >> 10) << 5) | (blue() >> 11));
126 }
Compiler error:
/Volumes/data/Qt5.9.2/5.9.2/clang_64/lib/QtGui.framework/Headers/qrgba64.h:125: Fehler: expected '(' for function-style cast or type construction
return ushort((red() & 0xf800) | ((green() >> 10) << 5) | (blue() >> 11));
^~~~~~
Solution, change line 125 as followed:
125 return (ushort)((red() & 0xf800) | ((green() >> 10) << 5) | (blue() >> 11));