适用于Mac的Qt部署,在bundle中配置可执行文件 [英] Qt Deployment for Mac, configuring executable inside bundle

查看:632
本文介绍了适用于Mac的Qt部署,在bundle中配置可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前一直在试图建立一个在应用程序包中保存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?

推荐答案

你通常不会在乎当您从QtCreator构建您的执行程序时,请执行exe许可。主要问题是在应用程序包中附加所有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 ?

这篇关于适用于Mac的Qt部署,在bundle中配置可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