Qt5.6: cross compiling QtWebKit issue
-
Hi,
I have an application relying on QtWebKit, running on a platform with no GPU so I can't upgrade to QtWebEngine. I used to build QtWebKit on Buildroot using the release package qtwebkit-opensource-src-5.5.1.tar.xz and it worked fine.
Since QtWebKit has been removed from 5.6 release packages I'm trying to build from the github repo this time:
https://github.com/qtproject/qtwebkit/tree/5.6The exact version used is the same as the meta-qt5:
https://github.com/meta-qt5/meta-qt5/commit/e434995aWhile the build process goes well at first, libQt5WebKit.so generated just fine, then it complains about missing headers:
Source/WebKit/qt/WidgetApi/qwebframe.h:29:36: fatal error: QtWebKit/qwebkitglobal.h: No such file or directory
#include <QtWebKit/qwebkitglobal.h>Indeed, when looking at the previous release package, an include folder was there with QtWebKit/qwebkitglobal.h whereas in my case the header is in Source/WebKit/qt/Api/qwebkitglobal.h.
So my question: how do we generate this include folder with the copy of the right headers at the right place? Is there a script to do it?
I've tried using the previous Buildroot build procedure (qmake + make):
https://github.com/buildroot/buildroot/blob/2015.05/package/qt5/qt5webkit/qt5webkit.mk#L33Then I also tried following qtwebkit wiki by issuing:
cd $(@D); $(TARGET_MAKE_ENV) ./Tools/Scripts/build-webkit --qt --releaseBoth result in the same missing header error.
Any hint is appreciated ;)
Regards,
Gary -
Alright, found the issue, you need to create a .git folder at the qtwebkit root folder for the include headers creation. It'd be nice if this was documented somewhere:
https://github.com/meta-qt5/meta-qt5/blob/master/recipes-qt/qt5/qt5.inc#L36Regards,
Gary -
Hi,
I'd recommend using code.qt.io when cloning. GitHub is only a mirror.