Bug 437845 - No mysql Qt module provided for Flatpak bundle
Summary: No mysql Qt module provided for Flatpak bundle
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-FlatPak (show other bugs)
Version: 7.1.0
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-30 05:49 UTC by 319513897@outlook.com
Modified: 2022-01-08 15:53 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 319513897@outlook.com 2021-05-30 05:49:37 UTC
SUMMARY

flatpak not include a mysql driver, can't connect to mysql server

STEPS TO REPRODUCE
1. flatpak install digikam -y
2. try connect a mysql server

OBSERVED RESULT

"Driver not loaded"

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2021-05-30 07:22:56 UTC
Which Flatpak bundle did you use exactly ? 

1/ from KDE repository : https://apps.kde.org/digikam/
2/ from FlatHub repository : https://flathub.org/apps/details/org.kde.digikam
Comment 2 Maik Qualmann 2021-05-30 08:28:31 UTC
For the Flatpak from the KDE repository the problem should already be fixed:
Bug 404642

Maik
Comment 3 319513897@outlook.com 2021-05-30 09:06:07 UTC
Although I change to kdeapps/digikam, but it seem no difference.


```
$ flatpak install kdeapps digikam -y                                           
Looking for matches…

org.kde.digikam permissions:
    ipc                   cups           wayland       x11      file access [1]
    dbus access [2]       tags [3]

    [1] host, xdg-config/kdeglobals:ro
    [2] com.canonical.AppMenu.Registrar
    [3] nightly


        ID                             Branch        Op        Remote         Download
 1. [✓] org.kde.digikam.Locale         master        i         kdeapps         33.3 kB / 3.0 MB
 2. [✓] org.kde.digikam                master        i         kdeapps        135.8 MB / 167.5 MB

Installation complete.
$ flatpak run org.kde.digikam                                         
QSocketNotifier: Can only be used with threads started with QThread
libEGL warning: wayland-egl: could not open /dev/dri/renderD128 (没有那个文件或目录)
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE
```
Comment 4 Maik Qualmann 2021-05-30 20:31:55 UTC
I see this report is still open: https://phabricator.kde.org/T10579
I think we as the digiKam team have no influence on the creation of the Flatpak with Qt-MySQL drivers. I recommend that they use the AppImage we provide.

Maik
Comment 5 319513897@outlook.com 2021-05-31 00:25:54 UTC
yes, it just beacause lack qt-runtime, but flatpak has no this :(. Thanks for your reply. Please close this issue.