Results 1 to 3 of 3

Thread: problems with building psql

  1. #1
    Join Date
    Nov 2010
    Location
    Budapest, Hungary
    Posts
    125
    Thanks
    17
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default problems with building psql

    Hi!

    I'm trying build the psql driver on Windows XP. I follow the description found here: http://doc.trolltech.com/4.3/sql-dri...-7-3-and-above

    It says only this:
    Install the PostgreSQL developer libraries. Assuming that PostgreSQL was installed in C:\psql, build the plugin as follows:

    cd %QTDIR%\src\plugins\sqldrivers\psql
    qmake -o Makefile "INCLUDEPATH+=C:\psql\include" "LIBS+=C:\psql\lib\ms\libpq.lib" psql.pro
    nmake

    Here is what I've done:
    -----------------------------------------------------------------------------
    The PostgreSQL has been installed. here: C:\Program Files\PostgreSQL\9.0
    I opened a Qt COmmand Prompt, Cd-d here: C:\Qt\2010.05\qt\src\plugins\sqldrivers\psql\
    Here I'm trying to build the project like this:
    C:\Qt\2010.05\qt\src\plugins\sqldrivers\psql>qmake -o Makefile "INCLUDEPATH+=C:\
    Program Files\PostgreSQL\9.0\include" "LIBS+=C:\Program Files\PostgreSQL\9.0\lib
    \libpq.lib" psql.pro

    But I get these warning messages:
    WARNING: (internal):1: Unescaped backslashes are deprecated.
    WARNING: (internal):1: Unescaped backslashes are deprecated.
    WARNING: (internal):1: Unescaped backslashes are deprecated.

    Where is the problem now? After this the mingw32-make does not work, the result is several errors about undeclared things. I'm not using nmake because when I had problems with installing qwt the solution was to use mingw32-make instead, so I thought this should work in this case too, I think nmake is not on my computer now (it used to be, but the coputer has been reinstalled).

    Szilvi
    Last edited by szisziszilvi; 28th March 2011 at 12:56.
    Szilvi

  2. #2
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: problems with building psql

    There are spaces in the paths:
    C:\Qt\2010.05\qt\src\plugins\sqldrivers\psql>qmake -o Makefile "INCLUDEPATH+=C:\
    Program Files\PostgreSQL\9.0\include" "LIBS+=C:\Program Files\PostgreSQL\9.0\lib
    \libpq.lib" psql.pro
    Instead, try copying include files and libs to c:\psql.

  3. #3
    Join Date
    Nov 2010
    Location
    Budapest, Hungary
    Posts
    125
    Thanks
    17
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problems with building psql

    the result is the same:
    C:\Qt\2010.05\qt\src\plugins\sqldrivers\psql>qmake -o Makefile "INCLUDEPATH+=C:\psql\include" "LIBS+=C:\psql\lib\ms\libpq.lib" psql.pro
    WARNING: (internal):1: Unescaped backslashes are deprecated.
    WARNING: (internal):1: Unescaped backslashes are deprecated.
    WARNING: (internal):1: Unescaped backslashes are deprecated.

    As there is no "ms" library in my file system under lib, I also tried
    C:\Qt\2010.05\qt\src\plugins\sqldrivers\psql>qmake -o Makefile "INCLUDEPATH+=C:\psql\include" "LIBS+=C:\psql\lib\libpq.lib" psql.pro
    but the result is the very same.


    Added after 20 minutes:


    wow
    The solution was is here:
    http://www.qtcentre.org/threads/3103...157#post158157

    no warning messages and mingw32-make worked.
    Off to try to connect to that database.
    Last edited by szisziszilvi; 29th March 2011 at 08:06.
    Szilvi

Similar Threads

  1. Problems building PyQGLViewer
    By jriotto in forum Installation and Deployment
    Replies: 0
    Last Post: 15th September 2009, 19:04
  2. Qt 4 ver. for Ubuntu 8.04.1(problems building Stellarium)
    By Henry W. Peters in forum Installation and Deployment
    Replies: 2
    Last Post: 7th December 2008, 15:31
  3. nmake problems while building mysql driver
    By MarkoSan in forum Installation and Deployment
    Replies: 27
    Last Post: 25th May 2007, 12:57
  4. Replies: 2
    Last Post: 8th March 2007, 22:22
  5. Problems building mysql plugin for Qt 4.1.2 on windows XP
    By Philip_Anselmo in forum Installation and Deployment
    Replies: 3
    Last Post: 17th May 2006, 15:38

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.