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 Driver dll support Postgres
Forum Updated to NodeBB v4.3 + New Features

Qt Driver dll support Postgres

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 3.2k Views 1 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.
  • P Offline
    P Offline
    parcpaes
    wrote on last edited by
    #1

    Hi, I have a problem moving a qt examples with postgres Db to another computer that does not have Qt, in the example and got the following libraries (libgcc_s_dw2-1.dll, mingwm10.dll, QtCore4.dll, QtGui4.dll, QtSql4 . dll qsqlpsql4.dll, libqsqlpsql4.a) which does not work sends me an error postgres driver support for Qt, I'm not sure I compiled the libraries using the following commands:
    set PATH =% PATH% C: \ postgresql8.4 \ include
    set PATH =% PATH% C: \ postgresql8.4 \ lib
    C: \ Qt \ 2010.04 \ qt \ src \ plugins \ sqldrivers \ psql> qmake-o Makefile "INCLUDEPATH + = c: \ PostgreSQL \ include " "LIBS + = C: \ PostgreSQL \ lib \ libpq.lib" psql.pro
    C: \ Qt \ 2010.04 \ qt \ src \ plugins \ sqldrivers \ psql> mingw32-make-f Makefile.Release
    And it works fine on a pc with qt and postgres installed and compiled
    As I can solve the problem, to take my example to another PC that does not have qt and successfully run.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      adam.bogocz
      wrote on last edited by
      #2

      I am not sure if I understood well, but I guess you have issue with SQL driver. By default Qt is lokingg for these files into the plugins dir. Read how-tos about application deployment. If I remenber correctly you can create directory called "plugins" within your project binary and place there the driver/plugin.

      1 Reply Last reply
      0
      • N Offline
        N Offline
        noah
        wrote on last edited by
        #3

        You need "Dependency Walker":http://www.dependencywalker.com/ .
        If I were to guess I'd say you need to distribute libpq.dll, libeay32.dll and ssleay32.dll with 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