使用Qt Creator交叉编译Qt应用程序的简单方法
Easy way to cross-compile a Qt application using Qt Creator?
我对这个c++和Qt Creator很陌生,我在Mac OS X中使用Qt Creator。有一个简单的方法来编译Windows和Linux平台吗?目前我正在做的是将源文件复制到Windows机器上(使用Qt)并编译它,这需要很多时间。
是否有一个命令或其他东西可以一次获得所有3个可执行文件?
它不支持开箱,你可能会在不同的味道之间混淆
对于这样的目标,我强烈建议:
- to use either centralised (svn) or distributed (git, hg) SCM
- to use continuus integration with 3 agents, each one in a different platform (can be VM or physical computer). You can use hudson or cruise control
:
- you develop locally, on whatever platform you prefer
- you push / commit / submit your changes
- the buildbox compiles on all platforms (while you can still work on the next feature)
- ideally, you run your unit tests as well
- once all builds on all platforms are finished, you got a status and a build on all targets
当想要处理多个版本的Qt或编译器时,这是相当有用的:返回值绝对值得在设置中投入时间(并且它可以很好地伸缩)
这远非微不足道,Trolltech不喜欢这个想法(因为它比它应该的更难)。
有交叉编译Qt/Win应用程序在Linux上在互联网上,这将有助于(只有目录可能与Mac不同,命令应该是相同的)。
交叉编译完成后,您需要创建一个Qt Creator的快捷方式,使用自定义PATH,将交叉编译器目录附加到PATH的其余部分。这样你就可以确保它被使用了。但不建议这样做。
为什么不直接使用正确设置的VM?
相关文章:
- 如何设置一个简单的CGAL+Qt程序
- Cmake无法在qt-creater/collect2上编译简单的测试程序:错误:ld
- Qt的新信号/时隙语法问题 - 连接到一个简单的函数
- 通过此指针访问时的成员差异和自身的成员指针(简单的 QT 示例问题)
- 请解释为什么这个简单的C++(Qt)代码如此奇怪
- QT创建者:简单程序未解决的外部符号和外部符号错误
- NAS(使用 qt/linux)- 无法建立简单的音频服务器连接测试
- 在Qt中:我可以输出到“stdout”吗,就像使用qDebug()输出到“stderr”一样简单
- 简单的WebKit2示例与QT
- QT-简单的HTTP服务器
- QT GUI最简单的方法可以从另一堂课访问MainWindow
- QT创建者简单的C 程序来自IDE,但不能从Command LNE运行
- 使用 QT 创建器通过树莓派上的 Wifi 执行简单的终端命令
- 简单的Qt视频流应用程序,只有声音,没有视频(白屏)
- 链接器错误在简单的QT C 应用程序中
- Qt简单的文本编辑器,怎么了?
- Qt - 简单循环的执行正在逐渐减慢
- Qt 5.0.2 简单 qWeb View 上的内存泄漏
- Qt C++简单的应用程序初学者问题
- QT:简单的文本从QLineEdit到QLabel的不同类