Results 1 to 7 of 7

Thread: Can't load the postgre driver!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2007
    Posts
    64
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Can't load the postgre driver!

    Hi guys!!

    Something different its happening with my program!! I my computer I can run the program so well,but in others computers, the Driver no loaded appears!!

    I can't understand!! All dlls the program need is with the .exe file!

    What could be??

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't load the postgre driver!

    You forgot to copy the QPSQL driver plugin to that other machine. Make sure it's in sqldrivers subdirectory and that you have copied all necessary DLLs to the same directory where your executable it.

  3. #3
    Join Date
    Aug 2007
    Posts
    64
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't load the postgre driver!

    Well guy, the files I'm sending for the "testers" are these:

    Pasta de C:\caixa_xpress

    10/01/2008 10:23 <DIR> .
    10/01/2008 10:23 <DIR> ..
    06/01/2008 18:36 662.016 caixa.exe
    12/10/2005 09:32 24.576 comerr32.dll
    12/10/2005 09:32 524.288 krb5_32.dll
    03/11/2005 11:50 1.064.960 libeay32.dll
    31/01/2003 18:41 916.849 libiconv-2.dll
    01/02/2003 15:51 51.016 libintl-2.dll
    20/04/2007 11:22 186.822 libpq.dll
    13/01/2005 17:19 15.960 mingwm10.dll
    05/12/2007 17:36 81.408 qsqlpsql4.dll
    05/12/2007 22:38 2.078.720 QtCore4.dll
    05/12/2007 23:11 9.114.112 QtGui4.dll
    05/12/2007 23:12 291.840 QtSql4.dll
    03/11/2005 11:50 200.704 ssleay32.dll
    dependency walker says that's no problem with the dlls here in my computer!!
    but in tester's computer the "driver not loaded" message appears!

    I forgot some file??
    The QPSQL driver plugin you meant isnt qsqlpsql4.dll??
    Last edited by jpn; 16th January 2008 at 11:49. Reason: missing [quote] tags

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't load the postgre driver!

    Create sqldrivers subdirectory in that directory and move qsqlpsql4.dll there.

  5. #5
    Join Date
    Aug 2007
    Posts
    64
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy Re: Can't load the postgre driver!

    No way!!

    I did it and still with the same problem!!
    We should think in computers that have never the QT libraries installed, this is the kind of computer the testers are using!!

    In my computer it works well but in others no!

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't load the postgre driver!

    You can use Dependency Walker to check whether all DLLs are in place. Just point it to qsqlpsql4.dll and it should list all required DLLs that you should copy to C:\caixa_xpress (of course except the standard windows DLLs).

  7. #7
    Join Date
    Aug 2007
    Posts
    64
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't load the postgre driver!

    Ohh guy!!

    I tryied again put the dlls in qsqldrivers and now it run well!!
    I didn't put qodbc (I didn't remember the correct name) dlls and it now run!!

    Thanks for your help!!

Similar Threads

  1. Program not compiling on Fresh install of Leopard
    By dvmorris in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2007, 10:22
  2. Deploying debug Qt application - failed to load ODBC driver
    By sureshbabu in forum Installation and Deployment
    Replies: 1
    Last Post: 1st November 2007, 12:35
  3. Postgre driver mistic in windows
    By zlatko in forum Installation and Deployment
    Replies: 2
    Last Post: 13th March 2007, 13:15

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.