【问题标题】:QWT installation error - nmake failsQWT 安装错误 - nmake 失败
【发布时间】:2012-04-16 16:08:33
【问题描述】:

为了在我的 C++ 项目中显示图表,我想将 QWTQt 一起使用。我已经从 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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2012-01-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-06
      • 2021-11-08
      • 2012-01-08
      • 2014-06-01
      相关资源
      最近更新 更多