Results 1 to 2 of 2

Thread: PSQL path dependency

  1. #1
    Join Date
    Mar 2011
    Posts
    9
    Qt products
    Qt4
    Platforms
    Windows

    Exclamation PSQL path dependency

    Hello,

    I'm heaving some trouble to make my application work in other computers.

    I compiled PSQL drivers, worked in my PC ok. But when i put in others computers the driver do not load. I discovery that the app always try to load qsqlpsql4.dll, searching in C:\QtSDK\Desktop\Qt\4.7.3\mingw\plugins\sqldrivers , and just in this path.

    I tried to put the qsqlpsql4.dll in the app folder, windows path, etc.. and didn't work.

    How can I change this path dependency?

    Thank you

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: PSQL path dependency

    Put the Qt plugin in the correct location when you deploy. It should be in the "sqldrivers" sub directory of the directory containing your application exe for it to be found automatically, or you can put it anywhere and use the qt.conf file if you prefer. You also need to ensure all the SQL plugin's dependencies (not a part of Qt) are installed on the target system in places the operating system can find them.

Similar Threads

  1. can not use PSQL driver on windows7 machine
    By mak_user in forum Newbie
    Replies: 4
    Last Post: 26th May 2011, 14:28
  2. problems with building psql
    By szisziszilvi in forum Qt Programming
    Replies: 2
    Last Post: 29th March 2011, 08:06
  3. Replies: 8
    Last Post: 17th October 2009, 08:10
  4. psql driver and s60
    By [maTa] in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 16th October 2009, 22:16
  5. compile psql
    By raphaelf in forum Installation and Deployment
    Replies: 3
    Last Post: 27th May 2007, 00:26

Tags for this Thread

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.