[odb-users] QT config

Alex B intord at gmail.com
Thu Nov 9 04:24:22 EST 2023


Hi guys, trying to setup a simple QT project in QtCreator and got this
error from one of the odb files (screenshot would be a lot better, but
since it is not allowed, I am posting only the error). Basically, odb
compiler cannot find the correct path to the QtCore folder, which I added
to the $PATH etc, but no luck. I do not see any param for the odb compiler
to specify that as well.
How can it be resolved?

admin at gentoo ~/QTProjects/odb-qt $ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/16/bin:/opt/openjdk-bin-17/bin::/usr/include/qt5:/usr/lib64/qt5
admin at gentoo ~/QTProjects/odb-qt $ odb --std c++11 --profile qt -d sqlite
--generate-query property.h
In file included from <odb-prologue-2>:1:
/usr/local/include/odb/qt/basic/sqlite/default-mapping.hxx:7:10: fatal
error: QtCore/QString: No such file or directory
    7 | #include <QtCore/QString>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
admin at gentoo ~/QTProjects/odb-qt $ odb --std c++11 --profile qt/basic -d
sqlite --generate-query property.h
In file included from <odb-prologue-2>:1:
/usr/local/include/odb/qt/basic/sqlite/default-mapping.hxx:7:10: fatal
error: QtCore/QString: No such file or directory
    7 | #include <QtCore/QString>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
admin at gentoo ~/QTProjects/odb-qt $ odb --std c++11 -d sqlite
--generate-query property.h
property.h:4:10: fatal error: QString: No such file or directory
    4 | #include <QString>
      |          ^~~~~~~~~
compilation terminated.
admin at gentoo ~/QTProjects/odb-qt $


More information about the odb-users mailing list