All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] why qt5webengine dependencies?
@ 2019-03-12 10:21 Martin Kepplinger
  2019-03-12 15:53 ` Martin Kepplinger
  2019-03-12 23:33 ` Peter Seiderer
  0 siblings, 2 replies; 4+ messages in thread
From: Martin Kepplinger @ 2019-03-12 10:21 UTC (permalink / raw)
  To: buildroot

hi Gael,

why does qt5webengine in buildroot have a dependency on
* udev:
I apply the following patch and create /dev/shm at runtime, which works
out just fine. At least a build-depencency is questionable, isn't it?
--- a/src/core/config/linux.pri
+++ b/src/core/config/linux.pri
@@ -8,7 +8,7 @@ gn_args += \
     use_gnome_keyring=false \
     use_kerberos=false \
     linux_use_bundled_binutils=false \
-    use_udev=true \
+    use_udev=false \
     use_bundled_fontconfig=false


* OpenGL backend:
I'm yet to test this, but Qt webengine semms to support building with
"no-opengl" since 5.8! And there's QT_WEBENGINE_DISABLE_GPU at runtime,
so...


My question is: why the dependencies?

thanks,

                                martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3616 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190312/40348415/attachment.bin>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] why qt5webengine dependencies?
  2019-03-12 10:21 [Buildroot] why qt5webengine dependencies? Martin Kepplinger
@ 2019-03-12 15:53 ` Martin Kepplinger
  2019-03-12 23:33 ` Peter Seiderer
  1 sibling, 0 replies; 4+ messages in thread
From: Martin Kepplinger @ 2019-03-12 15:53 UTC (permalink / raw)
  To: buildroot

On 12.03.19 11:21, Martin Kepplinger wrote:
> hi Gael,
> 


> * OpenGL backend:
> I'm yet to test this, but Qt webengine semms to support building with
> "no-opengl" since 5.8! And there's QT_WEBENGINE_DISABLE_GPU at runtime,
> so...


qt webengine indeed seems to need the "khr" opengl headers. Do you know
why and whether this could be a configuration bug in buildroot?

thanks,

                                 martin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3616 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190312/410d995f/attachment.bin>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] why qt5webengine dependencies?
  2019-03-12 10:21 [Buildroot] why qt5webengine dependencies? Martin Kepplinger
  2019-03-12 15:53 ` Martin Kepplinger
@ 2019-03-12 23:33 ` Peter Seiderer
  2019-03-15  7:17   ` Martin Kepplinger
  1 sibling, 1 reply; 4+ messages in thread
From: Peter Seiderer @ 2019-03-12 23:33 UTC (permalink / raw)
  To: buildroot

Hello Martin,

On Tue, 12 Mar 2019 11:21:07 +0100, Martin Kepplinger <martin.kepplinger@ginzinger.com> wrote:

> hi Gael,
> 
> why does qt5webengine in buildroot have a dependency on
> * udev:
> I apply the following patch and create /dev/shm at runtime, which works
> out just fine. At least a build-depencency is questionable, isn't it?
> --- a/src/core/config/linux.pri
> +++ b/src/core/config/linux.pri
> @@ -8,7 +8,7 @@ gn_args += \
>      use_gnome_keyring=false \
>      use_kerberos=false \
>      linux_use_bundled_binutils=false \
> -    use_udev=true \
> +    use_udev=false \
>      use_bundled_fontconfig=false
> 

- Because it is the default?
- Why do you want to do this/change the default? Saving one small udev package
for an huge package as qt5webengine (loosing hot-plugging support for keyboad/mouse)?

> 
> * OpenGL backend:
> I'm yet to test this, but Qt webengine semms to support building with
> "no-opengl" since 5.8! And there's QT_WEBENGINE_DISABLE_GPU at runtime,
> so...

The QT_WEBENGINE_DISABLE_GPU option seems to be run time (and not compile time)
option...

And yes [1] mentions Rendering without GPU:

  In a number of scenarios, we disable using the GPU (e.g. when using ANGLE on
  Windows or if the OpenGL driver is known to have problems). In this case,
  the GPU thread will not be initialized at all and the renderer processes will
  use Skia's software rasterizer to generate bitmaps that are copied to the browser
  process using shared memory. In this case, Qt WebEngine will create copies of these
  bitmaps and use them to generate QImages, which are then used to create QSGTextures.
  This happens during the creation of scene graph nodes in DelegatedFrameNode::commit.
  The code that does the actual copying can be found in ResourceHolder::initTexture.

And there are some '#ifndef QT_NO_OPENGL' in the source code, e.g.
qt5webengine-5.12.1/src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp

Maybe try without OpenGL and submit a patch lifting the requirements (since [1] qt quick
for qt latest does not depend on opengl in buildroot)?
 
Regards,
Peter

[1] https://wiki.qt.io/QtWebEngine/Rendering
[2] https://git.buildroot.net/buildroot/commit/?id=5eb43c83c10aa9cd5cdf2302af0682b3d9978ecc

> 
> 
> My question is: why the dependencies?
> 
> thanks,
> 
>                                 martin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] why qt5webengine dependencies?
  2019-03-12 23:33 ` Peter Seiderer
