本文介绍了项目错误:QT 中的未知模块:webengine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 Yocto Jethro 为魔杖板四元组编译了一个帧缓冲区(没有 x11 和 Wayland)图像.我使用了飞思卡尔社区 BSP Jethro 分支.该图像包含大部分 Qt 5.5 组件和 Qt Web 引擎.

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.

来自 meta-toolchain-qt5 的 qmake 版本是 5.5.1,Qt Creator 也是 5.5.

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

我创建了快速 nano 浏览器示例来测试功能.但是,当我交叉编译到魔杖板时,Qt Creator 给了我这个 Project ERROR: Unknown module(s) in QT: webengine.不过桌面编译没问题.

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?

编辑:我在这个设置说明

编辑:首先,Qt WebEngine 有两个版本:开源版本和授权版本.根据 ICS 人员所说,这两个版本之间几乎没有任何区别.

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 在 SDK packagegroup-qt5-toolchain-target.bb 中不可用.因此,它不包含所有 Qt Web 引擎组件.

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.

为了将 Qt WebEngine 添加到 SDK,我修改了 packagegroup-qt5-toolchain-target.bb,添加了 qtwebengine-devqtwebengine-mkspecs

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

问题: 即使所有必需的文件都存在于 sysroot 中,qmake 也无法识别 Qt Webengine 模块.我该如何解决这个问题?

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

推荐答案

我的理解(抱歉没有参考到手),但是交叉编译 webengine 仅在 Qt 的付费企业版上支持.

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

这篇关于项目错误:QT 中的未知模块:webengine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 02:54