Results 1 to 3 of 3

Thread: QPSQL once again

  1. #1
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default QPSQL once again

    Hi!

    I have some problem with using QPSQL driver on windows (with MSVC). What I did already:
    - downloaded posgresql-8.3.7-binaries-no-installer for windows
    - extracted it :]
    - the I did everything told in QtAssistant to build the QPSQL plugin
    - it has built ok, so i have the qsqlpsql.dll (and 'd' version also)
    - but it is not working ;(

    I checked dependencies with DependencyWalker and tried to copy all the needed dlls, but there were tousends of them and some of them I don't even have (but they were delayed-loaded). I did not help - still "Driver not loaded"

    So I downloaded posgres sources, and build libpq on my own but then when i want to compile QPSQL plugin I get a lot of:
    libpq.lib(something.obj): undefined reference to _imp_something
    so building failed :/

    What is more interesting on other machine I had exactly the same problem, but I got qsqlpsql.dll plugin from someone and it worked and didn't need any of dlls I was copying to the sqlplugins dir in my case...

    So does anyone has an idea what's going on?
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QPSQL once again

    no ideas? ;>
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  3. #3
    Join Date
    Apr 2008
    Posts
    45
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QPSQL once again

    I've only built the oracle driver. Occasionally I will run into the problem of the plugin cache not being correct. After you've installed the plugin, Delete the cache from the registry. Instructions are in the QSqlDriver page.

    That fixed my problem.

Similar Threads

  1. Replies: 2
    Last Post: 22nd April 2012, 07:12
  2. Replies: 4
    Last Post: 10th November 2009, 19:48
  3. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  4. Can't find QPSQL driver!!
    By brevleq in forum Qt Programming
    Replies: 9
    Last Post: 30th October 2007, 00:29
  5. QPSQL && table change notify
    By Sergey B. in forum Qt Programming
    Replies: 0
    Last Post: 3rd May 2007, 15:42

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.