linux中Qt编译时报错:qwt_dial.h: No such file or directory
2024-07-07
71
问题描述
在Linux中编译一个网上下载的Qt项目工程的源码时,报错:qwt_dial.h: No such file or directory,找了一下解决方法的流程,这里记录备忘,供参考。
问题解决过程
首先确保相关的库都安装了,我是Ubuntu系统,所以,我安装如下包:
sudo apt install libqwt-qt5-dev libqwt-headers
再次编译,仍然报错,然后在项目的.pro文件中新增配置如下:
INCLUDEPATH += /usr/include/qwt
LIBS += -L/usr/lib/ -lqwt
然后,编译,问题解决了。
更新于:4个月前赞一波!
相关文章
- VSCode 插件 Dyno File Utils 脱离鼠标管理文件
- 如何判断file input的文件来自存储还是相机?
- linux编译报错:/usr/include/c++/7/cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory
- c++运行时报错误:there is a mismatch in alloc and dealloc
- ENOENT: no such file or directory, lstat 'C:\Users\33612\AppData\Roaming\npm'
- git push时报remote rejected shallow update not allowed 的问题
- Linux编译内核模块时报: linux/scripts/recordmcount: No such file or directory
- 编译Linux内核模块时报:WARNING: Symbol version dump "Module.symvers" is missing.
- Qt自定义控件的开发流程
- Qt编译报错:error: LNK1181: cannot open input file 'debugmain.obj'
- QT编译时报错 error: lnk1158: cannot run 'rc.exe'
- C++编译报错:fatal error: speex/speex_resampler.h: No such file or directory
- C++编译报错:fatal error: pcap.h: No such file or directory
- gcc或g++编译链接时报undefined reference to “xxx”
- 自建的nuget Server推送时报错:Response status code does not indicate success: 406 (Not Acceptable)
- linux中gcc/g++编译时报错 fatal error: codecvt: No such file or directory
- vscode通过Remote-SSH插件连接Linux时报Error: XHR failed错误
文章评论
评论问答