如何在 OS X 上部署使用 SQLite 的 Qt 应用程序

How to deploy a Qt application that uses SQLite on OS X

我正在尝试在 OS X[= 上部署使用 SQLiteQt 应用程序43=]。 我只是 运行 命令:

macdeployqt MyApplication.app -dmg

我收到以下错误:

ERROR: no file at "/opt/local/lib/mysql55/lib/libmysqlclient.18.dylib"

我已经在 this link 上阅读了 SQLite 插件,但我不明白它是如何工作的。

注意: 我有一个文件夹:......./Qt5.3.2/5.3/clang_64/plugins/sqldrivers/

包含:

libqsqlite.dylib

libqsqlite_debug.dylib

和其他一些与其他 sql 驱动程序相关的库。

知道如何解决这个问题吗?

谢谢

作为 SGaist 的回答 here:

macdeployqt deploys all the plugins by default since it doesn't know which one you'll be using.

Note that you can build the .dmg in two steps, first run macdeployqt, then remove all the unused Sql plugins and then create the image.

这意味着如果我没有在我的应用程序中使用 MySQL 我可以忽略这个错误消息。