Results 1 to 20 of 61

Thread: QPSQL problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    Somebody there???

  2. #2
    Join Date
    Mar 2008
    Posts
    141
    Thanks
    10
    Thanked 9 Times in 9 Posts

    Default Re: QPSQL problem

    when i was building the plugin manually on windows i had to copy libpq.a to H:\PostgreSQL\8.2\lib\ms. I dont know if this helps you. But you got the same building error (in your previous post) that i got.

  3. #3
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    Hi,

    I dont have \ms in C:\psql\lib.
    libpq.a is in C:\psql\lib.

  4. #4
    Join Date
    Mar 2008
    Posts
    141
    Thanks
    10
    Thanked 9 Times in 9 Posts

    Default Re: QPSQL problem

    Quote Originally Posted by LoneWolf View Post
    Hi,

    I dont have \ms in C:\psql\lib.
    libpq.a is in C:\psql\lib.
    But you installed the Postgres developer library as well?

    Look at this thread.
    http://www.qtcentre.org/forum/f-inst...post60433.html

    Maybe you have to create a folder and copy the file there.

  5. #5
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    \ms is to msvc, isnt it?

    I have mingw.

  6. #6
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    Does somebody have qt(+ mingw + psql) installed in Windows Vista here? If yes, it could make a step by step tutorial how install and integrate with psql using mingw in Vista.

  7. #7
    Join Date
    Mar 2008
    Posts
    37
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL problem

    I got it!!!

    I had to edit qtvars.bat. Put C:\psql\bin and C:\psql\lib.

    Thanks everyone!!!

  8. #8
    Join Date
    Nov 2009
    Location
    Austria
    Posts
    30
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    5

    Default Re: QPSQL problem

    Hi,
    got again the same problem, the driver isn't loaded.
    i created the dll with qmake -> no problem, i used the dll viewer to check which dlls are needed that the qpsql4 dll works copied them into the same directory but still my qt creator is not recognizing that the psql driver is installed.

    i tried mabey that i was in the wrong dir, so i cut out the other dlls --> then qt creator said no drivers installed, i mean he said drivers avilable: .... and named non, so i guess it was cause i deleted them, when i put them back in he finds them, but
    Qt Code:
    1. QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC
    To copy to clipboard, switch view to plain text mode 
    and not my psql driver.

    any1 got another idea?

    tobi

Similar Threads

  1. problem with opengl, zooming, drawpixels, and origin
    By ntp in forum General Programming
    Replies: 0
    Last Post: 22nd February 2008, 21:48
  2. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35
  3. QPSQL plugin problem
    By tuxi in forum Qt Programming
    Replies: 0
    Last Post: 12th March 2007, 20:44
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.