Skip to contentSkip to conversation

Qt WebEngine support

PATCH Superseded Gaël PORTAY 5 participants 14 messages Aug 15, 2017 – Sep 23, 2017 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore
#0 lore raw

v8 cover Qt WebEngine support

Hi all,

The purpose of this patch series is to continue the integration of Qt5 WebEngine in buildroot; started long time ago by Akihiko Odaki [1] and Julien Corjon [2].

The first patch provides the Qt WebEngine package.

The second patch is a special defconfig that provides a Qt WebEngine setup on raspberrypi3 to provide a demo.

I have tested it with a rpi 3; and I will be glad if someone else has another EGL platform to test it. You will find instructions to try qtwebengine on rpi3 in the commit message of the first patch.

Enjoy ;)

Note: Tested against:
- GCC 6.x and binutils 2.27 on rpi 3.
- GCC 7.x and binutils 2.28 on rpi 3.

[1] https://patchwork.ozlabs.org/patch/640633/
[2] http://lists.busybox.net/pipermail/buildroot/2015-July/132010.html

Changes since RFC:
- rebase to master (use SPDX licenses, remove license approved, update qt5_defconfig...)
- remove the patch "prefer arm tune"
- disable build with Qt 5.6 LTS (not working, waiting for 5.6.3 in August)
- re-order patches

Changes since v1:
- manually create symlinks to preserve SONAME
- add my signed-off-by to the qt webengine patch
- make qtwe package depends on supported architectures
- fix Kconfig comment about Qt 5.6
- sort alphabetically chromium licenses

Changes since v2:
- fix build issue when I sorted alphabetically the chromium licenses
- replace legacy option BR2_TARGET_ROOTFS_EXT2_BLOCK to new option BR2_TARGET_ROOTFS_EXT2_SIZE

Changes since v3:
- add my signed-off-by and the PR link to the rpi-userland patch
- move rpi patch index from 0001 to 0007

Changes since v4:
- bump to Qt WebEngine to 5.9.1
- added the mainlined patch that fixes the build issue with samples when print is not supported
- udev is selected (required by chromium)
- add config entry to use system ffmpeg and set it to yes by default
- the patch concerning the path to CA certificates has been removed since it is no more relevant in 5.9.x
- increase BR2_TARGET_ROOTFS_EXT2_SIZE to 360MB to support

   $ du -sk target/
   312480	target/

Changes since v5:
- really add the mainlined patch that fixes the build issue with samples when print is not supported
- add BR2_PACKAGE_QT5WEBENGINE_ARCH_SUPPORTS to list all supported architectures
- add BR2_PACKAGE_QT5WEBENGINE missing dependencies (tc, mmu, wchar...)
- stop using && for depends on relationships
- update chromium licence list in chromium.inc
- remove option BR2_PACKAGE_QT5WEBENGINE_SYSTEM_FFMPEG;
and compile ffmpeg, opus, libvpx and webp packages
- reword help and add url to documentation of package qt5webengine
- remove hash of 5.6.2 version
- add QT5WEBENGINE_ namespace to QMAKEFLAGS
- add missing TARGET_MAKE_ENV to BUILD_CMD
- create python symlink form $(HOST_DIR)/bin (was $(HOST_DIR)/usr/bin)
- add myself to DEVELOPERS

Changes since v6:
- rpi-userland commit message:
fix output of ls -l snippet
update url to link to qtwe-5.9.1
add upstream-status
- qtwe:
add missing host-bison, host-flex and host-pkgconf dependencies select BR2_HOSTARCH_NEEDS_IA32_COMPILER to let v8 compiles its host-tools with the same word-size as the target.

Changes since v7:
- rpi-userland:
remove rpi-userland patch and apply upstreamed commit suggested by Yann.
- qtwe:
reword the commit message to include notes from the coverletter depends on has udev + comment (udev is needed at runtime) depends on uses glibc + comment (for now, it builds only with glibc) select qtquickcontrols2 (may be needed at runtime)
reword BR2_HOSTARCH_NEEDS_IA32_COMPILER comment
- raspberrypi3_qt5we_defconfig:
rename raspberrypi3_qt5_defconfig into raspberrypi3_qt5we_defconfig bump kernel (synced with all rpi defconfigs)
add gif, jpeg and options to raspberrypi3_qt5we_defconfig use M suffix with BR2_TARGET_ROOTFS_EXT2_SIZE option

Ga?l PORTAY (3):
qt5webengine: new package
configs: new raspberrypi3 qt5we config

 DEVELOPERS                                         |   1 +
 configs/raspberrypi3_qt5we_defconfig               |  50 ++++
 package/qt5/Config.in                              |   1 +
 .../0001-Always-compile-QWebEnginePage-print.patch | 246 ++++++++++++++++
 ...ad-libEGL-and-libGLES2-symbols-implicitly.patch |  89 ++++++
 package/qt5/qt5webengine/Config.in                 |  86 ++++++
 package/qt5/qt5webengine/chromium.inc              | 310 +++++++++++++++++++++
 package/qt5/qt5webengine/qt5webengine.hash         |   2 +
 package/qt5/qt5webengine/qt5webengine.mk           |  80 ++++++
 9 files changed, 865 insertions(+)
 create mode 100644 configs/raspberrypi3_qt5we_defconfig
 create mode 100644 package/qt5/qt5webengine/5.9.1/0001-Always-compile-QWebEnginePage-print.patch
 create mode 100644 package/qt5/qt5webengine/5.9.1/0002-Load-libEGL-and-libGLES2-symbols-implicitly.patch
 create mode 100644 package/qt5/qt5webengine/Config.in
 create mode 100644 package/qt5/qt5webengine/chromium.inc
 create mode 100644 package/qt5/qt5webengine/qt5webengine.hash
 create mode 100644 package/qt5/qt5webengine/qt5webengine.mk
Signature · 1 line
2.13.2
#1 lore raw

PATCH v8 1/2 qt5webengine: new package

This patch is based on works [1] and [2].

With this patch, one can run the Qt5 WebEngine quicknanobrowser sample with the following options.

BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc" and BR2_TOOLCHAIN_BUILDROOT_CXX (Qt 5 needs a toolchain w/ wchar, NPTL, C++, dynamic library; for now it builds only with glibc) BR2_PACKAGE_LIBERATION (Qt needs at least one font) BR2_PACKAGE_QT5BASE_EXAMPLES (to install quicknanobrowser sample) BR2_PACKAGE_QT5BASE_GIF (do display gif) BR2_PACKAGE_QT5BASE_JPEG (do display jpeg) BR2_PACKAGE_QT5BASE_PNG (do display png) BR2_PACKAGE_QT5QUICKCONTROLS (needed by webengine) BR2_PACKAGE_QT5QUICKCONTROLS2 (needed by webengine) BR2_PACKAGE_QT5WEBENGINE (because it is what we want)

Qt WebEngine requires an Open(E)GL-capable backend. As an example, the package rpi-userland must be enabled to build for a rpi.

