【发布时间】:2012-04-16 16:08:33
【问题描述】:
为了在我的 C++ 项目中显示图表,我想将 QWT 与 Qt 一起使用。我已经从 sourceforge 下载了最新版本的 QWT,并且我已经从官方网页下载了 MSVC2008(我的编译器)的 Qt 库 4.8.1。现在我想安装 QWT,但我无法完成安装。我在 SO 上找到的线程并没有解决我的问题。
这是QWT文档中解释的安装:
F.e Qt >= 3.0, MSVC with nmake:
qmake qwt.pro
nmake
cd examples
qmake examples.pro
nmake
我从 Qt 4.8.1 命令提示符启动 qmake,它会创建三个 *Makefile*s。现在我应该启动 nmake,但是 nmake 失败,无法找到任何 Qt 头文件。我从 Visual Studio 命令提示符调用 nmake。
c:\program files (x86)\qwt\include\qwt_array.h(25) : fatal error C1083: Cannot open include file: 'qmemarray.h': No such file or directory
qwt_plot_curve.cpp
c:\program files (x86)\qwt\include\qwt_array.h(25) : fatal error C1083: Cannot open include file: 'qmemarray.h': No such file or directory
qwt_plot_grid.cpp
c:\program files (x86)\qwt\include\qwt_array.h(25) : fatal error C1083: Cannot open include file: 'qmemarray.h': No such file or directory
qwt_plot_item.cpp
c:\program files (x86)\qwt\include\qwt_array.h(25) : fatal error C1083: Cannot open include file: 'qmemarray.h': No such file or directory
Generating Code...
Compiling...
qwt_plot_print.cpp
src\qwt_plot_print.cpp(14) : fatal error C1083: Cannot open include file: 'qpaintdevicemetrics.h': No such file or directory
我做错了什么?我应该如何安装 QWT 以便它看到我的 Qt 包含文件?
提前谢谢你!
【问题讨论】:
标签: c++ qt charts installation qwt