返回列表 发帖

[编译] QTE自带demos broswer编译错 QWebHistoryInterface找不到

In file included from bookmarks.cpp:46:
history.h:55:32: QWebHistoryInterface: No such file or directory
In file included from bookmarks.cpp:46:
history.h:83: error: expected class-name before '{' token
history.h:83: warning: `class HistoryManager' has virtual functions but non-virtual destructor
make: *** [bookmarks.o] 错误 1


首先要确保自己已经编译了webkit,就是在configure的时候有加 -webkit这个参数。

然后还出现这个错误那就是因为缺少头文件
/usr/local/Trolltech/QtEmbedded-4.5.3-arm/include/QtWebKit(就是你的qte-arm的那个目录)下的
qwebkitglobal.h  QWebHistoryInterface  qwebhistoryinterface.h
三个文件复制到~/demos/browser的编译目录下即可
少说废话,多做实事~

返回列表