Results 1 to 20 of 35

Thread: use qpsql

Hybrid View

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

    Default Re: use qpsql

    Where did you place the plugin and PostgreSQL DLLs?

  2. #2
    Join Date
    Jan 2006
    Posts
    273
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    42
    Thanked 1 Time in 1 Post

    Default Re: use qpsql

    hi jacek,
    i add libeay32.dll, libpq.dll and qsqlpsql.dll there where my .exe file is (in the release folder)

    have you a idea?
    Think DigitalGasoline

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

    Default Re: use qpsql

    Then move qsqlpsql.dll to the sqldrivers subdirectory.

  4. #4
    Join Date
    Jan 2006
    Posts
    273
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    42
    Thanked 1 Time in 1 Post

    Default Re: use qpsql

    hi jacek,
    this dll is allready under: D:\apps\Qt\4.1.3\plugins\sqldrivers
    Think DigitalGasoline

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

    Default Re: use qpsql

    Quote Originally Posted by raphaelf
    this dll is allready under: D:\apps\Qt\4.1.3\plugins\sqldrivers
    Then copy it to the sqldrivers subdirectory of the directory where your executable is.

  6. #6
    Join Date
    Jan 2006
    Posts
    273
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    42
    Thanked 1 Time in 1 Post

    Default Re: use qpsql

    Hi Jacek,
    I create the sqldrivers directory, copy this dlls: libeay32.dll, libpq.dll, qsqlpsql.dll
    I get the same error message: DRIVER NOT LOAD DRIVER NOT LOAD
    Mission Impossible..
    Think DigitalGasoline

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

    Default Re: use qpsql

    Quote Originally Posted by raphaelf
    I create the sqldrivers directory, copy this dlls: libeay32.dll, libpq.dll, qsqlpsql.dll
    Only qsqlpsql.dll should go the sqldrivers, the rest should remain in the same directory where your executable is.

    Did you compile the plugin and Qt with the same compiler and same build key?

  8. #8
    Join Date
    Jan 2006
    Posts
    273
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    42
    Thanked 1 Time in 1 Post

    Default Re: use qpsql

    Hi!
    I put just qsqlpsql.dll now in my sqldrivers directory.
    Yes i have compiled QT and Plugin with the same Compiler.

    What is a build key?
    Think DigitalGasoline

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

    Default Re: use qpsql

    Quote Originally Posted by raphaelf
    What is a build key?
    It's a special string that you can assign to your Qt DLLs and plugins. When Qt loads a plugin it checks whether both keys are the same, but since you have never heard about it, you have probably probably left the default values, so it shouldn't be a problem.

    Open libeay32.dll and libpq.dll in Dependency Walker and see if there are some DLLs missing. If it finds some, post them here.

  10. #10
    Join Date
    Jan 2006
    Posts
    273
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    42
    Thanked 1 Time in 1 Post

    Default Re: use qpsql

    Hi,
    libeay32.dll seems to miss nothing
    libpq.dll seems to miss (i get a yellow question mark):
    - COMERR32.DLL
    - LIBINTL-2.DLL
    - KRB5_32.DLL
    - SSLEAY32.DLL

    If i open LIBPQ.DLL from the original path: D:\apps\PostgreSQL\8.1\bin then its missing nothing..
    Think DigitalGasoline

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

    Default Re: use qpsql

    Quote Originally Posted by raphaelf
    If i open LIBPQ.DLL from the original path: D:\apps\PostgreSQL\8.1\bin then its missing nothing..
    Then copy all missing DLLs from D:\apps\PostgreSQL\8.1\bin to the directory where your executable is.

  12. #12
    Join Date
    Jan 2006
    Posts
    75
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 5 Times in 4 Posts

    Default Re: use qpsql

    Just put those DLL into c:\windows\system32\

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

    Default Re: use qpsql

    Quote Originally Posted by ball
    Just put those DLL into c:\windows\system32\
    This is a bit dangerous solution. What if there is another program that uses those DLLs, but for example their older versions?

  14. #14
    Join Date
    Jan 2006
    Posts
    75
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 5 Times in 4 Posts

    Default Re: use qpsql

    Yeah you are right but in this case, we need to make his program get running as first priority problem to be solved.

  15. #15
    Join Date
    Jan 2006
    Posts
    273
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    42
    Thanked 1 Time in 1 Post

    Default Re: use qpsql

    Hi everybody
    I put the dlls where my .exe is and i get the same error: driver not loaded..
    I really dont know what to do now

    P.S. If i start the sql browser example, i can just see: qsqlite and qodbc, but no qsqlpsql. Did this information help??

    Please help me to solve my problem..With QT3.2.1 i could connect me without problem to a postgre database..
    Think DigitalGasoline

Similar Threads

  1. Qt 4.1.4 plugin QPSQL
    By jcr in forum Installation and Deployment
    Replies: 4
    Last Post: 22nd June 2006, 22:55

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.