Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLite plugin is not packaged with Qt 6.4.2 #134

Open
VK6NX opened this issue Feb 4, 2023 · 4 comments
Open

SQLite plugin is not packaged with Qt 6.4.2 #134

VK6NX opened this issue Feb 4, 2023 · 4 comments

Comments

@VK6NX
Copy link

VK6NX commented Feb 4, 2023

The issue is possibly related to #133

directory 'sqldrivers' is missing after successful build within 'usr/plugins' of target directory, which makes running App unable to load database and produce the error: 'Qt QSqlDatabase driver not loaded'

Workaround is manually create 'sqldrivers' directory and copy libqsqlite.so into it.

@TheAssassin
Copy link
Member

TheAssassin commented Feb 4, 2023

Please provide a build log, e.g., a link to your CI job.

Edit: Should be deployed already for Qt 6, see https://github.com/linuxdeploy/linuxdeploy-plugin-qt/blob/master/src/qt-modules.h#L116.

@VK6NX
Copy link
Author

VK6NX commented Feb 4, 2023

Output log:

output.txt

@TheAssassin
Copy link
Member

Clearly linuxdeploy doesn't detect the libQtSql6. Looks like a bug. I'll have to try and reproduce this.

@TheAssassin
Copy link
Member

I see where the issue is coming from. Why the hell is your application not linked against libQt6Sql in the first place? linuxdeploy-plugin-qt relies on linuxdeploy to initially deploy all Qt dependency libraries. Then, it just ldds the binaries in your AppDir to detect which libraries it needs to deploy.

A second run of linuxdeploy with the Qt plugin should work around the problem. But I'd like to know where the libQt6Sql dependency has come from. Maybe you could try to run linuxdeploy without the Qt plugin, then use ldd to verify that nothing links to libQt6Sql.

A really weird bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants