AW: [odb-users] wrong Qt include path
Christian Sell
christian at gsvitec.com
Wed Mar 4 05:38:44 EST 2015
Never mind. Had to add ${Qt5Core_INCLUDE_DIRS} to the INCLUDE option of the
odb_compile CMake command, and all was well. I did not realize that this
variable holds all paths, including the root Qt include path, so that
"<QtCore/QDate>" and "<QDate>" both work.
-----Ursprüngliche Nachricht-----
Von: odb-users-bounces at codesynthesis.com
[mailto:odb-users-bounces at codesynthesis.com] Im Auftrag von Christian Sell
Gesendet: Mittwoch, 4. März 2015 11:10
An: 'ODB Users Mailing List'
Betreff: [odb-users] wrong Qt include path
Hello,
Just started to integrate the Qt profile into my app to make use of the
datetime mappings, and promptly stumbled across the error below. The Qt
documentation says that "#include <QDate>" is the correct path, which also
works in QtCreator. However, ODB seems to work with different assumptions.
What gives?
In file included from <odb-prologue-2>:1:0:
C:/local/libodb-qt-2.3.1/odb/qt/date-time/sqlite/default-mapping.hxx:8:24:
fatal error: QtCore/QDate: No such file or directory
Thanks
Christian
More information about the odb-users
mailing list