BR2_PACKAGE_RPI_USERLAND (to enable OpenGL ES backend)

To browse for HTTPS websites, please consider adding the following options as well for SSL/TLS.

BR2_PACKAGE_CA_CERT (for certificates) BR2_PACKAGE_NTPD (to sync date for certificates)

Since version 5.9, chromium requires udev at runtime (see note 4).

BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV (input backend)

To run quicknanobrowser

	# cd /usr/lib/qt/examples/webengine/quicknanobrowser/
	# ./quicknanobrowser https://www.buildroot.org/

Note: The chromium.inc has been generated using the following command.

	( echo 'CHROMIUM_LICENSE_FILES = \' &&
	  cd output/build/qt5webengine-5.9.1/ && \
	  find "src/3rdparty/chromium/" -type f -iname "*LICENSE*" -o -iname "*COPYING*" -o -iname "*GPL*" | \
	  sed -e '/\.asm$/d' \
	      -e '/\.h$/d' \
	      -e '/\.c$/d' \
	      -e '/\.cc$/d' \
	      -e '/\.cpp$/d' \
	      -e '/\.pyc\?$/d' \
	      -e '/\.pl$/d' \
	      -e '/\.sha1$/d' \
	      -e '/\.patch$/d' \
	      -e '/licensecheck/d' \
	      -e 's,^,\t,' \
	      -e 's,$, \\,' | \
	  sort && \
	  echo '' ) >package/qt5/qt5webengine/chromium.inc

Note 2: Since 5.9.1, the chromium's copy of opus fails with neon [3]. Qt WebEngine can uses buildroot ffmpeg copy which compiles fine (using qmake flag WEBENGINE_CONFIG+=use_system_ffmpeg). It implies selecting the following options.

	BR2_PACKAGE_FFMPEG
	BR2_PACKAGE_OPUS
	BR2_PACKAGE_LIBVPX
	BR2_PACKAGE_WEBP
	BR2_PACKAGE_WEBP_DEMUX

	In file included from ../../3rdparty/chromium/third_party/opus/src/silk/arm/NSQ_neon.c:31:0:
	/home/gportay/src/buildroot/output-rpi3-qt5.9/host/lib/gcc/arm-buildroot-linux-gnueabihf/6.4.0/include/arm_neon.h:8997:1: error: inlining failed in call to always_inline ?vld1q_s32?: target specific option mismatch
	 vld1q_s32 (const int32_t * __a)
	 ^~~~~~~~~
	../../3rdparty/chromium/third_party/opus/src/silk/arm/NSQ_neon.c:40:15: note: called from here
	     int32x4_t coef0 = vld1q_s32(coef32);
		       ^~~~~
	../../3rdparty/chromium/third_party/opus/src/silk/arm/NSQ_neon.c: At top level:
	cc1: warning: unrecognized command line option ?-Wno-#pragma-messages?

Note 3: Version 5.6.2 causes a build issue while building chromium. The build against this version is disabled until the release 5.6.3 is out.

Note 4: Here is trace when udev does not run

	# cd /usr/lib/qt/examples/webengine/quicknanobrowser
	# ./quicknanobrowser
	QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
	Unable to query physical screen size, defaulting to 100 dpi.
	To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
	[0101/000248.161973:WARNING:resource_bundle_qt.cpp(114)] locale_file_path.empty() for locale
	[0101/000248.384693:WARNING:resource_bundle_qt.cpp(114)] locale_file_path.empty() for locale
	[202:223:0101/000248.484954:FATAL:udev_loader.cc(38)] Check failed: false.
	#0 0x0000742b93de <unknown>
	#1 0x0000742c3c38 <unknown>
	#2 0x000073e1e1aa <unknown>
	#3 0x000073e1d96e <unknown>
	#4 0x000073e1defa <unknown>
	#5 0x000074af6364 <unknown>
	#6 0x000074302878 <unknown>
	#7 0x0000742c8fee <unknown>
	#8 0x0000742c9f44 <unknown>
	#9 0x0000742ca21e <unknown>
	#10 0x0000742cac4c <unknown>
	#11 0x0000742c87b2 <unknown>
	#12 0x0000742da4f6 <unknown>
	#13 0x000073ed9d38 <unknown>
	#14 0x000073eda03c <unknown>
	#15 0x0000742e9aec <unknown>
	#16 0x0000742e71dc <unknown>

Aborted

Note 5: On rpi and depending on what is insinde the .config, more GPU memory should be allocated to run properly qt samples.

	#0 0x0000742c63de <unknown>
	#1 0x0000742d0c38 <unknown>
	#2 0x0000749d7bde <unknown>
	#3 0x0000749e3c70 <unknown>
	#4 0x00007530227c <unknown>
	#5 0x000075302480 <unknown>
	#6 0x0000752fb1e4 <unknown>
	#7 0x00007430f878 <unknown>
	#8 0x0000742d5fee <unknown>
	#9 0x0000742d6f44 <unknown>
	#10 0x0000742d721e <unknown>
	#11 0x0000742d7ad6 <unknown>
	#12 0x0000742d57b2 <unknown>
	#13 0x0000742e74f6 <unknown>
	#14 0x0000742f6a74 <unknown>
	#15 0x0000742f41dc <unknown>

	Received signal 6
	#0 0x0000742c63de <unknown>
	#1 0x0000742c66a0 <unknown>
	#2 0x0000725b5d10 <unknown>
	[end of stack trace]
	qml: Render process exited with code 256 (abnormal exit)

	# mount /dev/mmcblk0p1 /mnt
	# sed '/^gpu_mem_/s,=.*,=200,' -i /mnt/config.txt
	# umount /mnt

Note 6: The first patch fixes a build issue when samples are compiled without the support of printing [4]. This patch is already merged in branch 5.9 [5] and concerns only 5.9.1.

085c2c52 Always compile QWebEnginePage::print

It fixes the error below.

	.obj/browsermainwindow.o: In function `BrowserMainWindow::printRequested(QWebEnginePage*)': browsermainwindow.cpp:(.text+0x2cc0): undefined reference to `QWebEnginePage::print(QPrinter*, QWebEngineCallback<bool> const&)'

The second patch loads both libEGL and libGLESv2 symbols implicitly instead of loading them with explicitly using hard-coded locations. It fixes a bug when providers of lib*GL does not create libraries named libEGL.so.1 and libGLESv2.s2 [6]. This patch is already merged in branch 5.9 [7].

d4c621f6 Load libEGL and libGLES2 symbols implicitly

It fixes the error below.

	[327:347:1221/085837:ERROR:surface_factory_qt.cpp(68)] Failed to load /usr/lib/libGLESv2.so.2: /usr/lib/libGLESv2.so.2: cannot open shared object file: No such file or directory

