[odb-users] QT config

Boris Kolpackov boris at codesynthesis.com
Thu Nov 9 07:54:52 EST 2023


Alex B <intord at gmail.com> writes:

> 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.
> 
> admin at gentoo ~/QTProjects/odb-qt $ echo $PATH
> [...]:/usr/include/qt5:/usr/lib64/qt5
> admin at gentoo ~/QTProjects/odb-qt $ odb --std c++11 --profile qt -d sqlite
> --generate-query property.h

PATH is not the right place to add the header (/usr/include/qt5) and
library (/usr/lib64/qt5) search paths. Try to add -I/usr/include/qt5
to the ODB command line:

odb -I/usr/include/qt5 --std c++11 --profile qt -d sqlite \
--generate-query property.h



More information about the odb-users mailing list