我正在尝试在 OS X 上部署使用 SQLite 的 Qt 应用程序。 我只是运行命令:
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,我可以忽略此错误消息。
关于macos - 如何在 OS X 上部署使用 SQLite 的 Qt 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42171060/