Unsolved libmysqlclient.so.18 is missing
-
@orzel1244 said in libmysqlclient.so.18 is missing:
linuxdeploytool
If you are actually using this linuxdeployqt tool, please take a look at this issue.
-
@Pablo-J.-Rogina It doesn't help me
-
Hi,
You likely have have MySQL version 20 if you have a recent Linux distribution.
But since you are not using MySQL with your application. Why not just ignore that warning ?
What do you get if you call
ldd
on the Qt SQLite plugin ? -
https://pastebin.com/ipHUP0j5 <- logs from linuxdeployqt
-
@SGaist said in libmysqlclient.so.18 is missing:
Why not just ignore that warning ?
Because the warning doesn't allow me to access my sqlite database
ldd on the plugin gives me:
https://pastebin.com/7Vs9bSB0 -
Looks like there's a missing feature to disable unused SQL plugins for linuxdeployqt.
Then you should consider re-building the MySQL plugin against the version you installed on your system.
-
I'm still getting error while trying to compile Qt from sources, I think it's too hard for me and it's better to use other lib for database :/
-
Then as a quick work around:
- Make a copy your sqldrivers folder.
- Remove all plugins in the original folder except the one you use.
- Re-run
linuxdeployqt
-
You want me to copy sqldrivers from Qt dir to the application dir or what? I'm sorry I don't understand what you meant
-
No, make a copy of the sqldrivers folder from the Qt installation you used to build your application. So you keep all the original files safe. Then in the original folder from your Qt installation, delete all the non SQLite related files. Doing so,
linuxdeployqt
will only deploy the SQLite driver. Once your done, just delete the modified sqldrivers folder and put back the copy you made just before.