Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Macdeployqt - ERROR: no file at "/opt/local/lib/mysql55/lib/libmysqlclient.18.dylib"
If I run the following command on my Mac (OS X 10.9 with Qt 5.3):
@macdeployqt MyApplication.app/ -dmg -qmldir=/Users/nik/dev/MyApplication/MyApplication/qml@
I get the following error message:
@ERROR: no file at "/opt/local/lib/mysql55/lib/libmysqlclient.18.dylib"@
Since I do use SQL in my application, I need to fix that one.
There is also a "bug report":https://bugreports.qt-project.org/browse/QTBUG-21913 about that error, but there was no action taken.
I have got QT += sql included in my project file and do use QSqlDatabase together with some others cool SQL stuff.
Can you please help me to fix that error? I have tried to run the application on some Mac's, but it is not working.
Hi and welcome to devnet,
Currently you might have to copy that library by hand in your bundle and correct the paths yourself (just make a little script for that)
Do you know where that file is located? I have tried to find it (libmysqlclient.18.dylib), but I could not find it.
Do you have mysql installed ?
Nope I don't just Qt 5.3.
Then you need to install the mysql client library using e.g. macports