Project ERROR: Unknown module(s) in QT: webengine

2019-05-05 17:22发布

问题:

I have compiled a framebuffer (without x11 and wayland) image for wandboard-quad with Yocto Jethro. I have used the Freescale Community BSP Jethro branch.The image contains most of the Qt 5.5 components and Qt Web Engine.

The qmake version is 5.5.1 from meta-toolchain-qt5 and Qt Creator is 5.5 as well.

I created the quick nano browser example to test the functionalities. But, Qt Creator gives me this Project ERROR: Unknown module(s) in QT: webengine when I cross compile to wandboard. Desktop compile is fine though.

Anyone knows what is wrong?

Edit: I have follow how to set up Qt Creator in this Set Up Instruction

Edit: First of all, Qt WebEngine has 2 versions: the open-source and the licensed one. Based on what ICS people said, there is barely any differences between the 2 versions.

Qt Webengine is not available in the SDK packagegroup-qt5-toolchain-target.bb. Therefore, it does not contain the all the Qt Web Engine Components.

To add Qt WebEngine to the SDK, I have modified the packagegroup-qt5-toolchain-target.bb by adding qtwebengine-dev and qtwebengine-mkspecs

Question: qmake does not recognize Qt Webengine module even all the necessary files are present in the sysroot. How do I fix this?

回答1:

My understanding (sorry no reference to hand), but cross compiling webengine is only supported on the paid for enterprise edition of Qt.



回答2:

I'm not sure it's documented anywhere, but Qt WebEngine is only available on desktop platforms. You might try using the lightweight WebView control instead.



回答3:

No Wayland or Server, you can compile with support EGLFS. In its add image recipe:

DISTRO_FEATURES_remove = "wayland x11"
DISTRO_FEATURES + = "opengl"

PACKAGECONFIG_GL_pn-qtbase = "gles2 linuxfb"
PACKAGECONFIG [gles2] = "-opengl s2 -eglfs,, virtual / virtual / egl libgles2"