Important: Please read the Qt Code of Conduct -

sqldrivers: PostgreSQL not found (Win10, Qt5.12.3, MSVC2017, Postgres 9.6.7)

  • In regards to Re: sqldrivers: PostgreSQL not found (Win10 i tried the same things:

    1. qmake -- PSQL_INCDIR=C:/postgresql-9.6.7/include PSQL_LIBDIR=C:/postgresql-9.6.7/lib/ms (also without ms as i don't have that path structure) as told in the documentation (
    2. qmake "INCLUDEPATH+=C:/postgresql-9.6.7/include" "LIBS+=C:/postgresql-9.6.7/lib/libpq.lib"
    3. Adding the postgres bin and lib dir to my path variable

    Can someone give me any pointers how to get postgres detected?

    Thank you very much.

  • It seems i do already have the drivers shipped with the binary release of QT, as i found them in /plugins/sqldrivers:

    Even as the documentation tells me otherwise:

    "Due to the practicalities of dealing with external dependencies, only the SQLite3 plugin is shipped with binary builds of Qt. To be able to add additional drivers to the Qt installation without re-building all of Qt, it is possible to configure and build the qtbase/src/plugins/sqldrivers directory outside of a full Qt build directory. Note that it is not possible to configure each driver separately, only all of them at once. Drivers can be built separately, though. If the Qt build is configured with -prefix, it is necessary to install the plugins after building them, too. For example:"

    So i don't need to build them anymore. Even if the problem itself is not solved (the same with the inital thread). Maybe i should not read the documentation first ;)

Log in to reply