问题描述
我为Mac选择的IDE(至少对于C ++和Objective-C开发)是Xcode。我有一个64位的英特尔Mac与OS X Lion安装,和Xcode版本4.2从Mac App Store下载。\\
我的问题是,Qt显然不兼容Xcode 4(它发生崩溃时项目生成的qmake),所以我基本上问我如何可以集成Qt与Xcode。我不必能够从Xcode运行和调试项目,只是构建它。
所以我认为这可能是一个解决方案,使用qmake作为Xcode中的外部构建系统,问题是我不知道如何设置qmake作为我的构建系统,以便我可以在Xcode 4开发我的Qt应用程序。
Google显示多个网页,但此页面首次出现是一个相当确定的资源。
请检查:
有更多最近的,似乎有很好的信息。具体来说,提供完整的食谱。
更新25/05/2016: / p>由于 robots.txt
,前两个链接已经停止,因此无法归档。
但是,我已经更新了论坛帖子的链接。
这里有一个emiguel的答案。现在已经5岁了,所以我不知道现在还是多少。
最后,有关在Xcode中构建Qt的最新信息,请参见 - 太长,无法在此处复制,将由Qt ...
维护和更新
My IDE of choice for the Mac (at least for C++ and Objective-C development) is Xcode. I have a 64-bit Intel Mac with OS X Lion installed, and Xcode version 4.2 downloaded from the Mac App Store.
My problem is that Qt is apparently not compatible with Xcode 4 (it crashes when launching projects generated by qmake), so I'm basically asking how I can integrate Qt with Xcode. I don't have to be able to run and debug the project from Xcode, just build it.
So I thought it might be a solution to use qmake as an external build system within Xcode, the problem is that I have no idea how to set up qmake as my build system, so that I can develop my Qt applications in Xcode 4.
Please help me! :)
Google shows up many pages, but this page appeared at first glance to be a fairly definitive resource. However, it was last changed in 2006.
Please check out:
There is a much more recent Qt Developer Network forum post that seems to have good info in it. Specifically, this reply from August 19, 2011 gives a complete recipe.
Update 25/05/2016:
The first two links are now dead, and not archived due to robots.txt
.
However, I've updated the link to the forum post.
And here's a copy of emiguel's answer. It is now 5 years old, so I don't know how current it still is.
Finally, current information on building Qt in Xcode is available in Qt for OS X - which is too long to copy here, and will be maintained and updated by Qt...
这篇关于在Xcode中开发QT应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!