Results 1 to 3 of 3

Thread: Embed SQLite driver

  1. #1
    Join Date
    Apr 2008
    Posts
    196
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    1

    Default Embed SQLite driver

    Hey @all,

    i want to embed the SQLite driver into my application, instead of deploying the qsqlite.dll as an extra file.

    So, in the project file i use:
    Qt Code:
    1. QTPLUGIN += qsqlite
    To copy to clipboard, switch view to plain text mode 
    in the main.cpp file i use:
    Qt Code:
    1. Q_IMPORT_PLUGIN (qsqlite)
    To copy to clipboard, switch view to plain text mode 

    From ld i get the error that "-lsqlite" couldn't be found.

    I configure and build Qt as:
    Qt Code:
    1. configure ... -qt-sql-sqlite -plugin-sql-sqlite
    To copy to clipboard, switch view to plain text mode 
    The result is that i have both in the plugins folder
    .) qsqlite.dll
    .) qsqlited.dll
    .) libqsqlite.a
    .) libqsqlited.a

    Best Regards
    NoRulez

  2. #2
    Join Date
    Oct 2009
    Location
    Rennes, France
    Posts
    20
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Embed SQLite driver

    To do it, you should have static plugin. So, you must rebuild sqlite plugin in static.
    But i don't know exactely how to do it ...
    Contributor from the French Qt community from developpez.com
    * Forum
    * FAQ Qt ( > 100 QR)
    * Advanced and Beginner Tutorials

  3. #3
    Join Date
    Apr 2008
    Posts
    196
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    1

    Default Re: Embed SQLite driver

    The problem is that I don't want to build the complete Qt library as static. I only want to emebd the SQLite driver.

Similar Threads

  1. QDevelop SQLite Driver Issue
    By Phan Sin Tian in forum Qt-based Software
    Replies: 4
    Last Post: 1st August 2010, 12:47
  2. SQLite driver unavailable
    By kandalf in forum Installation and Deployment
    Replies: 5
    Last Post: 11th February 2009, 17:36
  3. Cannot load SQLITE driver on clean target
    By ForestDweller in forum Installation and Deployment
    Replies: 1
    Last Post: 15th December 2008, 01:49
  4. SQLite
    By cyberboy in forum Installation and Deployment
    Replies: 1
    Last Post: 15th April 2008, 20:46
  5. SQlite driver not loaded error
    By ibergmark in forum Installation and Deployment
    Replies: 2
    Last Post: 17th March 2008, 02:09

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.