ubuntu上缺少QWT安装文件

时间:2015-09-15 14:47:34

标签: c++ plot qt-creator qwt

我正在尝试在我的ubuntu计算机上安装QWT库,以便将其与QTcmake一起使用。我使用synaptic包管理器下载并安装版本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.

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

1 个答案:

答案 0 :(得分: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开发包