我希望为守护进程(安装程序)创建一个pkg。我正在使用文档中的https://doc.qt.io/qt-5/qtwebsockets-sslechoserver-example.html示例来构建WebSocket服务器。
运行macdeployqt时,出现以下错误:
| => macdeployqt WebSocketServer
Empty filename passed to function
ERROR: Could not find bundle binary for "WebSocketServer"
ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: '': No such file or directory\n"
ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: '': No such file or directory\n"
ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: '': No such file or directory\n"
WARNING:
WARNING: Could not find any external Qt frameworks to deploy in "WebSocketServer"
WARNING: Perhaps macdeployqt was already used on "WebSocketServer" ?
WARNING: If so, you will need to rebuild "WebSocketServer" before trying again.
Empty filename passed to function
ERROR: Could not find bundle binary for "WebSocketServer"
ERROR: "error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: can't open file: (No such file or directory)\n"
ERROR: ""
我认为它必须仅是用于GUI的工具,而不能完全是用于控制台应用程序的工具。 幸运的是,我发现了以下内容:https://vincent.bernat.ch/en/blog/2013-autoconf-osx-packaging但是,它不是Qt特有的,我还发现:https://forum.qt.io/topic/60991/understanding-qt-and-mac-pkg-setups它对Qt特有很多,但是在尝试使用2之前,我必须手动添加库?不知道在哪里可以买到另一台机器试试这个。
这里有什么建议吗?也许与windeployqt类似,macdeployqt至少会引入所有可能需要打包的库。
是否有SSL EchoServer示例的打包应用程序示例?请提供任何帮助。