【问题标题】:QWT installation file missing on ubuntuubuntu 上缺少 QWT 安装文件
【发布时间】:2015-09-15 14:47:33
【问题描述】:

我正在尝试在我的 ubuntu 机器上安装 QWT 库,以便与 QTcmake 一起使用。我使用突触包管理器下载并安装版本6.0.0,但问题是当我在代码中包含qwt/qwt.h 时,会出现以下编译错误:

/usr/include/qwt/qwt_global.h:13:21: fatal error: qglobal.h: No such file or directory
 #include <qglobal.h>
                     ^
compilation terminated.

我找不到任何可以修复它的东西。任何帮助表示赞赏。

【问题讨论】:

    标签: c++ plot qt-creator qwt


    【解决方案1】:

    http://packages.ubuntu.com 允许搜索文件名。

    搜索 qglobal.h: http://packages.ubuntu.com/search?searchon=contents&keywords=qglobal.h&mode=exactfilename&suite=trusty&arch=any

    所以你需要为 qt4 或 qt5 安装 qt 开发包

    ​​>

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-04-20
      • 2012-10-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-17
      相关资源
      最近更新 更多