在工程文件中加入了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