Results 1 to 5 of 5

Thread: QPSQL driver not loaded

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2009
    Posts
    21
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QPSQL driver not loaded

    what do i have to do to use these FFFFFing Postgresql drivers

    i followed the instructions on building the driver
    they are now in %QTDIR%\plugins\sqldrivers

    but all i get is

    >>QSqlDatabase: QPSQL driver not loaded
    >>QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC

    gggrrrrrrr

    windows 7 64 bit
    latest postgresql
    qt 2010.02.01
    Last edited by drave; 15th April 2010 at 21:20.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QPSQL driver not loaded

    Did You have PostgreSQLdir\bin in PATH ?

  3. #3
    Join Date
    Dec 2009
    Posts
    21
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QPSQL driver not loaded

    ive had to take a step back at the moment

    one of the solutions in another thread recommended rebuilding qt, after which nothing worked so i'm re-installing then using mysql

    thanks anyway

  4. #4
    Join Date
    Feb 2008
    Posts
    50
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QPSQL driver not loaded

    For the next:
    get all the DLL files from PSQL bin dir to your software`s dir.
    get the qsqlpsql4.dll file, make a dir name sqldrivers in the directory where your executable resides and put it there...

    the thing should work now.

    BUT once i had a problem on computers with WINXP and QSQLITE driver... everything was working on other computers but only on these it couldn`t... i was using 4.6.2 driver. When i put 4.4.0 qsqlite driver.. things worked on that PCs. Very weird situation. 4.6.2 driver worked on many computers but it couldn`t load on those specific configurations and i did everything by the playbook... i distributed a lot of Qt software and know what to put so it works on any machine. Also i tried to compile the driver in the QSql dll... or as a plugin.. nothing worked. As a last resort i changed the drivers version and magically it worked. Some day i should play with the QSQLITE driver`s source and see whats changed...

  5. #5
    Join Date
    Apr 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPSQL driver not loaded

    Can I restart this topic as I need to use PostGIS, so the QPSQL driver is a must. Anyway, I've the same set-up as the thread starter drave, and the exact same problems (!!and to be quite honest the same sentiments at the whole set-up at the moment, I just want to throw the whole lot out the window and go back to a C# VS2005 set-up with Npgsql.net provider which worked perfect for me on another project!!!). I would say I've been through all possible solutions that can be found on the forums or google, but I wonder if any of them actually apply to a Windows 7 64 bit set-up. Is there a link/post to a definitive set of requirements/steps to getting PostgreSQl working with QT on this OS platform? Has anybody got it working on this platform and if so I would greatly appreciate you sharing how you manged it?

    Anyway, I'm at the point where I have qsqlpsql4.dll and qsqlpsqld4.dll. If I run dependency walker on qsqlpsql4.dll I am missing a GPSVC.dll module, yet its there in system32 dir, yet if I try and point/use it dependency walker complains that its 64bit and QPSQL still won't load. The dependency walker output problems are summarised here:

    ********************************| Module List |*********************************
    *
    * Legend: D Delay Load Module ? Missing Module 6 64-bit Module
    * * Dynamic Module ! Invalid Module
    * E Import/Export Mismatch or Load Failure
    *
    ************************************************** ******************************

    Module Load Order
    ----- ---------------------------------------------------------------------------------------------------------------------------
    [D? ] GPSVC.DLL Error opening file. The system cannot find the file specified (2).
    [ E ] c:\program files (x86)\mendeley desktop\QTCORE4.DLL Not Loaded
    [ E ] c:\program files (x86)\mendeley desktop\QTSQL4.DLL Not Loaded
    [ ] c:\windows\system32\SHLWAPI.DLL Not Loaded
    [ E ] c:\windows\system32\SSLEAY32.DLL Not Loaded
    [DE ] c:\windows\system32\IEFRAME.DLL



    If I run dependency walker on qsqlpsqld4.dll I am also missing the GPSVC.dll module here. The dependency walker output problems are summarised here:

    ********************************| Module List |*********************************
    * *
    * Legend: D Delay Load Module ? Missing Module 6 64-bit Module *
    * * Dynamic Module ! Invalid Module *
    * E Import/Export Mismatch or Load Failure *
    * *
    ************************************************** ******************************

    Module Load Order
    ----- ---------------------------------------------------------------------------------------------------------------------------
    [D? ] GPSVC.DLL Error opening file. The system cannot find the file specified (2).
    [ ] c:\windows\system32\SHLWAPI.DLL Not Loaded
    [ E ] c:\windows\system32\SSLEAY32.DLL Not Loaded
    [DE ] c:\windows\system32\IEFRAME.DLL

    So if anyone has any helpful information it would be much apprciated, thanks in advance.

Similar Threads

  1. Help with QMYSQL driver for QT 4.4.0: driver not loaded
    By khikho in forum Installation and Deployment
    Replies: 4
    Last Post: 1st April 2011, 16:00
  2. Replies: 4
    Last Post: 10th November 2009, 20:48
  3. QPSQL - Driver Not Loaded (WIN XP)
    By db in forum Qt Programming
    Replies: 8
    Last Post: 14th September 2009, 02:48
  4. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 13:57
  5. Can't find QPSQL driver!!
    By brevleq in forum Qt Programming
    Replies: 9
    Last Post: 30th October 2007, 01:29

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.