Important: Please read the Qt Code of Conduct -

Compiling postgresql plugin

  • Hi all,
    I'm trying to compile the postgresql plugin on Linux, but I'm having a few problems. First of all my setup:

    @$ ls /usr/lib/libpq*
    /usr/lib/libpq.a /usr/lib/ /usr/lib/ /usr/lib/

    $ pg_config --includedir


    Now when I try to compile the library from the plugin/sqldrivers/psql directory I got:

    $ qmake "INCLUDEPATH+=/usr/postgresql/include" "LIBS+=-L/usr/lib -lpq"
    qpluginbase.pri:10: Unknown replace function: qtLibraryTarget

    I'm using Qt 4.7.4 and Postgresql 8.4. Moreover, is there a binary driver available as plugin to install?

  • Are you sure you are talking about a driver? Or are you talking about the postgree sql plugin for Qt?

  • Yeah, sorry, about the plugin.

Log in to reply