Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QPSQL driver not loaded (i know, it`s old theme but idk what to do)

QPSQL driver not loaded (i know, it`s old theme but idk what to do)

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 3 Posters 283 Views
  • 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.
  • P Offline
    P Offline
    protos
    wrote on last edited by protos
    #1

    I have this old problem with driver not loaded error, I have followed some guides such as distributing DLL beside my application exe, setting path to DLLs and so on. Please help me with this, I`ve spent entire day trying to fix it, but nothing works and I do not know what to do. Here some screenshots, I hope they will help. Currently using pg 14 and qt 5.5 MiniGW 4.9.2
    c7b19166-b54a-4239-a3d4-1b34ab265b62-image.png
    f575d264-58da-4343-a2a6-79494bf0de59-image.png
    558ecae4-ee58-4cfd-9790-8dba55528c30-image.png

    JonBJ 1 Reply Last reply
    0
    • P protos

      I have this old problem with driver not loaded error, I have followed some guides such as distributing DLL beside my application exe, setting path to DLLs and so on. Please help me with this, I`ve spent entire day trying to fix it, but nothing works and I do not know what to do. Here some screenshots, I hope they will help. Currently using pg 14 and qt 5.5 MiniGW 4.9.2
      c7b19166-b54a-4239-a3d4-1b34ab265b62-image.png
      f575d264-58da-4343-a2a6-79494bf0de59-image.png
      558ecae4-ee58-4cfd-9790-8dba55528c30-image.png

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @protos
      Start by setting environment variable QT_DEBUG_PLUGINS=1 when you run your application. Look at the disgnostic output you will get, especially the end of it where it will tell you why the QPSQL driver could not be loaded.

      I have followed some guides such as distributing DLL beside my application exe, setting path to DLLs and so on.

      You are supposed to use a tool like windeployqt to distribute/deploy your application.

      1 Reply Last reply
      1
      • M Offline
        M Offline
        mchinand
        wrote on last edited by
        #3

        What Postgres DLLs did you include? I would get it working by first just adding the bin folder of your Postgres installation to your PATH environment (and set QT_DEBUG_PLUGINS=1 as @JonB wrote). You can run the Windows Dependency Walker on the libpq.dll file to find out what DLLs in the Postgres bin folder that it needs and then use that list of DLLs when you want to deploy your application.

        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