【发布时间】:2014-06-18 16:03:05
【问题描述】:
我正在尝试使用 CMake 为基于 Qt 的应用程序制作捆绑包。
在链接方面似乎一切正常,但尝试运行应用程序时出现错误:
This application failed to start because it could not find or load the Qt platform plugin "cocoa".
Available platform plugins are: cocoa.
我不确定这意味着什么,因为两行输出似乎相互冲突。目录platforms/(包含libqcocoa.dylib)在MyApp/Contents/Resources/bin/ 中。请注意,MyApp 可执行文件也在那里。
【问题讨论】:
标签: macos qt cocoa plugins cmake