[1]: http://lists.busybox.net/pipermail/buildroot/2015-July/132010.html
[2]: https://patchwork.ozlabs.org/patch/640633/
[3]: https://patchwork.ozlabs.org/patch/791332/
[4]: https://bugreports.qt.io/browse/QTBUG-61510
[5]: https://codereview.qt-project.org/#/c/198041/
[6]: https://bugreports.qt.io/browse/QTBUG-57761
[7]: https://codereview.qt-project.org/#/c/199554/

Cc Akihiko Odaki <[email protected]>
Cc Julien Corjon <[email protected]>
---
 DEVELOPERS                                         |   1 +
 package/qt5/Config.in                              |   1 +
 .../0001-Always-compile-QWebEnginePage-print.patch | 246 ++++++++++++++++
 ...ad-libEGL-and-libGLES2-symbols-implicitly.patch |  89 ++++++
 package/qt5/qt5webengine/Config.in                 |  86 ++++++
 package/qt5/qt5webengine/chromium.inc              | 310 +++++++++++++++++++++
 package/qt5/qt5webengine/qt5webengine.hash         |   2 +
 package/qt5/qt5webengine/qt5webengine.mk           |  80 ++++++
 8 files changed, 815 insertions(+)
 create mode 100644 package/qt5/qt5webengine/5.9.1/0001-Always-compile-QWebEnginePage-print.patch
 create mode 100644 package/qt5/qt5webengine/5.9.1/0002-Load-libEGL-and-libGLES2-symbols-implicitly.patch
 create mode 100644 package/qt5/qt5webengine/Config.in
 create mode 100644 package/qt5/qt5webengine/chromium.inc
 create mode 100644 package/qt5/qt5webengine/qt5webengine.hash
 create mode 100644 package/qt5/qt5webengine/qt5webengine.mk
DEVELOPERS +1 -0
index f3944e274..a6f84e77e 100644
@@ -630,6 +630,7 @@ F:	package/zxing-cpp/
 
 N:	Ga?l Portay <[email protected]>
 F:	package/qt5/qt5virtualkeyboard/
+F:	package/qt5/qt5webengine/
 
 N:	Gary Bisson <[email protected]>
 F:	board/boundarydevices/
package/qt5/Config.in +1 -0
index abaa58499..f2a1f378c 100644
@@ -79,6 +79,7 @@ source "package/qt5/qt5tools/Config.in"
 source "package/qt5/qt5virtualkeyboard/Config.in"
 source "package/qt5/qt5webchannel/Config.in"
 source "package/qt5/qt5webkit/Config.in"
+source "package/qt5/qt5webengine/Config.in"
 source "package/qt5/qt5websockets/Config.in"
 source "package/qt5/qt5x11extras/Config.in"
 source "package/qt5/qt5xmlpatterns/Config.in"
package/qt5/qt5webengine/5.9.1/0001-Always-compile-QWebEnginePage-print.patch new file +246 -0

246 lines not on this page · raw message

package/qt5/qt5webengine/5.9.1/0002-Load-libEGL-and-libGLES2-symbols-implicitly.patch new file +89 -0

89 lines not on this page · raw message

package/qt5/qt5webengine/Config.in new file +86 -0

86 lines not on this page · raw message

package/qt5/qt5webengine/chromium.inc new file +310 -0

310 lines not on this page · raw message

package/qt5/qt5webengine/qt5webengine.hash new file +2 -0
new file mode 100644
index 000000000..d45500c44
@@ -0,0 +1,2 @@
+# Hash from: http://download.qt.io/official_releases/qt/5.9/5.9.1/submodules/qtwebengine-opensource-src-5.9.1.tar.xz.mirrorlist
+sha256 f6a37eeb9188474a16d29ede498fce959396ab80329a0a83eaeb925251686401  qtwebengine-opensource-src-5.9.1.tar.xz
package/qt5/qt5webengine/qt5webengine.mk new file +80 -0

80 lines not on this page · raw message

Signature · 1 line
2.13.2
#2 lore raw

PATCH v8 2/2 configs: new raspberrypi3 qt5we config

In reply to Gaël PORTAY

This config sets Qt5 WebEngine for raspberrypi 3.

---
 configs/raspberrypi3_qt5we_defconfig | 50 ++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 configs/raspberrypi3_qt5we_defconfig
configs/raspberrypi3_qt5we_defconfig new file +50 -0
new file mode 100644
index 000000000..9df14c530
@@ -0,0 +1,50 @@
+BR2_arm=y
+BR2_cortex_a53=y
+BR2_ARM_FPU_NEON_VFPV4=y
+
+BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
+BR2_TOOLCHAIN_BUILDROOT_CXX=y
+
+BR2_SYSTEM_DHCP="eth0"
+
+# Linux headers same as kernel, a 4.9 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
+
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/raspberrypi/linux.git"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="9126e25b0934bd7bd843763310ea4b34c6e139d0"
+BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
+
+# Build the DTB from the kernel sources
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2710-rpi-3-b bcm2710-rpi-cm3"
+
+# Build Qt5 WebEngine
+BR2_PACKAGE_LIBERATION=y
+BR2_PACKAGE_QT5=y
+BR2_PACKAGE_QT5BASE_EXAMPLES=y
+BR2_PACKAGE_QT5BASE_GIF=y
+BR2_PACKAGE_QT5BASE_JPEG=y
+BR2_PACKAGE_QT5BASE_PNG=y
+BR2_PACKAGE_QT5WEBENGINE=y
+BR2_PACKAGE_QT5WEBENGINE_PROPRIETARY_CODECS=y
+BR2_PACKAGE_RPI_FIRMWARE=y
+BR2_PACKAGE_RPI_USERLAND=y
+BR2_PACKAGE_CA_CERTIFICATES=y
+BR2_PACKAGE_NTP=y
+
+# Required tools to create the SD image
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
+
+# Filesystem / image
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_EXT2_SIZE="360M"
+# BR2_TARGET_ROOTFS_TAR is not set
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypi3/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypi3/post-image.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="--add-pi3-miniuart-bt-overlay"
Signature · 1 line
2.13.2
#3 lore raw

v8 cover Qt WebEngine support

In reply to Gaël PORTAY

Hello,

Quoted 3 lines · Ga?l PORTAY

Ga?l PORTAY (3):
qt5webengine: new package
configs: new raspberrypi3 qt5we config

So there are really 2 patches now, not 3 ?

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#4 lore raw

v8 cover Qt WebEngine support

Hello Thomas,

Quoted 10 lines · Thomas Petazzoni

Hello,

Quoted 3 lines · Ga?l PORTAY

Ga?l PORTAY (3):
qt5webengine: new package
configs: new raspberrypi3 qt5we config

So there are really 2 patches now, not 3 ?

Yes, since Yann shows me that I can backport this patch [1], I can drop my patch about rpi-userland and library symlinks.

[1]: https://codereview.qt-project.org/#/c/199554/

#5 lore raw

v8 cover Qt WebEngine support

Hello,

Quoted 11 lines · Ga?l PORTAY

