添加Qt到Xcode项目? [英] Adding Qt to Xcode project?

查看:1344
本文介绍了添加Qt到Xcode项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个相当复杂的Xcode项目,我想添加Qt。我知道我可以使用 qmake -spec macx-xcode project.pro 创建一个项目,但我不想手动配置我的老项目超过了自动生成的Qt项目。是否有另一个选项?

I have a fairly complex Xcode project and I want to add Qt to it. I know that I can create a new project using qmake -spec macx-xcode project.pro but I don't want to have to hand configure my old project over the auto generated Qt project. Is there another option?

[在下面更一般的问题中编辑]

[edited in a more general question below]

更容易地简单地使用qmake作为我的构建系统。因此,将我的旧项目生成过程添加到 .pro 文件中,并使用它来生成新的 .xcodeproj ?我只会这样做,如果我可以全面配置.pro文件,以便我不必手动配置 .xcodeproj - 这是可行的吗?我真的不想在每次运行qmake时手动配置 .xcodeproj

It seems like it would be easier to simply use qmake as my build system. Hence, adding my old project build process to the .pro file and use that to generate a new .xcodeproj? I would only do this if I could comprehensively configure the .pro file so that I don't have to hand configure the .xcodeproj - is this doable? I really don't want to have to mess around with hand configuring the .xcodeproj each time I run qmake.

基本上,是qmake(或一般的元建立)是正常构建系统的有效替代,这样我不需要调整生成的构建系统

Essentially, is qmake (or a meta-build in general) a valid substitute for a normal build system, such that I don't need to tweak the resulting build system generated by qmake?

除了手动和由Trolltech提供的教程?我担心维基百科说qmake主要是内部使用,没有记录。 p>

Are there better resources besides the manual and tutorial provided by Trolltech? I'm concerned that wikipedia says that qmake is primarily for internal use and not well documented.

推荐答案

使用Qt的一个重点是Gui的可移植性。通过使用qmake并允许用户/开发人员生成他们想要使用的任何构建系统(make,visualstudio,xcode),将此功能扩展到构建过程是有意义的。

One of the main points of using Qt is the portability of the Gui. It only makes sense to extend this feature to your build process by using qmake and allowing users/developers generate whichever build system they want to use (make, visualstudio, xcode).

不,qmake没有很好的文档记录,而且更令人沮丧的是,有没有多样的例子,如有make。但是,它是类似于make,应该是直观的。为什么不吸收开销来学习它并将利益传递给您的用户/开发人员?

No, qmake is not well documented and more poignantly there are not manifold examples like there are for make. But, it is similar to make and should be intuitive. Why not absorb the overhead to learn it and pass the benefit on to your users/developers?

这篇关于添加Qt到Xcode项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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