Results 1 to 6 of 6

Thread: qsqlpsql.dll not found on XP - but on win2k

  1. #1
    Join Date
    Jan 2006
    Posts
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default qsqlpsql.dll not found on XP - but on win2k

    The pogramm works fine on windows2000, but it doesn't on winXP(SP2)

    It can't load the postgreSQL plugin . I've tried different paths aso.
    It's realy interesting, if i start the program from network directories, it works also on XP.
    Where is the difference between win2k and XP (the handling of pathnames)?

    Does somebody knows an answer? Or even a workaround?

    Thanks - jmh

    I use QT4.1

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qsqlpsql.dll not found on XP - but on win2k

    Do you have postgresql client libraries installed on this XP machine? The plugin needs them.

  3. #3
    Join Date
    Jan 2006
    Posts
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qsqlpsql.dll not found on XP - but on win2k

    .. there is a complete postgreSQL installation (8.1.2)
    .. and - why does it work from netdirs?

  4. #4
    Join Date
    Jan 2006
    Location
    Lincoln, NE USA
    Posts
    177
    Thanks
    3
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qsqlpsql.dll not found on XP - but on win2k

    Quote Originally Posted by jmh
    .. there is a complete postgreSQL installation (8.1.2)
    .. and - why does it work from netdirs?
    From the Assistant:
    Qt Plugins
    Your application may also depend on one or more Qt plugins, such as the JPEG image format plugin or a SQL driver plugin. Be sure to distribute any Qt plugins that you need with your application.
    The search path for Qt plugins (as well as a few other paths) is hard-coded into the QtCore library. By default, the first plugin search path will be hard-coded as C:\path\to\Qt\plugins. Using pre-determined paths has certain disadvantages. For example, they may not exist on the target machine. For that reason you need to examine various alternatives to make sure that the Qt plugins are found:
    Using QApplication::addLibraryPath() or QApplication::setLibraryPaths().
    Using a third party installation utility to change the hard-coded paths in the QtCore library.
    Using qt.conf. This is the recommended approach since it provides the most flexibility.
    Since your XP can run the app when it resides on the network but not when it is in a local directory, perhaps copying the dlls that you put onto the network into a subdirectory under the local directory where your app resides, except call the subdirectory: "sqldrivers" and put the dlls in it.

  5. #5
    Join Date
    Jan 2006
    Posts
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qsqlpsql.dll not found on XP - but on win2k

    I was on vacation - sorry : thanks for your remarks but all of your suggested solutions i've tried already. - jmh

  6. #6
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: qsqlpsql.dll not found on XP - but on win2k

    i had similary problem...i used File Monitor application for look where my progam searching for drivers, and this info help me find it...

    look here

Similar Threads

  1. Visual Studio 2005 Express
    By Muzz in forum Installation and Deployment
    Replies: 22
    Last Post: 6th November 2008, 07:21
  2. Program crashes with assert error in xcb_lock.c
    By Valheru in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2007, 20:56
  3. KDE 3.5.0 crash while opening project
    By MarkoSan in forum KDE Forum
    Replies: 2
    Last Post: 19th October 2007, 17:21

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.