Hello Thomas,

Quoted 8 lines · Thomas Petazzoni

Hello,

Quoted 3 lines · Ga?l PORTAY

Ga?l PORTAY (3):
qt5webengine: new package
configs: new raspberrypi3 qt5we config

Quoted 5 lines
Quoted 2 lines

So there are really 2 patches now, not 3 ?

Yes, since Yann shows me that I can backport this patch [1], I can drop my patch about rpi-userland and library symlinks.

Yes I know that, I followed the discussions. But your cover letter indicates [PATCH v8 0/3], and contains:

Ga?l PORTAY (3):
qt5webengine: new package
configs: new raspberrypi3 qt5we config

So you're announcing 3 patches, but you really have 2.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#6 lore raw

v8 cover Qt WebEngine support

Hello,

Quoted 20 lines · Thomas Petazzoni

Hello,

Quoted 11 lines · Ga?l PORTAY

Hello Thomas,

Quoted 8 lines · Thomas Petazzoni

Hello,

Quoted 3 lines · Ga?l PORTAY

Ga?l PORTAY (3):
qt5webengine: new package
configs: new raspberrypi3 qt5we config

Quoted 5 lines
Quoted 2 lines

So there are really 2 patches now, not 3 ?

Yes, since Yann shows me that I can backport this patch [1], I can drop my patch about rpi-userland and library symlinks.

Quoted 9 lines

Yes I know that, I followed the discussions. But your cover letter indicates [PATCH v8 0/3], and contains:

Ga?l PORTAY (3):
qt5webengine: new package
configs: new raspberrypi3 qt5we config

So you're announcing 3 patches, but you really have 2.

Damned...

I used a diff tool to get back things from the coverletter of the v7. And obviously, I was not smart enough to copy only the right things... Sorry about that.

#7 lore raw

v8 cover Qt WebEngine support

In reply to Gaël PORTAY

Hi,

I will test these patchs on a Beaglebone black.

Julien

----- Original Message -----

Quoted 140 lines

From: "Ga?l Portay" <[email protected]>
To: "buildroot @ busybox . net" <[email protected]>, "Thomas Petazzoni" <[email protected]>, "Peter Seiderer" <[email protected]>, "Arnout Vandecappelle" <[email protected]>, "Julien CORJON" <[email protected]>
Cc: "Joshua Henderson" <[email protected]>, "Jean-Daniel Michaud" <[email protected]>, "brents 3" <[email protected]>, "Ga?l Portay" <[email protected]>, "gomis" <[email protected]>, "Akihiko Odaki" <[email protected]>
Sent: Tuesday, August 15, 2017 4:38:52 PM
Subject: [Buildroot] [PATCH v8 0/3] Qt WebEngine support

Hi all,

The purpose of this patch series is to continue the integration of Qt5 WebEngine in buildroot; started long time ago by Akihiko Odaki [1] and Julien Corjon [2].

The first patch provides the Qt WebEngine package.

The second patch is a special defconfig that provides a Qt WebEngine setup on raspberrypi3 to provide a demo.

I have tested it with a rpi 3; and I will be glad if someone else has another EGL platform to test it. You will find instructions to try qtwebengine on rpi3 in the commit message of the first patch.

Enjoy ;)

Note: Tested against:
- GCC 6.x and binutils 2.27 on rpi 3.
- GCC 7.x and binutils 2.28 on rpi 3.

[1] https://patchwork.ozlabs.org/patch/640633/
[2] http://lists.busybox.net/pipermail/buildroot/2015-July/132010.html

Changes since RFC:
- rebase to master (use SPDX licenses, remove license approved, update qt5_defconfig...)
- remove the patch "prefer arm tune"
- disable build with Qt 5.6 LTS (not working, waiting for 5.6.3 in August)
- re-order patches

Changes since v1:
- manually create symlinks to preserve SONAME
- add my signed-off-by to the qt webengine patch
- make qtwe package depends on supported architectures
- fix Kconfig comment about Qt 5.6
- sort alphabetically chromium licenses

Changes since v2:
- fix build issue when I sorted alphabetically the chromium licenses
- replace legacy option BR2_TARGET_ROOTFS_EXT2_BLOCK to new option BR2_TARGET_ROOTFS_EXT2_SIZE

Changes since v3:
- add my signed-off-by and the PR link to the rpi-userland patch
- move rpi patch index from 0001 to 0007

Changes since v4:
- bump to Qt WebEngine to 5.9.1
- added the mainlined patch that fixes the build issue with samples when print is not supported
- udev is selected (required by chromium)
- add config entry to use system ffmpeg and set it to yes by default
- the patch concerning the path to CA certificates has been removed since it is no more relevant in 5.9.x
- increase BR2_TARGET_ROOTFS_EXT2_SIZE to 360MB to support

  $ du -sk target/
  312480	target/

Changes since v5:
- really add the mainlined patch that fixes the build issue with samples when print is not supported
- add BR2_PACKAGE_QT5WEBENGINE_ARCH_SUPPORTS to list all supported architectures
- add BR2_PACKAGE_QT5WEBENGINE missing dependencies (tc, mmu, wchar...)
- stop using && for depends on relationships
- update chromium licence list in chromium.inc
- remove option BR2_PACKAGE_QT5WEBENGINE_SYSTEM_FFMPEG;
and compile ffmpeg, opus, libvpx and webp packages
- reword help and add url to documentation of package qt5webengine
- remove hash of 5.6.2 version
- add QT5WEBENGINE_ namespace to QMAKEFLAGS
- add missing TARGET_MAKE_ENV to BUILD_CMD
- create python symlink form $(HOST_DIR)/bin (was $(HOST_DIR)/usr/bin)
- add myself to DEVELOPERS

Changes since v6:
- rpi-userland commit message:
fix output of ls -l snippet
update url to link to qtwe-5.9.1
add upstream-status
- qtwe:
add missing host-bison, host-flex and host-pkgconf dependencies select BR2_HOSTARCH_NEEDS_IA32_COMPILER to let v8 compiles its host-tools with the same word-size as the target.

Changes since v7:
- rpi-userland:
remove rpi-userland patch and apply upstreamed commit suggested by Yann.
- qtwe:
reword the commit message to include notes from the coverletter depends on has udev + comment (udev is needed at runtime) depends on uses glibc + comment (for now, it builds only with glibc) select qtquickcontrols2 (may be needed at runtime)
reword BR2_HOSTARCH_NEEDS_IA32_COMPILER comment
- raspberrypi3_qt5we_defconfig:
rename raspberrypi3_qt5_defconfig into raspberrypi3_qt5we_defconfig bump kernel (synced with all rpi defconfigs)
add gif, jpeg and options to raspberrypi3_qt5we_defconfig use M suffix with BR2_TARGET_ROOTFS_EXT2_SIZE option

Ga?l PORTAY (3):
qt5webengine: new package
configs: new raspberrypi3 qt5we config

