Results 1 to 4 of 4

Thread: Problem in connecting to PostgreSQL

  1. #1
    Join Date
    Dec 2008
    Posts
    52
    Thanks
    3
    Qt products
    Qt4

    Default Problem in connecting to PostgreSQL

    Hi,
    I am not able to connect to the database in PostgreSQL.
    The error is QPSQL driver is not loaded.
    I have followed the steps given in help "How to build QPSQL Plugin"
    even then i am not able to connect to it.
    How to Load driver QPSQL.
    I have checked with SQLBrowser example in QTExamples it only shows MYSQL and QSQLITE drivers.
    Help me PLZ....

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problem in connecting to PostgreSQL

    did you add path to PostrgeSQL libs(dlls) in your PATH(LD_LIBRARY_PATH) variable?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3
    Join Date
    Dec 2008
    Posts
    52
    Thanks
    3
    Qt products
    Qt4

    Default Re: Problem in connecting to PostgreSQL

    I am Using linux RHEL5.1 I have installed PostgreSQL latest.
    Its working. I am Not able to load driver.
    I dont know is it created or not.
    When I followed the steps given in "How to Build QPSQL for UNIX ..."
    I only got libqsqlpsql.a file in it.
    there is no libqsqlpsql.so and libqsqlpsql.so.debug files in it. wat could be the reason is it correct.
    Last edited by c_srikanth1984; 23rd April 2009 at 09:22.

  4. #4
    Join Date
    Dec 2008
    Posts
    52
    Thanks
    3
    Qt products
    Qt4

    Default Re: Problem in connecting to PostgreSQL

    Anyone have the solution for my problem?

Similar Threads

  1. Problem connecting to remote database
    By graciano in forum Qt Programming
    Replies: 2
    Last Post: 16th April 2009, 10:59
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  3. Replies: 4
    Last Post: 23rd May 2008, 09:42
  4. QThread and PostgreSQL - a problem
    By Lesiok in forum Qt Programming
    Replies: 12
    Last Post: 9th April 2008, 09:07
  5. Replies: 15
    Last Post: 6th April 2008, 10:06

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.