问题
I am trying to build Qt using meta-toolchain-qt5, but when I do this via poky-glibc-x86_64-meta-toolchain-qt5-cortexa7hf-vfp-vfpv4-neon-toolchain-2.0.1.sh, I don't see anything about QtWebEngine in the sysroot directory.
I also tried to build Qt using the following command
bitbake meta-toolchain-qt5
but it is the same result; I don't have anything regarding Qt WebEngine.
How can I build Qt with QtWebEngine support?
回答1:
Looking at meta-toolchain-qt5 it inherits populate_sdk_qt5, which in turns adds packagegroup-qt5-toolchain-target to the SDK. Taking a closer look at packagegroup-qt5-toolchain-target, reveals that the packagegroup doesn't directly include qtwebengine. Thus, if nothing else in packagegroup-qt5-toolchain-target drags in qtwebengine as a dependeny, qtwebengine won't be installed.
If you add qtwebengine to RDEPENDS_${PN} in packagegroup-qt5-toolchain-target, you'll get the relevant qtwebengine packages in your SDK.
来源:https://stackoverflow.com/questions/36318491/how-to-build-qt-with-qtwebengine-support-using-meta-toolchain-qt5