DEVELOPERS                                         |   1 +
configs/raspberrypi3_qt5we_defconfig               |  50 ++++
package/qt5/Config.in                              |   1 +
.../0001-Always-compile-QWebEnginePage-print.patch | 246 ++++++++++++++++
...ad-libEGL-and-libGLES2-symbols-implicitly.patch |  89 ++++++
package/qt5/qt5webengine/Config.in                 |  86 ++++++
package/qt5/qt5webengine/chromium.inc              | 310 +++++++++++++++++++++
package/qt5/qt5webengine/qt5webengine.hash         |   2 +
package/qt5/qt5webengine/qt5webengine.mk           |  80 ++++++
9 files changed, 865 insertions(+)

create mode 100644 configs/raspberrypi3_qt5we_defconfig
create mode 100644 package/qt5/qt5webengine/5.9.1/0001-Always-compile-QWebEnginePage-print.patch create mode 100644 package/qt5/qt5webengine/5.9.1/0002-Load-libEGL-and-libGLES2-symbols-implicitly.patch create mode 100644 package/qt5/qt5webengine/Config.in
create mode 100644 package/qt5/qt5webengine/chromium.inc
create mode 100644 package/qt5/qt5webengine/qt5webengine.hash
create mode 100644 package/qt5/qt5webengine/qt5webengine.mk

--
2.13.2

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#8 lore raw

v8 cover Qt WebEngine support

Hi,

I have been able to compile Qt WebEngine for the Beaglebone black. I ran the quicknanobrowser successfully even if performances are poor with this board and colors are not correct. I used the HDMI output and a mouse for this test.

It was necessary to add some fonts to the system to run quicknanobrowser.

It was also necessary to set QT_QPA_EGLFS_INTEGRATION to none, it fails without it:

$ cd /usr/lib/qt/examples/webengine/quicknanobrowser/
$ ./quicknanobrowser
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
PVR: Hint: Setting WindowSystem to libpvrDRMWSEGL_FRONT.so

mode for connector 20 is 1280x1024
mode for CRTC of connector 20 is 1280x1024
DRM SET CRTC: index: 0 fd: 5, crtc: 12, fb: 1e, conn: 14, mode: 1280x1024 EGL library doesn't support Emulator extensions
Aborted

$ QT_QPA_EGLFS_INTEGRATION=none ./quicknanobrowser www.google.com
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
PVR: Hint: Setting WindowSystem to libpvrDRMWSEGL_FRONT.so

mode for connector 20 is 1280x1024
mode for CRTC of connector 20 is 1280x1024
fDRM SET CRTC: index: 0 fd: 6, crtc: 12, fb: 1e, conn: 14, mode: 1280x1024 Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
PVR: Hint: Setting DisableHWTQTextureUpload to 1

[0101/001546.323753:WARNING:resource_bundle_qt.cpp(114)] locale_file_path.empty() for locale [0101/001546.688823:WARNING:resource_bundle_qt.cpp(114)] locale_file_path.empty() for locale
PVR: Hint: Setting DisableHWTQTextureUpload to 1

PVR: Hint: Setting DisableHWTQTextureUpload to 1

PVR: Hint: Setting DisableHWTQTextureUpload to 1

PVR: Hint: Setting DisableHWTQTextureUpload to 1

So it is functional, but colors are somehow reversed.

Julien

----- Original Message -----

Quoted 165 lines

From: "Julien Grossholtz" <[email protected]>
To: "Ga?l Portay" <[email protected]>
Cc: "Thomas Petazzoni" <[email protected]>, "Joshua Henderson" <[email protected]>, "Jean-Daniel Michaud" <[email protected]>, "brents 3" <[email protected]>, "Peter Seiderer" <[email protected]>, "buildroot @ busybox . net" <[email protected]>, "gomis" <[email protected]>, "Akihiko Odaki" <[email protected]>
Sent: Tuesday, August 15, 2017 6:10:37 PM
Subject: Re: [Buildroot] [PATCH v8 0/3] Qt WebEngine support

Hi,

I will test these patchs on a Beaglebone black.

Julien

----- Original Message -----

Quoted 137 lines

From: "Ga?l Portay" <[email protected]>
To: "buildroot @ busybox . net" <[email protected]>, "Thomas Petazzoni" <[email protected]>,
"Peter Seiderer" <[email protected]>, "Arnout Vandecappelle" <[email protected]>, "Julien CORJON" <[email protected]>
Cc: "Joshua Henderson" <[email protected]>, "Jean-Daniel Michaud" <[email protected]>, "brents
3" <[email protected]>, "Ga?l Portay" <[email protected]>, "gomis" <[email protected]>, "Akihiko
Odaki" <[email protected]>
Sent: Tuesday, August 15, 2017 4:38:52 PM
Subject: [Buildroot] [PATCH v8 0/3] Qt WebEngine support

Hi all,

The purpose of this patch series is to continue the integration of Qt5 WebEngine in buildroot; started long time ago by Akihiko Odaki [1] and Julien Corjon [2].

The first patch provides the Qt WebEngine package.

The second patch is a special defconfig that provides a Qt WebEngine setup on raspberrypi3 to provide a demo.

I have tested it with a rpi 3; and I will be glad if someone else has another EGL platform to test it. You will find instructions to try qtwebengine on rpi3 in the commit message of the first patch.

Enjoy ;)

Note: Tested against:
- GCC 6.x and binutils 2.27 on rpi 3.
- GCC 7.x and binutils 2.28 on rpi 3.

[1] https://patchwork.ozlabs.org/patch/640633/
[2] http://lists.busybox.net/pipermail/buildroot/2015-July/132010.html

Changes since RFC:
- rebase to master (use SPDX licenses, remove license approved, update qt5_defconfig...)
- remove the patch "prefer arm tune"
- disable build with Qt 5.6 LTS (not working, waiting for 5.6.3 in August)
- re-order patches

Changes since v1:
- manually create symlinks to preserve SONAME
- add my signed-off-by to the qt webengine patch
- make qtwe package depends on supported architectures
- fix Kconfig comment about Qt 5.6
- sort alphabetically chromium licenses

Changes since v2:
- fix build issue when I sorted alphabetically the chromium licenses
- replace legacy option BR2_TARGET_ROOTFS_EXT2_BLOCK to new option BR2_TARGET_ROOTFS_EXT2_SIZE

Changes since v3:
- add my signed-off-by and the PR link to the rpi-userland patch
- move rpi patch index from 0001 to 0007

Changes since v4:
- bump to Qt WebEngine to 5.9.1
- added the mainlined patch that fixes the build issue with samples when print is not supported
- udev is selected (required by chromium)
- add config entry to use system ffmpeg and set it to yes by default
- the patch concerning the path to CA certificates has been removed since it is no more relevant in 5.9.x
- increase BR2_TARGET_ROOTFS_EXT2_SIZE to 360MB to support

  $ du -sk target/
  312480	target/

