QWT安装错误 - nmake失败

时间:2012-04-16 16:08:33

标签: c++ qt charts installation qwt

为了在我的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 *。现在我应该启动 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 包含文件?

提前谢谢!

1 个答案:

答案 0 :(得分:0)

好的,我通过下载 QWT 的最新候选版本并按照 INSTALL 文件中此版本的说明解决了我的问题。但为什么旧版本没有编译 - 我没有任何线索!