我正在尝试在我的ubuntu计算机上安装QWT
库,以便将其与QT
和cmake
一起使用。我使用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.
我找不到任何修复它的东西。任何帮助表示赞赏。
答案 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开发包