Changes since v5:
- really add the mainlined patch that fixes the build issue with samples when print is not supported
- add BR2_PACKAGE_QT5WEBENGINE_ARCH_SUPPORTS to list all supported architectures
- add BR2_PACKAGE_QT5WEBENGINE missing dependencies (tc, mmu, wchar...)
- stop using && for depends on relationships
- update chromium licence list in chromium.inc
- remove option BR2_PACKAGE_QT5WEBENGINE_SYSTEM_FFMPEG;
and compile ffmpeg, opus, libvpx and webp packages
- reword help and add url to documentation of package qt5webengine
- remove hash of 5.6.2 version
- add QT5WEBENGINE_ namespace to QMAKEFLAGS
- add missing TARGET_MAKE_ENV to BUILD_CMD
- create python symlink form $(HOST_DIR)/bin (was $(HOST_DIR)/usr/bin)
- add myself to DEVELOPERS

Changes since v6:
- rpi-userland commit message:
fix output of ls -l snippet
update url to link to qtwe-5.9.1
add upstream-status
- qtwe:
add missing host-bison, host-flex and host-pkgconf dependencies select BR2_HOSTARCH_NEEDS_IA32_COMPILER to let v8 compiles its host-tools with the same word-size as the target.

Changes since v7:
- rpi-userland:
remove rpi-userland patch and apply upstreamed commit suggested by Yann.
- qtwe:
reword the commit message to include notes from the coverletter depends on has udev + comment (udev is needed at runtime) depends on uses glibc + comment (for now, it builds only with glibc) select qtquickcontrols2 (may be needed at runtime)
reword BR2_HOSTARCH_NEEDS_IA32_COMPILER comment
- raspberrypi3_qt5we_defconfig:
rename raspberrypi3_qt5_defconfig into raspberrypi3_qt5we_defconfig bump kernel (synced with all rpi defconfigs)
add gif, jpeg and options to raspberrypi3_qt5we_defconfig use M suffix with BR2_TARGET_ROOTFS_EXT2_SIZE option

Ga?l PORTAY (3):
qt5webengine: new package
configs: new raspberrypi3 qt5we config

DEVELOPERS                                         |   1 +
configs/raspberrypi3_qt5we_defconfig               |  50 ++++
package/qt5/Config.in                              |   1 +
.../0001-Always-compile-QWebEnginePage-print.patch | 246 ++++++++++++++++
...ad-libEGL-and-libGLES2-symbols-implicitly.patch |  89 ++++++
package/qt5/qt5webengine/Config.in                 |  86 ++++++
package/qt5/qt5webengine/chromium.inc              | 310 +++++++++++++++++++++
package/qt5/qt5webengine/qt5webengine.hash         |   2 +
package/qt5/qt5webengine/qt5webengine.mk           |  80 ++++++
9 files changed, 865 insertions(+)

create mode 100644 configs/raspberrypi3_qt5we_defconfig
create mode 100644 package/qt5/qt5webengine/5.9.1/0001-Always-compile-QWebEnginePage-print.patch create mode 100644 package/qt5/qt5webengine/5.9.1/0002-Load-libEGL-and-libGLES2-symbols-implicitly.patch create mode 100644 package/qt5/qt5webengine/Config.in
create mode 100644 package/qt5/qt5webengine/chromium.inc
create mode 100644 package/qt5/qt5webengine/qt5webengine.hash
create mode 100644 package/qt5/qt5webengine/qt5webengine.mk

Quoted 7 lines

--
2.13.2

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#9 lore raw

v8 cover Qt WebEngine support

Quoted 41 lines · Julien Grossholtz

Hi,

I have been able to compile Qt WebEngine for the Beaglebone black. I ran the quicknanobrowser successfully even if performances are poor with this board and colors are not correct. I used the HDMI output and a mouse for this test.

It was necessary to add some fonts to the system to run quicknanobrowser.

It was also necessary to set QT_QPA_EGLFS_INTEGRATION to none, it fails without it:

$ cd /usr/lib/qt/examples/webengine/quicknanobrowser/
$ ./quicknanobrowser
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
PVR: Hint: Setting WindowSystem to libpvrDRMWSEGL_FRONT.so

mode for connector 20 is 1280x1024
mode for CRTC of connector 20 is 1280x1024
DRM SET CRTC: index: 0 fd: 5, crtc: 12, fb: 1e, conn: 14, mode: 1280x1024 EGL library doesn't support Emulator extensions
Aborted

$ QT_QPA_EGLFS_INTEGRATION=none ./quicknanobrowser www.google.com
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
PVR: Hint: Setting WindowSystem to libpvrDRMWSEGL_FRONT.so

mode for connector 20 is 1280x1024
mode for CRTC of connector 20 is 1280x1024
fDRM SET CRTC: index: 0 fd: 6, crtc: 12, fb: 1e, conn: 14, mode: 1280x1024 Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
PVR: Hint: Setting DisableHWTQTextureUpload to 1

[0101/001546.323753:WARNING:resource_bundle_qt.cpp(114)] locale_file_path.empty() for locale [0101/001546.688823:WARNING:resource_bundle_qt.cpp(114)] locale_file_path.empty() for locale
PVR: Hint: Setting DisableHWTQTextureUpload to 1

PVR: Hint: Setting DisableHWTQTextureUpload to 1

PVR: Hint: Setting DisableHWTQTextureUpload to 1

PVR: Hint: Setting DisableHWTQTextureUpload to 1

Quoted 161 lines

So it is functional, but colors are somehow reversed.

Julien

----- Original Message -----

Quoted 155 lines

From: "Julien Grossholtz" <[email protected]>
To: "Ga?l Portay" <[email protected]>
Cc: "Thomas Petazzoni" <[email protected]>, "Joshua Henderson" <[email protected]>, "Jean-Daniel Michaud" <[email protected]>, "brents 3" <[email protected]>, "Peter Seiderer" <[email protected]>, "buildroot @ busybox . net" <[email protected]>, "gomis" <[email protected]>, "Akihiko Odaki" <[email protected]>
Sent: Tuesday, August 15, 2017 6:10:37 PM
Subject: Re: [Buildroot] [PATCH v8 0/3] Qt WebEngine support
Hi,

I will test these patchs on a Beaglebone black.

Julien

----- Original Message -----

Quoted 139 lines

From: "Ga?l Portay" <[email protected]>
To: "buildroot @ busybox . net" <[email protected]>, "Thomas Petazzoni" <[email protected]>,
"Peter Seiderer" <[email protected]>, "Arnout Vandecappelle" <[email protected]>, "Julien CORJON" <[email protected]>
Cc: "Joshua Henderson" <[email protected]>, "Jean-Daniel Michaud" <[email protected]>, "brents
3" <[email protected]>, "Ga?l Portay" <[email protected]>, "gomis" <[email protected]>, "Akihiko
Odaki" <[email protected]>
Sent: Tuesday, August 15, 2017 4:38:52 PM
Subject: [Buildroot] [PATCH v8 0/3] Qt WebEngine support
Hi all,