@ 2019-03-15  7:17   ` Martin Kepplinger
  0 siblings, 0 replies; 4+ messages in thread
From: Martin Kepplinger @ 2019-03-15  7:17 UTC (permalink / raw)
  To: buildroot

On 13.03.19 00:33, Peter Seiderer wrote:
> Hello Martin,
> 
> On Tue, 12 Mar 2019 11:21:07 +0100, Martin Kepplinger <martin.kepplinger@ginzinger.com> wrote:
> 
>> hi Gael,
>>
>> why does qt5webengine in buildroot have a dependency on
>> * udev:
>> I apply the following patch and create /dev/shm at runtime, which works
>> out just fine. At least a build-depencency is questionable, isn't it?
>> --- a/src/core/config/linux.pri
>> +++ b/src/core/config/linux.pri
>> @@ -8,7 +8,7 @@ gn_args += \
>>      use_gnome_keyring=false \
>>      use_kerberos=false \
>>      linux_use_bundled_binutils=false \
>> -    use_udev=true \
>> +    use_udev=false \
>>      use_bundled_fontconfig=false
>>
> 
> - Because it is the default?
> - Why do you want to do this/change the default? Saving one small udev package
> for an huge package as qt5webengine (loosing hot-plugging support for keyboad/mouse)?
> 

nevermind, udev is fine (as long as it's not gudev :) and if people
really don't use it, they can work around it.

>>
>> * OpenGL backend:
>> I'm yet to test this, but Qt webengine semms to support building with
>> "no-opengl" since 5.8! And there's QT_WEBENGINE_DISABLE_GPU at runtime,
>> so...
> 
> The QT_WEBENGINE_DISABLE_GPU option seems to be run time (and not compile time)
> option...
> 
> And yes [1] mentions Rendering without GPU:
> 
>   In a number of scenarios, we disable using the GPU (e.g. when using ANGLE on
>   Windows or if the OpenGL driver is known to have problems). In this case,
>   the GPU thread will not be initialized at all and the renderer processes will
>   use Skia's software rasterizer to generate bitmaps that are copied to the browser
>   process using shared memory. In this case, Qt WebEngine will create copies of these
>   bitmaps and use them to generate QImages, which are then used to create QSGTextures.
>   This happens during the creation of scene graph nodes in DelegatedFrameNode::commit.
>   The code that does the actual copying can be found in ResourceHolder::initTexture.
> 
> And there are some '#ifndef QT_NO_OPENGL' in the source code, e.g.
> qt5webengine-5.12.1/src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp
> 
> Maybe try without OpenGL and submit a patch lifting the requirements (since [1] qt quick
> for qt latest does not depend on opengl in buildroot)?
>  

just to keep you updated, I'm looking into that as part of this
bugreport: https://bugreports.qt.io/browse/QTBUG-54327 and the bottom
line is Qt 5.11 indeed seems to have the opengl dependency lifted already.

I haven't yet figured out how to build without small but nasty
config-patches though... (But with those, I'm running a webengine
browser on imx6ul without mesa3d/khr opengl libs just fine.) but I have
to say I'm not a Qt developer *at all*.

thanks so far,
                       martin


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3616 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190315/1ddf95b9/attachment-0001.bin>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-03-15  7:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-12 10:21 [Buildroot] why qt5webengine dependencies? Martin Kepplinger
2019-03-12 15:53 ` Martin Kepplinger
2019-03-12 23:33 ` Peter Seiderer
2019-03-15  7:17   ` Martin Kepplinger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.