https://bugs.kde.org/show_bug.cgi?id=404599
Bug ID: 404599
Summary: Fails to build with Qt < 5.8
Product: KDb
Version: 3.2.0 Beta
Platform: unspecified
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: General
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
When trying to build kdb-3.1.91 on openSUSE Leap 42.3 (with Qt 5.6.2), I got
compiler errors like this one:
/home/abuild/rpmbuild/BUILD/kdb-3.1.91/src/tools/KDbUtils.cpp: In function
'QDateTime KDbUtils::stringToHackedQTime(const QString&)':
/home/abuild/rpmbuild/BUILD/kdb-3.1.91/src/tools/KDbUtils.cpp:147:59: error:
'ISODateWithMs' is not a member of 'Qt'
return QDateTime(QDate(0, 1, 2), QTime::fromString(s, Qt::ISODateWithMs));
The reason is that Qt::ISODateWithMs is only available since Qt 5.8 it seems
(according to https://bugreports.qt.io/browse/QTBUG-59235).
The specified minimum version in KDb's CMakeLists.txt is 5.4.0 though.
FWIW, replacing Qt:ISODateWithMs by Qt::ISODate in these files (using sed) made
it build successfully (i.e. there were no other errors):
src/tools/KDbUtils.cpp
src/KDbField.cpp
src/KDbRecordEditBuffer.cpp
src/KDbTransaction.cpp
src/KDbRecordEditBuffer.cpp
src/KDbPreparedStatement.cpp
src/KDb.cpp
src/drivers/sqlite/SqlitePreparedStatement.cpp
src/drivers/mysql/MysqlPreparedStatement.cpp
src/drivers/sqlite/SqliteCursor.cpp
src/drivers/postgresql/PostgresqlPreparedStatement.cpp
src/drivers/mysql/MysqlKeywords.cpp
src/drivers/postgresql/PostgresqlCursor.cpp
--
You are receiving this mail because:
You are watching all bug changes.