私はYoctoを使用して、エンベデッドボード(i.MX6)でQtとQtWebEngineで私の最初のステップをやっています。 クイックナビブラウザのような、提供されたサンプルレシピを使用すると、ターゲット上でうまく動作します。だから、this answerを確認することはできませんが、WebEngineは組み込みプラットフォームでは利用できないと主張しています。Yocto SDK、QtWebEngine:QTの未知のモジュール:webengine
今私は独自のQMLアプリケーションを作成し、ボードに展開したいと考えています。レシピでmeta-toolchain-qt5
私はSDKを作成してインストールしました。 QtCreatorでは、私はSDKのインストールにすべてのパスを設定し、それを構築しようとしましたが、このエラーを得た:
Project ERROR: Unknown module(s) in QT: webengine
11:13:13: The process "/opt/poky/1.8/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake" exited with code 3.
それはWebEngineはSDKに含まれていなかったことが判明しました。その後
RDEPENDS_${PN} += " \
qtwebengine \
qtwebengine-qmlplugins \
qtquickcontrols-qmlplugins \
qtwebengine-examples \
"
SDKを再インストール:this answerのおかげで、私は自分のpackagegroup-qt5-toolchain-target.bbappend
ファイルに以下を入れていることを固定しました。
% ls -1 -d (#i)/opt/poky/1.8/**/*webengine*(/)
/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWebEngine/
/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWebEngine/5.4.3/QtWebEngine/
/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWebEngineWidgets/
/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWebEngineWidgets/5.4.3/QtWebEngineWidgets/
/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/qt5/qml/QtWebEngine/
/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/share/qt5/examples/webengine/
/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/share/qt5/examples/webenginewidgets/
/opt/poky/1.8/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/share/qt5/translations/qtwebengine_locales/
それでも、私が手:今では(以下zsh
グロブパターンは大文字と小文字を区別せずに、「webengine」が含ま/opt/poky/1.8/
の任意のサブディレクトリ内のすべてのディレクトリを、一致した)すべてのWebEngineファイルはSDKのインストールで利用できるようです同じ不明なモジュールエラー。これはQtCreatorから独立しており、また、直接のqmakeを呼び出すことによって示すことができる。
% source /opt/poky/1.8/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
% /opt/poky/1.8/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake /home/me/test/test.pro -r -spec linux-oe-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug
Project ERROR: Unknown module(s) in QT: webengine
それは、デスクトップのインストールに問題なくコンパイルされ、実行されるため、プロジェクト自体が、問題ないはずです。
アイデア?まだSDKにファイルが見つからないことがありますか? qmakeはどこでモジュールを検索しますか? qmakeにWebEngineのインストール先を教えてください。
あなたの答えをありがとう!しかし、このファイルはすでに '/ opt/poky/1.8/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi'の中に入っています。だからそれを追加するか、それを手動で調達することは助けにならない。 –
Qtクリエーターを設定するには、このwikiに従ってみてください。http://wiki.hioproject.org/index.php?title=HIO_Wiki:Set_Up_Qt_Creator_for_Yocto_Device –