Results 1 to 5 of 5

Thread: SQLITE: Use self compiles driver instead of the build in one

  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default SQLITE: Use self compiles driver instead of the build in one

    Hi,

    currently I play with different settings for SQLite but I recognized that even if the dll is on the right place, Qt uses the build in driver. (I am using the normal SDK for Windows.) Now I don't want to rebuild the module without the build in SQLite driver because I would like to use the "original" one, and wonder if there is a way to force Qt to use my self compiled SQLite dll instead the build in one.


    Thanks,

    Lykurg

  2. #2
    Join Date
    Jun 2010
    Location
    Salatiga, Indonesia
    Posts
    160
    Thanks
    11
    Thanked 32 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    1

    Default Re: SQLITE: Use self compiles driver instead of the build in one

    I try to rebuild QSQLITE driver using the "original" SQLite. And Qt use my self compiled SQLite dll.

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: SQLITE: Use self compiles driver instead of the build in one

    First: I hate windows!
    Second: I HATE WINDOWS!
    Third: I REALLY HATE WINDOWS!

    Ehm, I found the error by accident! What was the problem. Before rebuilding the driver I backuped the old libraries. How? Good old CTRL+C & CTRL+V and get "Copy of qsqlite4.dll". For me that is a different file from "qsqlite4.dll" which I was building afterwards. But obviously when running my app, the "Copy of qsqlite4.dll" was used. Unbelievable! After deleting that file, all works as expected.

    So, I found one more reason to adore Linux

  4. #4
    Join Date
    Jun 2010
    Location
    Salatiga, Indonesia
    Posts
    160
    Thanks
    11
    Thanked 32 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    1

    Default Re: SQLITE: Use self compiles driver instead of the build in one

    Although you rename qsqlite4.dll to qsqlpsql4.dll, QSqlDatabase::drivers() will not print "QPSQL" but "QSQLITE" (assuming in sqldrivers directory only qsqlpsql4.dll). Maybe you forgot that it is a plugin.
    Last edited by saa7_go; 22nd July 2010 at 14:21. Reason: updated contents

  5. #5
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: SQLITE: Use self compiles driver instead of the build in one

    Quote Originally Posted by saa7_go View Post
    Maybe you forgot that it is a plugin.
    That's a point Still I hate windows for choosing the "wrong" plugin

Similar Threads

  1. QT & SQLite - driver not loaded
    By Tomasz in forum Newbie
    Replies: 5
    Last Post: 15th June 2014, 11:59
  2. QDevelop SQLite Driver Issue
    By Phan Sin Tian in forum Qt-based Software
    Replies: 4
    Last Post: 1st August 2010, 11:47
  3. Sqlite driver not loading
    By waynew in forum Installation and Deployment
    Replies: 4
    Last Post: 23rd May 2010, 13:15
  4. Embed SQLite driver
    By NoRulez in forum Qt Programming
    Replies: 2
    Last Post: 7th October 2009, 09:41
  5. SQLite driver unavailable
    By kandalf in forum Installation and Deployment
    Replies: 5
    Last Post: 11th February 2009, 16:36

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.