将 Qt 与 Eclipse 集成
我一直遇到在 Eclipse 中构建 Qt 项目的问题。首先,这是我安装 Qt 插件时所经历的步骤顺序。
我在 Eclipse for Java Developers 中进行开发,因此首先使用安装向导下载了 Eclipse 的 CDT 插件。
然后我下载并安装了最新的 Qt SDK 以及所有库,包括用于移动开发的库。
下一步是下载并设置 Eclipse 的 Qt 插件。
完成所有操作后,我开始配置 Eclipse 以与 CDT 和 Qt 配合使用。
1)我在Windows->Preferences->Qt这个属性中指出:
[名称:Qt4.7.3] [BinPath: C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin] [InincludePath: C:\QtSDK\Desktop\Qt\4.7.3\mingw\include]
2) 我更改了 Windows->Preferences->C/C++->New CDT Project Wizard->Makefile Project-> Builder Settings->Build Command to mingw32-make
,因为它尝试启动 make
,当然项目没有构建。
一切正常,但每次当我创建新的 Qt 或 C/C++ 项目时,我都必须修改它的 Builder 设置 属性和 MakeTarget< /strong> 属性,将构建命令重命名为 mingw32-make
。此外,当我保存项目时,Eclipse 应该重建它,但我什么也没得到,必须在调试模式下使用 MakeTarget->Build 手动构建它。
请告诉我在配置过程中我错过了什么。
I have stuck with problem of building Qt projects in Eclipse. First of all here is the sequence of steps which I went through when I installed Qt plugin.
I develop in Eclipse for Java Developers, so firstly I downloaded CDT plugin for eclipse, using Install Wizard.
Then I downloaded and install latest Qt SDK with all libraries, including libraries for mobile developement.
The next step was downloading and setting up Qt plugin for Eclipse.
After I have done everything, I began to configure Eclipse for work with CDT and Qt.
1) I pointed in Windows->Preferences->Qt this attributes:
[Name: Qt4.7.3]
[BinPath: C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin]
[IncludePath: C:\QtSDK\Desktop\Qt\4.7.3\mingw\include]
2) I changed Windows->Preferences->C/C++->New CDT Project Wizard->Makefile Project->Builder Settings->Build Command to mingw32-make
, because it tried to launch make
instead and of course projects didn't build.
Everything works fine but everytime when I create new Qt or C/C++ Project I have to modify it's Builder settings properties and MakeTarget properties, renaming build commands to mingw32-make
. Moreover when I save project, Eclipse should rebuild it, but I get nothing and have to build it manually, using MakeTarget->Build in debug mode.
Tell me please what did I miss during configuration.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论