Skip to content

How to ignore a specific driver for QtSql? #153

Open
linuxdeploy/linuxdeploy
#283
@spiderkeys

Description

@spiderkeys

When I try to package my app (which does depend on QtSql), ldd will be run on each of the libraries within the ${QT_PATH}/plugins/sqldrivers/ directory, as you might expect to happen. However, now in Qt 6.6.1 (and not in 6.5.2), there is a new SQL driver called libqsqlmimer.so for the Mimer SQL library (https://www.mimer.com/mimer-sql-joins-qt-6-6-enhancing-database-connectivity/). ldd fails to find libmimerapi.so, and the appimage build fails as a result.

From what I can tell, the two obvious paths to resolve this are:

  1. Install Mimer SQL
  2. Remove the Mimer driver from my Qt install

Well, I have no need for Mimer (and you can't even trivially install it on Ubuntu anyway, because it is a paid product - likely Qt automotive related shenanigans), so I'm currently working around the issue by just outright deleting the driver.

That said, it would be nice if there was a way to tell linuxdeploy/plugin-qt to ignore specific drivers which aren't needed. In this case, I only use the sqlite driver in my app, so there is no need to deploy the others either.

I tried to find such a method, but didn't come across anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions