Results 1 to 6 of 6

Thread: Cannot build PostgreSQL driver

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Cannot build PostgreSQL driver

    After several attempts I was able to solve the problem.
    The problem was that my environment variables INCLUDE and LIB were not set.
    In order to build the entire Qt library or just a part of it (like my case building QPSQL plugin)
    besides extending the "path" variable it is also necessary to set the "include" and "lib" variables with the right paths.
    If those two variables are not present, they need to be created.
    Here is how I have set my variables:

    Created the following new variables:
    QTDIR=C:\Qt\4.6.3
    MINGW=C:\mingw

    Extended "path" variable adding the following paths:
    %QTDIR%\bin
    %MINGW%\bin

    Created "lib" variable with the following paths
    %QTDIR%\lib
    %MINGW%\lib

    Created "include" variable with the following paths
    %QTDIR%\include
    %MINGW%\include

    Please notice I am compiling with MinGW on WINXP, I don't know about other platforms but I imagine it will be somewhat similar.

    I hope this will help anybody else having a similar problem.

  2. #2
    Join Date
    Aug 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot build PostgreSQL driver

    same thing for me,
    with reimp dlltool make, the build seem works but when i print QSqlDatabase:rivers in another project, there don't have psql driver

    QtCreator 2010.04, QT 4.6.3, GCC 4.4, OS 7

  3. #3
    Join Date
    Aug 2010
    Location
    Poland - Koszalin/Poznań
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot build PostgreSQL driver

    I find out that compiling plugin with libraries from postgressql 8.4 fail, but with version 8.3 works as described on wiki.

Similar Threads

  1. PostgreSQL driver support
    By treyhaslem in forum Newbie
    Replies: 14
    Last Post: 26th October 2010, 09:01
  2. POSTGRESQL driver for windows
    By drave in forum Newbie
    Replies: 2
    Last Post: 2nd April 2010, 12:44
  3. PostgreSQL driver and Window 7
    By lasher in forum Installation and Deployment
    Replies: 0
    Last Post: 6th October 2009, 16:51
  4. PostgreSQL driver
    By clusty in forum Qt Programming
    Replies: 1
    Last Post: 21st August 2008, 00:55
  5. QT4 and Postgresql driver
    By alphaqt in forum Installation and Deployment
    Replies: 6
    Last Post: 27th February 2006, 15:50

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.