The purpose of this patch series is to continue the integration of Qt5 WebEngine in buildroot; started long time ago by Akihiko Odaki [1] and Julien Corjon [2].

The first patch provides the Qt WebEngine package.

The second patch is a special defconfig that provides a Qt WebEngine setup on raspberrypi3 to provide a demo.

I have tested it with a rpi 3; and I will be glad if someone else has another EGL platform to test it. You will find instructions to try qtwebengine on rpi3 in the commit message of the first patch.

Enjoy ;)

Note: Tested against:
- GCC 6.x and binutils 2.27 on rpi 3.
- GCC 7.x and binutils 2.28 on rpi 3.

[1] https://patchwork.ozlabs.org/patch/640633/
[2] http://lists.busybox.net/pipermail/buildroot/2015-July/132010.html

Changes since RFC:
- rebase to master (use SPDX licenses, remove license approved, update qt5_defconfig...)
- remove the patch "prefer arm tune"
- disable build with Qt 5.6 LTS (not working, waiting for 5.6.3 in August)
- re-order patches

Changes since v1:
- manually create symlinks to preserve SONAME
- add my signed-off-by to the qt webengine patch
- make qtwe package depends on supported architectures
- fix Kconfig comment about Qt 5.6
- sort alphabetically chromium licenses

Changes since v2:
- fix build issue when I sorted alphabetically the chromium licenses
- replace legacy option BR2_TARGET_ROOTFS_EXT2_BLOCK to new option BR2_TARGET_ROOTFS_EXT2_SIZE

Changes since v3:
- add my signed-off-by and the PR link to the rpi-userland patch
- move rpi patch index from 0001 to 0007

Changes since v4:
- bump to Qt WebEngine to 5.9.1
- added the mainlined patch that fixes the build issue with samples when print is not supported
- udev is selected (required by chromium)
- add config entry to use system ffmpeg and set it to yes by default
- the patch concerning the path to CA certificates has been removed since it is no more relevant in 5.9.x
- increase BR2_TARGET_ROOTFS_EXT2_SIZE to 360MB to support

  $ du -sk target/
  312480	target/

Changes since v5:
- really add the mainlined patch that fixes the build issue with samples when print is not supported
- add BR2_PACKAGE_QT5WEBENGINE_ARCH_SUPPORTS to list all supported architectures
- add BR2_PACKAGE_QT5WEBENGINE missing dependencies (tc, mmu, wchar...)
- stop using && for depends on relationships
- update chromium licence list in chromium.inc
- remove option BR2_PACKAGE_QT5WEBENGINE_SYSTEM_FFMPEG;
and compile ffmpeg, opus, libvpx and webp packages
- reword help and add url to documentation of package qt5webengine
- remove hash of 5.6.2 version
- add QT5WEBENGINE_ namespace to QMAKEFLAGS
- add missing TARGET_MAKE_ENV to BUILD_CMD
- create python symlink form $(HOST_DIR)/bin (was $(HOST_DIR)/usr/bin)
- add myself to DEVELOPERS

Changes since v6:
- rpi-userland commit message:
fix output of ls -l snippet
update url to link to qtwe-5.9.1
add upstream-status
- qtwe:
add missing host-bison, host-flex and host-pkgconf dependencies select BR2_HOSTARCH_NEEDS_IA32_COMPILER to let v8 compiles its host-tools with the same word-size as the target.

Changes since v7:
- rpi-userland:
remove rpi-userland patch and apply upstreamed commit suggested by Yann.
- qtwe:
reword the commit message to include notes from the coverletter depends on has udev + comment (udev is needed at runtime) depends on uses glibc + comment (for now, it builds only with glibc) select qtquickcontrols2 (may be needed at runtime)
reword BR2_HOSTARCH_NEEDS_IA32_COMPILER comment
- raspberrypi3_qt5we_defconfig:
rename raspberrypi3_qt5_defconfig into raspberrypi3_qt5we_defconfig bump kernel (synced with all rpi defconfigs)
add gif, jpeg and options to raspberrypi3_qt5we_defconfig use M suffix with BR2_TARGET_ROOTFS_EXT2_SIZE option

Ga?l PORTAY (3):
qt5webengine: new package
configs: new raspberrypi3 qt5we config

DEVELOPERS                                         |   1 +
configs/raspberrypi3_qt5we_defconfig               |  50 ++++
package/qt5/Config.in                              |   1 +
.../0001-Always-compile-QWebEnginePage-print.patch | 246 ++++++++++++++++
...ad-libEGL-and-libGLES2-symbols-implicitly.patch |  89 ++++++
package/qt5/qt5webengine/Config.in                 |  86 ++++++
package/qt5/qt5webengine/chromium.inc              | 310 +++++++++++++++++++++
package/qt5/qt5webengine/qt5webengine.hash         |   2 +
package/qt5/qt5webengine/qt5webengine.mk           |  80 ++++++
9 files changed, 865 insertions(+)

create mode 100644 configs/raspberrypi3_qt5we_defconfig
create mode 100644 package/qt5/qt5webengine/5.9.1/0001-Always-compile-QWebEnginePage-print.patch create mode 100644 package/qt5/qt5webengine/5.9.1/0002-Load-libEGL-and-libGLES2-symbols-implicitly.patch create mode 100644 package/qt5/qt5webengine/Config.in
create mode 100644 package/qt5/qt5webengine/chromium.inc
create mode 100644 package/qt5/qt5webengine/qt5webengine.hash
create mode 100644 package/qt5/qt5webengine/qt5webengine.mk

--
2.13.2

Dear Ga?l & All

first of all: thanks for your persistenceon this!

I've tested the current config on RPi3, and with the webenginewidgets/minimal example the qt.io webpage starts to load, but after a short while the content on the screen is collapsing, and i get this on the console:

Quoted 14 lines
# /usr/lib/qt/examples/webenginewidgets/minimal/minimal
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and
QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
[0904/143017.960529:WARNING:resource_bundle_qt.cpp(114)]
locale_file_path.empty() for locale
[0904/143018.185769:WARNING:resource_bundle_qt.cpp(114)]
locale_file_path.empty() for locale
glGetError 0x505
[790:814:0904/143024.028196:ERROR:texture_manager.cc(3235)]
[.RenderCompositor-0x6c706918]GL ERROR :GL_OUT_OF_MEMORY : glTexImage2D:
[790:814:0904/143024.028386:ERROR:gles2_cmd_decoder.cc(5202)] Error: 5
for Command kTexImage2D
Quoted 8 lines
[790:814:0904/143024.028574:ERROR:gles2_cmd_decoder.cc(4169)]  
GLES2DecoderImpl: Trying to make lost context current.
[790:814:0904/143024.028688:ERROR:gles2_cmd_decoder.cc(4169)]  
GLES2DecoderImpl: Trying to make lost context current.
[790:814:0904/143024.028764:ERROR:gles2_cmd_decoder.cc(4169)]  
GLES2DecoderImpl: Trying to make lost context current.
[790:814:0904/143024.028840:ERROR:gles2_cmd_decoder.cc(4169)]  
GLES2DecoderImpl: Trying to make lost context current.

