【发布时间】:2016-05-30 14:57:10
【问题描述】:
我已经安装了诺基亚qt插件
Qt C++ Eclipse Integration
Version: 1.6.1
但它在 Eclipse MARS 2 (4.5.2) 中不起作用。 我还安装了 qt 5.6。
所以我需要以某种方式配置我的 cdt 项目以查看 qt 库。 让
#include <QApplication>
工作 也为了使项目成功构建。
怎么做?
我尝试将 C:\Qt\5.6\mingw49_32\include 添加到项目包含目录中,但是
#include <QApplication>
不工作。
我无法为 qmake 生成的 Makefile 使用导入的 Makefile 项目,因为它包含的每个 .o 文件条目
release/EntryPoint.o: EntryPoint.cpp bios/Bios.hpp \
...
../../../../Qt/5.6/mingw49_32/include/QtWidgets/QLabel \
../../../../Qt/5.6/mingw49_32/include/QtWidgets/qlabel.h \
... 100 of lines here
对于项目中每个添加的 cpp 文件,如果没有外部 hepl,这 100 行将不会出现。将 Makefile 导入 Eclipse 会为项目提供不工作的包含。
有没有办法让 qt 与任何版本的 eclipse 一起工作?
【问题讨论】:
-
将 Qt Creator 或 Visual Studio 与 Qt 一起使用:stackoverflow.com/questions/32894097/… 当我们有更好的 Qt 时,Eclipse 无缘无故地变得糟糕透顶。
标签: c++ eclipse qt eclipse-cdt