Bug 368269 - qch file cannot be added because QSQLITE driver not loaded (AppImage)
Summary: qch file cannot be added because QSQLITE driver not loaded (AppImage)
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Documentation viewer (show other bugs)
Version: 5.0.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-05 10:31 UTC by Gregor Mi
Modified: 2018-09-20 13:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gregor Mi 2016-09-05 10:31:47 UTC
I am using the latest AppImage kdevelop.

What I did as workaround for https://bugs.kde.org/show_bug.cgi?id=368268:

        1. Go to cppreference.com

        2. Download Offline Version -> Qt Help Book -> qch file

        3. KDevelop: QtHelp Documentation -> Add -> select the qch file

        4. Error: "Qt Compressed Help file is not valid."

           On the console these lines appear:

QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
QSqlDatabasePrivate::removeDatabase: connection 'GetNamespaceName-33680608-2' is still in use, all queries will cease to work.

Milian suggested an AppImage package error.
Comment 1 Martin Fuhrer 2018-05-21 11:06:22 UTC
I'm getting the exact same errors reported by Gregor in recent kdevelop AppImage distributions (currently 5.2.3). When I first start kdevelop, the following lines are printed to the console:

QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: 
kdevelop.plugins.qthelp: Couldn't setup QtHelp Collection file

and whenever I try to load a qch Qt documentation file I get:

QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: 
QSqlDatabasePrivate::removeDatabase: connection 'GetNamespaceName-6723712-1' is still in use, all queries will cease to work.


implying that no sql drivers are available. The following library does exist in the AppImage, but for some reason it doesn't appear to get recognized by QSqlDatabase:

usr/lib/libsqlite3.so.0
Comment 2 Kevin Funk 2018-09-20 13:40:39 UTC
Fixed by:

commit 6c439f751b95e8bb1e657fe4c136b5ab19caa706 (HEAD -> 5.3, origin/5.3)
Author: Kevin Funk <kfunk@kde.org>
Date:   Thu Sep 20 15:04:44 2018 +0200

    appimage: Include qsqlite plugin in AppImage



Just checked, and using the cppreference offline documentation works fine now.

Thanks for your report!