最好的交叉splatform c++ /QT4开发环境

时间:2022-07-28 15:07:07

I would like to develop cross-platform applications using C++ and QT4. I code on both Linux and Windows (MinGW).

我想用c++和QT4开发跨平台的应用程序。我在Linux和Windows (MinGW)上编写代码。

Currently I'm using KDevelop and it's QMake integration. On Windows I'm trying out Eclipse with QT integration plugin. However moving sources and updating profiles/IDE project files on both systems is tedious.

目前我正在使用KDevelop,它是QMake集成。在Windows上,我正在尝试使用QT集成插件Eclipse。然而,在这两个系统上移动源和更新概要文件/IDE项目文件都是冗长乏味的。

I'm looking into using CMake as it can generate Makefiles, KDevelop project files and Eclipse project files.

我正在考虑使用CMake,因为它可以生成makefile、KDevelop项目文件和Eclipse项目文件。

What's your opinion? What are you using for such kind of development?

你的意见是什么?你用什么来进行这样的开发?

8 个解决方案

#1


12  

What about QtCreator? It's still in beta but it's very light and it's really a joy to code with it.

QtCreator呢?它还在测试中,但它很轻,用它来编码真的是一种乐趣。

#2


6  

I've been using the new QtCreator and like it so far. Still beta though and may be missing a few tools or features that you need. QtDesigner is integrated with it. It uses QMake project (.pro) files behind the scenes, so you or other programmers can just use those directly on the command line (qmake and make) along with their favorite text editor if they don't want or can't use an IDE at some point. http://trolltech.com/developer/qt-creator

我一直在使用新的QtCreator,并且喜欢它。不过仍然是测试版,可能缺少一些您需要的工具或特性。QtDesigner集成了它。它在后台使用QMake project (.pro)文件,因此,如果您或其他程序员不希望或不能在某个时候使用IDE,可以直接在命令行(QMake和make)上使用这些文件和他们最喜欢的文本编辑器。http://trolltech.com/developer/qt-creator

#3


4  

i don't get why you have to use an IDE on both platforms. i use KDevelop on Linux, and for each test i just sync the sources to mac and windows and make/test locally on each. if something breaks, i fix it in the original sources, on Linux.

我不明白为什么必须在两个平台上使用IDE。我在Linux上使用kdevelopment,对于每个测试,我只是将源代码同步到mac和windows,并在每个测试上进行本地测试。如果有什么东西坏了,我就在Linux的原始源代码中修复它。

it's very seldom that i want to edit something on mac/win, and for that any decent editor is enough (BBedit/Notepad++)

我很少想要在mac/win上编辑一些内容,因此任何像样的编辑器都足够了(BBedit/Notepad++ +)

#4


4  

I would recommend CMake for this task. Once you get the hang of it, it's pretty easy to create cross-platform applications or libraries that use QT, using the FindQT CMake module.

我建议CMake来完成这个任务。一旦掌握了它,就很容易使用FindQT CMake模块创建使用QT的跨平台应用程序或库。

There are open-source QT and KDE projects that use CMake as their build system, so you can look at their code if you need to see real use cases (I did).

有一些开源的QT和KDE项目使用CMake作为他们的构建系统,所以如果您需要看到真实的用例,您可以查看它们的代码(我看到了)。

#5


3  

qt-apps.org environment tools has loads of free development environments listed, and much more general development tools. kde-apps.org environment tools has yet another bunch of tools, where some of them will work on Windows too.

org环境工具列出了大量的免费开发环境,以及更通用的开发工具。org环境工具还有很多工具,其中一些工具也可以在Windows上运行。

#6


2  

You can use the Qt plugin that you mention with Eclipse on Windows and Linux. The only thing you need to do when you move from one platform to the next is run qmake again to ensure your make files are correct and up-to-date. But I believe (I have not tried it) you can configure your eclipse environments to handle the qmake execution when it does an auto build. Note that the Qt plugin also allows you to do everything you do in Qt Designer.

您可以使用您在Windows和Linux上提到的Eclipse的Qt插件。当您从一个平台移动到下一个平台时,惟一需要做的就是再次运行qmake,以确保您的文件是正确的和最新的。但是我相信(我还没有尝试过)您可以配置您的eclipse环境,以便在qmake执行自动构建时处理它。注意,Qt插件还允许您在Qt Designer中执行所有操作。

#7


1  

What about Qt Designer?

Qt设计器呢?

#8


1  

Eclipse is a very very good candidate ( you get a nice SVN integration, Mylyn for tasks which is awesome and a world of other awesome plugins ) but sometimes you have to deal with weird problems. Otherwise it is a great IDE. Note: Really good for Java development.

Eclipse是一个非常好的候选者(您可以得到一个很好的SVN集成,Mylyn支持非常棒的任务,还有很多很棒的插件),但是有时您必须处理一些奇怪的问题。否则它就是一个很棒的IDE。注意:非常适合Java开发。

#1


12  

What about QtCreator? It's still in beta but it's very light and it's really a joy to code with it.

QtCreator呢?它还在测试中,但它很轻,用它来编码真的是一种乐趣。

#2


6  

I've been using the new QtCreator and like it so far. Still beta though and may be missing a few tools or features that you need. QtDesigner is integrated with it. It uses QMake project (.pro) files behind the scenes, so you or other programmers can just use those directly on the command line (qmake and make) along with their favorite text editor if they don't want or can't use an IDE at some point. http://trolltech.com/developer/qt-creator

我一直在使用新的QtCreator,并且喜欢它。不过仍然是测试版,可能缺少一些您需要的工具或特性。QtDesigner集成了它。它在后台使用QMake project (.pro)文件,因此,如果您或其他程序员不希望或不能在某个时候使用IDE,可以直接在命令行(QMake和make)上使用这些文件和他们最喜欢的文本编辑器。http://trolltech.com/developer/qt-creator

#3


4  

i don't get why you have to use an IDE on both platforms. i use KDevelop on Linux, and for each test i just sync the sources to mac and windows and make/test locally on each. if something breaks, i fix it in the original sources, on Linux.

我不明白为什么必须在两个平台上使用IDE。我在Linux上使用kdevelopment,对于每个测试,我只是将源代码同步到mac和windows,并在每个测试上进行本地测试。如果有什么东西坏了,我就在Linux的原始源代码中修复它。

it's very seldom that i want to edit something on mac/win, and for that any decent editor is enough (BBedit/Notepad++)

我很少想要在mac/win上编辑一些内容,因此任何像样的编辑器都足够了(BBedit/Notepad++ +)

#4


4  

I would recommend CMake for this task. Once you get the hang of it, it's pretty easy to create cross-platform applications or libraries that use QT, using the FindQT CMake module.

我建议CMake来完成这个任务。一旦掌握了它,就很容易使用FindQT CMake模块创建使用QT的跨平台应用程序或库。

There are open-source QT and KDE projects that use CMake as their build system, so you can look at their code if you need to see real use cases (I did).

有一些开源的QT和KDE项目使用CMake作为他们的构建系统,所以如果您需要看到真实的用例,您可以查看它们的代码(我看到了)。

#5


3  

qt-apps.org environment tools has loads of free development environments listed, and much more general development tools. kde-apps.org environment tools has yet another bunch of tools, where some of them will work on Windows too.

org环境工具列出了大量的免费开发环境,以及更通用的开发工具。org环境工具还有很多工具,其中一些工具也可以在Windows上运行。

#6


2  

You can use the Qt plugin that you mention with Eclipse on Windows and Linux. The only thing you need to do when you move from one platform to the next is run qmake again to ensure your make files are correct and up-to-date. But I believe (I have not tried it) you can configure your eclipse environments to handle the qmake execution when it does an auto build. Note that the Qt plugin also allows you to do everything you do in Qt Designer.

您可以使用您在Windows和Linux上提到的Eclipse的Qt插件。当您从一个平台移动到下一个平台时,惟一需要做的就是再次运行qmake,以确保您的文件是正确的和最新的。但是我相信(我还没有尝试过)您可以配置您的eclipse环境,以便在qmake执行自动构建时处理它。注意,Qt插件还允许您在Qt Designer中执行所有操作。

#7


1  

What about Qt Designer?

Qt设计器呢?

#8


1  

Eclipse is a very very good candidate ( you get a nice SVN integration, Mylyn for tasks which is awesome and a world of other awesome plugins ) but sometimes you have to deal with weird problems. Otherwise it is a great IDE. Note: Really good for Java development.

Eclipse是一个非常好的候选者(您可以得到一个很好的SVN集成,Mylyn支持非常棒的任务,还有很多很棒的插件),但是有时您必须处理一些奇怪的问题。否则它就是一个很棒的IDE。注意:非常适合Java开发。