我刚开始使用Qt库。我试图编译我的第一个测试脚本与下面的头:如何在Linux中包含Qt库(qwebview.h)?
#include <qwebview.h>
但是它不会编译:
g++ main.cpp -o run.main
main.cpp:2:22: error: qwebview.h: No such file or directory
main.cpp: In function ‘int main()’:
main.cpp:10: error: ‘QWebView’ was not declared in this scope
我有安装我的Linux的Kubuntu机器上的库:
$ locate qwebview
/usr/include/qt4/Qt/qwebview.h
/usr/include/qt4/QtWebKit/qwebview.h
/usr/lib/qt4/plugins/designer/libqwebview.so
我跑了ldconfig
一次,以确保(我认为)可见的库,但显然,这是不够的。
如何设置我的机器以便我可以开始使用Qt编译软件?
不,它不:( – augustin 2010-11-20 02:39:38