Mac 版 Qt 部署,在捆绑包内配置可执行文件
我之前一直致力于尝试构建一个在应用程序包中包含 Qt 库的 Qt 项目。我注意到问题是 MacOS 目录中的可执行文件没有执行权限。有什么方法可以配置 MacOS 文件夹中的可执行文件默认包含执行权限的构建吗?
I was previously stuck on trying to build a Qt project that held the Qt libraries in the app bundle. I noticed the problem was that the executable inside the MacOS directory did not have execute permissions. Is there any way configure the build where the executable in the MacOS folder contains execute permissions by default?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您从 QtCreator 构建 exec 时,您通常不会关心 exe 权限。主要问题是在您的应用程序包中附加适用于 mac 的所有 Qt 框架(通过 macdeployqt 解决)
如果您尝试从头开始重新编译您的应用程序,您是否总是遇到相同的权限问题?
You generally never care about exe permission when you build your exec from QtCreator. The main problem is attach all Qt frameworks for mac in your app bundle(solve by macdeployqt)
If you try to recompile from scratch you app, do you have always the same permission problem ?