問題タブ [qtwebengine]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
qt - How to INSTALL & RUN QML QtWebEngine & QtWebKit on SBC using Yocto / Unable to fetch URL from any source
Environment
- Debian GNU/Linux 7.8 (wheezy)
Linux marvin 3.16-0.bpo.2-amd64 #1 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21) x86_64 GNU/Linux
- Raspberry Pi 2
- Yocto Poky
- Qt5
My goal is to run Chromium layout web engine on the RPi2
I want to be able to run this on my RPi2:
How I created my RPi2 image
I have successfully created an image for my RPi2 using Yocto using this unique and amazing tutorial in portuguese and this one in english
here after in a few line how I was able to generate a image for my RPi2
then
after a few hours I could pick the image built ~/yocto/build-dizzy/tmp/deploy/images/raspberrypi2/qt5-image-demo-raspberrypi2.rpi-sdimg
... and copy to a microSD card e.g.
The ISSUE: QtWebEngine is not installed
... but when I tried to run this simple QtWebEngine example I got an error saying that QtWebEngine is not installed:
... so I added QtWebEngine recipe to my bitbake image configuration and ran in my image configuration
The ERROR - RESOLVED
The LOG
indeed this give me a 404 and that's my issue
but I check this and it works
Doesn't anyone know how to fix this?
As a matter of fact I have the same problem with QtWebKit
UPDATE - COMPILATION PASS
- How do I run QtWebEngine
?
Compilation/Installation part of QtWebEngine was addressed. I was able to compile the QtWebEngine /usr/lib/qt5/libexec/QtWebEngineProcess
. The simple QML script still doesn't find the QtWebEngine
, I think it is expecting /usr/lib/qt5/qml/QtWebEngine
which I am not able to generate.
QML is not a hard requirement. I just need to be able to compile and run a very simple Qt5 application that will load a Web page with the Chromium Layout Engine capabilities hence the requirement of QtWebEngine.
UPDATE Added QtWebEngine QML plugins - Can't figure out the IMPORT VERSION
QtWebEngine Files installed
Looks like it's version 0.9
Changed import version to 0.9 import QtWebEngine 0.9
Now getting a different error, but a blank (white then red) canvas is opening
Indeed no.pak
file present
No QtWebEngine plugins.qmltypes
(?)
packages
on my build machine
Simple QML QtWebEngine not showing web page QUESTION on Stackoverflow
qt - QtWebEngine でペイント イベントを取得するにはどうすればよいですか?
延長しQWebEngineView
ました。
でもpaintEvent(QPaintEvent *)
呼ばれない。
誰が何が悪いのか教えてもらえますか?
qt - dyld: Qt QtWebEngine の使用時にライブラリがロードされない
macdeployqt を使用した後にアプリを実行しようとすると、このエラーが発生します。
dyld: ライブラリが読み込まれていません: @executable_path/../Frameworks/QtQuick.framework/Versions/5/QtQuick /5/QtWebEngineCore 理由: 画像が見つかりません
QtWebEngine アプリでのみ発生します。私は、QtWebKit を使用して問題なくビルドできるものをもう 1 つ持っています。
私のotoolの結果は問題ないようです:
jimmys-MacBook-Air:osx jimmy$ otool -L /development/_build_desktop/Application-Screensaver/Webshots\ Desktop.app/Contents/MacOS/Desktop /development/_build_desktop/Application-Screensaver/Webshots Desktop.app/Contents/MacOS/デスクトップ: /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (互換バージョン 1.0.0、現在のバージョン 20.0.0) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (互換バージョン) 1.0.0、現在のバージョン 48.0.0) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (互換バージョン 300.0.0、現在のバージョン 1056.16.0) /System/Library/Frameworks/StoreKit.framework/ Versions/A/StoreKit (互換バージョン 1.0.0、現在のバージョン 232.11.0) @loader_path/../Frameworks/QtWebEngineWidgets.Framework/Versions/5/QtWebEngineWidgets (互換バージョン 5.4.0、現在のバージョン 5.4.2) @loader_path/../Frameworks/QtWebEngine.framework/Versions/5/QtWebEngine (互換バージョン 5.4.0、現在のバージョン 5.4.2) @loader_path/../Frameworks/QtQuick.framework/Versions/5/QtQuick (互換バージョン 5.4.0、現在のバージョン 5.4.2) @loader_path/../Frameworks/QtGui.framework/Versions/5/QtGui (互換バージョン) 5.4.0、現在のバージョン 5.4.2) @loader_path/../Frameworks/QtCore.framework/Versions/5/QtCore (互換バージョン 5.4.0、現在のバージョン 5.4.2) /System/Library/Frameworks/DiskArbitration.framework /Versions/A/DiskArbitration (互換バージョン 1.0.0、現行バージョン 1.0.0) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (互換バージョン 1.0.0、現行バージョン 275.0.0) @loader_path /../Frameworks/QtQml.framework/Versions/5/QtQml (互換バージョン 5.4.0、現在のバージョン 5.4.2) @loader_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork (互換バージョン 5.4.0、現在のバージョン)バージョン 5.4.2) @loader_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets (互換バージョン 5.4.0、現在のバージョン 5.4.2) @loader_path/../Frameworks/QtWebEngineCore.framework/Versions/5 /QtWebEngineCore (互換バージョン 5.4.0、現在のバージョン 5.4.2) /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (互換バージョン 1.0.0、現在のバージョン 1.0.0) /System/Library/Frameworks /AGL.framework/Versions/A/AGL (互換バージョン 1.0.0、現行バージョン 1.0.0) /usr/lib/libstdc++.6.dylib (互換バージョン 7.0.0、現行バージョン 60.0.0) /usr/lib /libSystem.B.dylib (互換バージョン 1.0.0、現在のバージョン 1197.1.1) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (互換バージョン 45.0.0、現在のバージョン 1265.21.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/ A/CoreFoundation (互換バージョン 150.0.0、現行バージョン 855.17.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (互換バージョン 1.0.0、現行バージョン 59.0.0) /usr/lib/ libobjc.A.dylib (互換バージョン 1.0.0、現在のバージョン 228.0.0)Framework/Versions/A/CoreServices (互換バージョン 1.0.0、現行バージョン 59.0.0) /usr/lib/libobjc.A.dylib (互換バージョン 1.0.0、現行バージョン 228.0.0)Framework/Versions/A/CoreServices (互換バージョン 1.0.0、現行バージョン 59.0.0) /usr/lib/libobjc.A.dylib (互換バージョン 1.0.0、現行バージョン 228.0.0)
ありがとう、ジミー
qt5 - Raspberry Pi 2 でシンプルな QtWebEngine アプリを実行すると、ページが表示されない
Yoctoブランチを使用してこのチュートリアルの情報を使用して、Yocto レシピを使用して Raspberry Pi 2 にQtWebEngine + QML プラグインをコンパイルしてインストールし、次のスクリプトを実行しました。dizzy
IMPORT VERSION は 1.0 ではなく 0.9 であることに注意してください。
両方を試しましurl: "file:///home/root/hello.html"
たurl: "https://duckduckgo.com"
が、赤い画面に黒い四角のマウス ポインタが表示されるだけです。
コンソールで:
PAC support disabled ...
ここで読んだ問題はないようです
アップデート
このステップバイステップのチュートリアル (Pokyfido
ブランチ)に従い、 qtwebengine
(import QtWebEngine 1.0
今回は) を追加qtwebengine-qmlplugins
し、Yocto イメージにイメージを再度作成しました。bitbake
起動して実行すると/usr/bin/qt5/qmlscene -v -platform eglfs chromium.qml
、HTML ページが表示されました。
数十の Web サイトをテストしましたが、すべてのページが表示されるわけではありません。だから彼らはそれにもう少しかもしれません。
例えば
さらなる指針は大歓迎です
更新 20160309
QML
chromium - Yocto Poky を使用して Raspberry Pi2 用の QtWebEngine をビルドする - vcos_platform_types.h: No such file or directory
環境
- Yocto でイメージをビルドするための Debian 7.8 上の NUC
- ヨクトポーキー_
- 要件 Q5 QtWebEngine + QML プラグイン + SSH
- ターゲット ラズベリーパイ 2
- Raspberry Pi のこの優れたチュートリアルに大いに触発されました
Yocto Poky fido ブランチ
bblayer.conf & local.conf
/home/otto/yocto/build/conf/local.conf
追加ではMACHINE = "raspberrypi2"
建てる
について次のエラーで失敗しますvcos_platform_types.h
qt - QtWebEngine QML アプリケーションでユーザー エージェントを設定する方法
注: QtWebView extensionを使用して QtWebKit QML でそれを行うことができました。ここで、 QtWebEngineの使用に興味があります。
私の簡単なテストアプリケーション
別のユーザー エージェント文字列を渡すにはどうすればよいですか?
linux - qt 5.4 qwebchannel Linux 展開に必要なファイルはどれですか?
全て、
すべてのローカル html および javascript ファイルを使用する QtWebEngine ベースのアプリケーションを用意します。これをテスト環境にデプロイすると、Web ページが表示されてナビゲート可能になりますが、Web チャネル ベースの機能は機能しません。開発に関してはすべて問題ありません。問題は、テスト マシンへの展開時にのみ発生します。
これは自己完結型の .deb であり、ユーザーの作成をインストールし、すべてを一緒に持ち込むことを目的としています。デスクトップで実行している間、ネットワーク接続はなく、すべてが内部にあります。
つまり、「すべて」が Web チャネル内にある場合は機能します。ウェブチャネルに必要な外部ピースを特定するリンクを持っている人はいますか? ターゲットで起動する奇妙な点は 2 つだけです。
私を信じてください、私はそのためにサーフィンをしてきました。あらゆる種類の行でエラーをスローする何千もの投稿があり、解決策として何も提供されていません. 私は、Web チャネルをサポートするファイルが特定され、配置/指定されたときに、これらがなくなり、人生がうまくいくという壮大な仮定を立てています。flagging resource_bundle.cc
local_file_path.empty()
qwebchannel.js
展開されていますが、設定する必要がある環境変数があるのでしょうか? index.html ファイルは、qwebchannel.js を正確に参照します。
qwebchannel.jsを使用して何かをデプロイするときに必要なファイルのリスト/リンクを持っている人はいますか? 多くを特定するエラーをスローしていません。ありがとう、