Results 1 to 3 of 3

Thread: QSqlDatabase: QSQLITE driver not loaded [Ubuntu Server 12.04]

  1. #1
    Join Date
    Feb 2011
    Posts
    354
    Thanks
    17
    Thanked 27 Times in 24 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default QSqlDatabase: QSQLITE driver not loaded [Ubuntu Server 12.04]

    Hello. I created the qt-based application on Ubuntu 12.04 x86 (qt 4.8.2) and it works fine there. Now I need to move it to Ubuntu Server 12.04 x64. I've installed libqt4-sql-sqlite, ia32-libs-multiarch, lib32icu48, so now the application can be launched, but when trying to access the sqlite database it gives the following errors:
    QSqlDatabase: QSQLITE driver not loaded
    QSqlDatabase: available drivers: QMYSQL3 QMYSQL
    I suppose there is something related to 32/64 bit, but don't know how to fix it. Could somebody help me?
    Last edited by mentalmushroom; 19th October 2012 at 13:34.

  2. #2
    Join Date
    Jun 2010
    Location
    Pretoria, South Africa
    Posts
    22
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSqlDatabase: QSQLITE driver not loaded [Ubuntu Server 12.04]

    You need to have your SQLite driver SO in the <appdir>/plugins/sqldrivers or <appdir>/sqldrivers directories

  3. #3
    Join Date
    Feb 2011
    Posts
    354
    Thanks
    17
    Thanked 27 Times in 24 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default Re: QSqlDatabase: QSQLITE driver not loaded [Ubuntu Server 12.04]

    Thanks, I will try it, but on my development machine I don't have it there (however, I have qt framework installed, of course). But I thought it is possible to install libqt4-sql-sqlite instead.

Similar Threads

  1. QtNetwork + Qsqlite = driver not loaded ?
    By LordG in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 28th January 2016, 22:29
  2. Replies: 2
    Last Post: 1st July 2011, 17:56
  3. QSqlDatabase: QODBC driver not loaded
    By sattu in forum Qt Programming
    Replies: 1
    Last Post: 22nd January 2011, 11:40
  4. Need Help:QSqlDatabase: QMYSQL driver not loaded
    By i4ba1 in forum Qt Programming
    Replies: 1
    Last Post: 9th January 2011, 18:39
  5. QSqlDatabase: QMYSQL driver not loaded
    By earthling in forum Qt Programming
    Replies: 13
    Last Post: 4th December 2010, 15:19

Tags for this Thread

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.