• 4665阅读
  • 0回复

[提问]为什么交叉编译一个带QWebView的控件就会出现这样的错误提示? [复制链接]

上一主题 下一主题
离线xiang8000
 

只看楼主 倒序阅读 楼主  发表于: 2011-01-14
在工程文件中加入了QT +=webkit,然后在PC中编译顺利通过,并且执行程序显示网页正常,然后将工程用交叉编译器编译,编译途中出现这个错误提示:
怎么回事?看样子有点像环境变量没找到,但是同路径下的其他头文件都找到了的,唯独这个就找不到,怎么个情况?
main.cpp:4:22: error: qwebview.h: No such file or directory
main.cpp:19: error: ISO C++ forbids declaration of 'QWebView' with no type
main.cpp:19: error: expected ';' before '*' token
main.cpp: In constructor 'a::a()':
main.cpp:13: error: 'w' was not declared in this scope
main.cpp:13: error: expected type-specifier before 'QWebView'
main.cpp:13: error: expected `;' before 'QWebView'
main.cpp: In function 'int main(int, char**)':
main.cpp:26: error: 'class a' has no member named 'w'
make: *** [main.o] 错误 1
快速回复
限100 字节
 
上一个 下一个