Results 1 to 6 of 6

Thread: database drivers - installation

  1. #1
    Join Date
    Mar 2010
    Posts
    23
    Qt products
    Qt4
    Platforms
    Windows

    Default database drivers - installation

    I use qt with visual studio 2008(Qt VS addin).

    I open qt project for postgresql drivers, build it (debug and release) and all works fine.
    in c:\Qt\4.6.2\plugins\sqldrivers\ I have new librarys and my qt application work fine with postgres.
    Now I try build firebird drivers. open project and build it (debug and release). In c:\Qt\4.6.2\plugins\sqldrivers\ I have new librarys but Qt dont see this driver. When I list availabale drivers I dont have QIBASE.

    Is there any chance to make visible this driver?

    sory for me poor english.

  2. #2
    Join Date
    Apr 2010
    Location
    Rostov-na-Donu, Russia
    Posts
    153
    Thanks
    2
    Thanked 26 Times in 23 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: database drivers - installation

    Did you add INCLUDE and LIB paths of Interbase SDK to your plugin project ?

  3. #3
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: database drivers - installation

    all libraries required by plugins have to be visible for your application. With postgresql plugin on test machine (without Qt and Postgres installed) I check this in following way:
    Copy your plugin dll to the same directory as your application exacutable then run dependency walker and check is this plugin in your exec dir can see all required libraries. If not, then add them to PATH or copy them to your app dir. When your application wants to load a plugin it has to have access to required dlls. Putting them to plugins directory has no meaning if this directory is not in your PATH environment variable.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  4. #4
    Join Date
    Mar 2010
    Posts
    23
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: database drivers - installation

    my compiled plugins are in c:\Qt\4.6.2\plugins\sqldrivers\ (postgresql, sqlite, firebird, odbc - debug and release version)
    when I list all avaliable plugins I get sqlite, odbc and postgresql.
    I can connect with postgresql without any problems. I dont need copy any ddl into my application folder.
    I need to know how can I use firebird plugin in same case like postgresql.

  5. #5
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: database drivers - installation

    Probably directory with Postgresql DLLs is in Yours PATH and Interbase no. So correct PATH.

  6. #6
    Join Date
    Mar 2010
    Posts
    23
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: database drivers - installation

    Yes! Lesiok thanks man!

Similar Threads

  1. mysql drivers for QT-4.5.2
    By jsmith in forum Qt Programming
    Replies: 1
    Last Post: 31st August 2009, 11:33
  2. SQL Drivers Distribution
    By kandalf in forum Installation and Deployment
    Replies: 1
    Last Post: 12th January 2009, 09:17
  3. building an app with QSqlDatabase::drivers()
    By mgrzyma in forum Installation and Deployment
    Replies: 5
    Last Post: 20th February 2007, 20:19
  4. Cannot use QSql drivers
    By xgoan in forum Newbie
    Replies: 2
    Last Post: 25th August 2006, 15:45
  5. Issues regarding QMySql drivers and mysql database
    By bera82 in forum Qt Programming
    Replies: 2
    Last Post: 10th August 2006, 17:50

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.