Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Debian7, assistant missing sql driver
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Debian7, assistant missing sql driver

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 845 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _rth__ Offline
    _rth__ Offline
    _rth_
    wrote on last edited by
    #1

    Hi.

    I am deplyoing my application to Debian 7.8 (64bit), but assistant refuses to launch:

    @QSqlDatabase: QSQLITE driver not loaded
    QSqlDatabase: available drivers:
    Error reading collection file '/opt/myapp/myapp.qhc': Cannot load sqlite database driver!.@

    Here is folder structure:
    @/opt/myapp/plugins/sqldrivers/libqsqlite.so
    /opt/myapp/myapp
    /opt/myapp/assistant
    /opt/myapp/myapp.qhc
    /opt/myapp/myapp.qch
    /opt/myapp/qt.conf
    /opt/myapp/...@

    and content of qt.conf:
    @[Paths]
    Plugins=./plugins/sqldrivers@

    This is how I am launching assistant:
    @./assistant -collectionFile myapp.qhc@

    I am using Qt 4.8.1 - built by myself. Driver file libqsqlite.so is taken from built Qt.

    Note: I am using this approach, when deploying myapp to CentOS (5) and it works there.

    Please help!

    1 Reply Last reply
    0
    • _rth__ Offline
      _rth__ Offline
      _rth_
      wrote on last edited by
      #2

      I turned out that this approach is not needed at all, proper sql drivers can be easily installed via apt-get or it can be added to control file in deb package.

      @apt-get install libqt4-sql-sqlite@

      Marking as solved.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved