Mac 版 Qt 部署,在捆绑包内配置可执行文件

发布于 2024-10-07 22:24:01 字数 112 浏览 0 评论 0原文

我之前一直致力于尝试构建一个在应用程序包中包含 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

画离情绘悲伤 2024-10-14 22:24:01

当您从 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 ?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文