Increasing the GPU memory to 192MB in config.txt seems to be fixing it (for the qt.io homepage at least...), so i think it worth to consider to increase the gpu_memory for raspberrypi3_qt5we_defconfig. Apart from this (and from the general fact that Qt WebEngine is a PITA...), it looks good to me. Unfortunately i don't have other applicable HW around to test this, just a BBB which already has been tested by Julien, but if needed, i'm happy to reproduce his test.

Regards

Zoltan Gyarmati
https://zgyarmati.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170904/918289ad/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170904/918289ad/attachment.asc>

#10 lore raw

v8 cover Qt WebEngine support

Hi Zoltan,

Quoted 33 lines · Zoltan Gyarmati

...
Dear Ga?l & All

first of all: thanks for your persistenceon this!

I've tested the current config on RPi3, and with the webenginewidgets/minimal example the qt.io webpage starts to load, but after a short while the content on the screen is collapsing, and i get this on the console:

Quoted 14 lines
# /usr/lib/qt/examples/webenginewidgets/minimal/minimal
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and
QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
[0904/143017.960529:WARNING:resource_bundle_qt.cpp(114)]
locale_file_path.empty() for locale
[0904/143018.185769:WARNING:resource_bundle_qt.cpp(114)]
locale_file_path.empty() for locale
glGetError 0x505
[790:814:0904/143024.028196:ERROR:texture_manager.cc(3235)]
[.RenderCompositor-0x6c706918]GL ERROR :GL_OUT_OF_MEMORY : glTexImage2D:
[790:814:0904/143024.028386:ERROR:gles2_cmd_decoder.cc(5202)] Error: 5
for Command kTexImage2D
Quoted 8 lines
[790:814:0904/143024.028574:ERROR:gles2_cmd_decoder.cc(4169)]  
GLES2DecoderImpl: Trying to make lost context current.
[790:814:0904/143024.028688:ERROR:gles2_cmd_decoder.cc(4169)]  
GLES2DecoderImpl: Trying to make lost context current.
[790:814:0904/143024.028764:ERROR:gles2_cmd_decoder.cc(4169)]  
GLES2DecoderImpl: Trying to make lost context current.
[790:814:0904/143024.028840:ERROR:gles2_cmd_decoder.cc(4169)]  
GLES2DecoderImpl: Trying to make lost context current.
Quoted 4 lines

Increasing the GPU memory to 192MB in config.txt seems to be fixing it (for the qt.io homepage at least...), so i think it worth to consider to increase the gpu_memory for raspberrypi3_qt5we_defconfig.

Thanks for the report.

I have already two patches for this. It is probably the right time to send them :)

Quoted 5 lines

Apart from this (and from the general fact that Qt WebEngine is a PITA...), it looks good to me. Unfortunately i don't have other applicable HW around to test this, just a BBB which already has been tested by Julien, but if needed, i'm happy to reproduce his test.

Another platform that everybody have (but we used to forget) is a PC.

I started to test QTWE on my laptop using pc_x86_64_bios_defconfig, but I do not have the time to go further.

I met the following error at runtime.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
gbm: failed to open any driver (search paths /usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/i965_dri.so: cannot open shared object file: No such file or directory failed to load driver: i965
gbm: failed to open any driver (search paths /usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory failed to load driver: kms_swrast
gbm: failed to open any driver (search paths /usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory failed to load swrast driver
Could not create GBM device (Invalid argument)
Could not open DRM device
Aborted

I enabled these configs (my laptop has an i915 chipset):

- BR2_PACKAGE_MESA3D_DRI_DRIVER_I915
- BR2_PACKAGE_LINUX_FIRMWARE_I915
- BR2_PACKAGE_MESA3D_OPENGL_EGL
- BR2_PACKAGE_MESA3D_OPENGL_ES

All, I do not know that much about graphic/opengl. I think I will need some help to make it works.

Quoted 4 lines

Regards

Zoltan Gyarmati
https://zgyarmati.de

Regards,
Gael

#11 lore raw

v8 cover Qt WebEngine support

Hi all,

Quoted 33 lines · Ga?l PORTAY

...

Another platform that everybody have (but we used to forget) is a PC.

I started to test QTWE on my laptop using pc_x86_64_bios_defconfig, but I do not have the time to go further.

I met the following error at runtime.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
gbm: failed to open any driver (search paths /usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/i965_dri.so: cannot open shared object file: No such file or directory failed to load driver: i965
gbm: failed to open any driver (search paths /usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory failed to load driver: kms_swrast
gbm: failed to open any driver (search paths /usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory failed to load swrast driver
Could not create GBM device (Invalid argument)
Could not open DRM device
Aborted

I enabled these configs (my laptop has an i915 chipset):

- BR2_PACKAGE_MESA3D_DRI_DRIVER_I915
- BR2_PACKAGE_LINUX_FIRMWARE_I915
- BR2_PACKAGE_MESA3D_OPENGL_EGL
- BR2_PACKAGE_MESA3D_OPENGL_ES

All, I do not know that much about graphic/opengl. I think I will need some help to make it works.

Quoted 7 lines
Quoted 4 lines

Regards

Zoltan Gyarmati
https://zgyarmati.de

Regards,
Gael

I am able to make QtWE works on x86 too.

Regards,
Gael

#12 lore raw

v8 cover Qt WebEngine support

In reply to Gaël PORTAY
Quoted 14 lines · Ga?l PORTAY

Hi all,

The purpose of this patch series is to continue the integration of Qt5 WebEngine in buildroot; started long time ago by Akihiko Odaki [1] and Julien Corjon [2].

The first patch provides the Qt WebEngine package.

The second patch is a special defconfig that provides a Qt WebEngine setup on raspberrypi3 to provide a demo.

I have tested it with a rpi 3; and I will be glad if someone else has another EGL platform to test it. You will find instructions to try qtwebengine on rpi3 in the commit message of the first patch.

Quoted 8 lines

Enjoy ;)

Note: Tested against:
- GCC 6.x and binutils 2.27 on rpi 3.
- GCC 7.x and binutils 2.28 on rpi 3.

[1] https://patchwork.ozlabs.org/patch/640633/
[2] http://lists.busybox.net/pipermail/buildroot/2015-July/132010.html

I finally applied your patches, with just a few more changes in the structure
of the Config.in dependencies. That was a long time coming, thanks for your persistence!

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#13 lore raw

v8 cover Qt WebEngine support

Arnout,

Quoted 7 lines · Arnout Vandecappelle

I finally applied your patches, with just a few more changes in the structure
of the Config.in dependencies. That was a long time coming, thanks for your persistence!

Regards,
Arnout

Thanks!