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. "QPSQL driver is not connected" on another computer
Forum Updated to NodeBB v4.3 + New Features

"QPSQL driver is not connected" on another computer

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 4 Posters 2.7k 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.
  • B Offline
    B Offline
    bronstein87
    wrote on last edited by
    #1

    I compiled release version of program which works with postgresql using QPSQL driver, i added needed dlls, QPSQL plugin, libpq.dll and other dlls from postgresql\bin. After that .exe has started, everything was ok. but when i tried to start program on other machine error has occured and it do not see QPSQL driver. What could be the problem? Maybe i need to install postgres on other machine? but it would be strange...

    beeckscheB 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Check on "other pc" with
      http://www.dependencywalker.com/
      if it miss some DLL.

      B 2 Replies Last reply
      0
      • mrjjM mrjj

        Hi
        Check on "other pc" with
        http://www.dependencywalker.com/
        if it miss some DLL.

        B Offline
        B Offline
        bronstein87
        wrote on last edited by bronstein87
        #3

        @mrjj , i have already done that, nothing interesting. but strange, that if i delete some needed dll from directory, it also dont show that i need to add it. Rather it refers to libraries specifically for Postgres. For example, if i delete QtCore.dll it show that, but if i delete libpq.dll it shows nothing

        mrjjM 1 Reply Last reply
        0
        • mrjjM mrjj

          Hi
          Check on "other pc" with
          http://www.dependencywalker.com/
          if it miss some DLL.

          B Offline
          B Offline
          bronstein87
          wrote on last edited by
          #4

          @mrjj thats all it shows if i delete all postgres dll
          API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL
          API-MS-WIN-CORE-WINRT-L1-1-0.DLL
          API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
          API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
          DCOMP.DLL
          IESHIMS.DLL

          1 Reply Last reply
          0
          • B bronstein87

            @mrjj , i have already done that, nothing interesting. but strange, that if i delete some needed dll from directory, it also dont show that i need to add it. Rather it refers to libraries specifically for Postgres. For example, if i delete QtCore.dll it show that, but if i delete libpq.dll it shows nothing

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @bronstein87
            Hi
            ok. That's the normal way to find missing stuff but it sounds something else.
            Some of the DLLS are not directly loaded by the OS and it will not tell you directly
            as it does with say Qt Dlls.
            App cannot start as XX is missing. For SQL drivers it wont prevent app from starting.

            Did u also try on the QPSQL plugin and files ?

            B 1 Reply Last reply
            0
            • mrjjM mrjj

              @bronstein87
              Hi
              ok. That's the normal way to find missing stuff but it sounds something else.
              Some of the DLLS are not directly loaded by the OS and it will not tell you directly
              as it does with say Qt Dlls.
              App cannot start as XX is missing. For SQL drivers it wont prevent app from starting.

              Did u also try on the QPSQL plugin and files ?

              B Offline
              B Offline
              bronstein87
              wrote on last edited by bronstein87
              #6

              @mrjj tried dpwalker on postgres dlls and qpsql. qpsql needs:
              LIBGCC_S_DW2-1.DLL
              LIBPQ.DLL
              LIBSTDC++-6.DLL
              QT5CORE.DLL
              QT5SQL.DLL
              But its probably okay because qpsql situated in \plugins and dlls that he asks in general directory ( or its not okay?)

              What about postgres dlls, they are need:
              MSVCR120.DLL
              IESHIMS.DLL

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

                Hi,

                Something's wrong here. You seem to have dependencies on both MinGW and MSVC .dlls. You can't mix them.

                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
                2
                • B bronstein87

                  I compiled release version of program which works with postgresql using QPSQL driver, i added needed dlls, QPSQL plugin, libpq.dll and other dlls from postgresql\bin. After that .exe has started, everything was ok. but when i tried to start program on other machine error has occured and it do not see QPSQL driver. What could be the problem? Maybe i need to install postgres on other machine? but it would be strange...

                  beeckscheB Offline
                  beeckscheB Offline
                  beecksche
                  wrote on last edited by beecksche
                  #8

                  @bronstein87
                  Also have a look here: http://doc.qt.io/qt-5/windows-deployment.html

                  I always use the windeployqt tool when deploying windows applications.

                  1. In the command prompt, call qtenv2.bat from $QTDIR/bin
                  2. Then goto your application directory and call: windeployqt

                  Then all needed .dlls of Qt are added to the application directory (except the dll of your compiler).

                  1 Reply Last reply
                  1
                  • B Offline
                    B Offline
                    bronstein87
                    wrote on last edited by bronstein87
                    #9

                    libpq needs vcredist_x86 2013. so, after i installed it , everything became ok

                    1 Reply Last reply
                    2

                    • Login

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