Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt psgl driver not loaded
Qt 6.11 is out! See what's new in the release blog

Qt psgl driver not loaded

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    HorstJ
    wrote on last edited by
    #1

    Hi All,

    sorry being the thousandth asking this, but none of the solutions helped me. I have a fresh postgres 9.4 x86 install and build the qt psgl plugin by myself. Then I copied qsqlpsqld.dll to myapppath/debug/sqldrivers and set Path to my postgres bin directory.

    Unfortunately I only get the well known "PSQL driver not loaded"

    Dependency Walker (seem to be missing, but for every dll I checked):
    api-ms-win...
    dcomp.dll
    gpsvc.dll
    ieshims.dll

    Debug output from shell:

    QFactoryLoader::QFactoryLoader() checking directory path "C:/PROGRA~4/Qt/5.3/mingw482_32/plugins/sqldrivers" ...
    QFactoryLoader::QFactoryLoader() checking directory path "myapppath/debug/sqldrivers" ...
    QFactoryLoader::QFactoryLoader() looking at "myapppath/debug/sqldrivers/libqsqlpsqld.a"
    "Plugin verification data mismatch in 'myapppath/debug/sqldrivers/libqsqlpsqld.a'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "myapppath/debug/sqldrivers/qsqlpsqld.dll"
    Found metadata in lib myapppath/debug/sqldrivers/qsqlpsqld.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
    "MetaData": {
    "Keys": [
    "QPSQL7",
    "QPSQL"
    ]
    },
    "className": "QPSQLDriverPlugin",
    "debug": true,
    "version": 328450
    }

    Got keys from plugin meta data ("QPSQL7", "QPSQL")
    QSqlDatabase: PSQL driver not loaded
    QSqlDatabase: available drivers: QPSQL QPSQL7

    Any ideas are welcome ;-)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Are you starting your program from Qt Creator ? And where did you modify your PATH variable ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • H Offline
        H Offline
        HorstJ
        wrote on last edited by
        #3

        HI,
        I tried both ways, creator and windows shell.
        I have changed the PATH variable global (windows settings) and do not override it in creator.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You should rather change the one from Qt Creator. The PATH environment variable should stay as clean as possible.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved