* [bug#46337] A patch to enable building proprietary codecs in qtwebengine
@ 2021-02-06 1:47 pkill9
2021-02-06 10:10 ` Tobias Geerinckx-Rice via Guix-patches via
` (4 more replies)
0 siblings, 5 replies; 13+ messages in thread
From: pkill9 @ 2021-02-06 1:47 UTC (permalink / raw)
To: 46337
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 4fbb157600..057644a576 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1939,7 +1939,8 @@ using the Enchant spell-checking library.")
"--webengine-printing-and-pdf=no"
"--webengine-ffmpeg=system"
"--webengine-icu=system"
- "--webengine-pepper-plugins=no")))))
+ "--webengine-pepper-plugins=no"
+ "-webengine-proprietary-codecs")))))
;; Tests are disabled due to "Could not find QtWebEngineProcess
error" ;; It's possible this can be fixed by setting
QTWEBENGINEPROCESS_PATH ;; before running tests.
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#46337] A patch to enable building proprietary codecs in qtwebengine
2021-02-06 1:47 [bug#46337] A patch to enable building proprietary codecs in qtwebengine pkill9
@ 2021-02-06 10:10 ` Tobias Geerinckx-Rice via Guix-patches via
2021-02-06 13:05 ` Tobias Geerinckx-Rice via Guix-patches via
2021-02-07 18:12 ` Leo Famulari
` (3 subsequent siblings)
4 siblings, 1 reply; 13+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2021-02-06 10:10 UTC (permalink / raw)
To: pkill9; +Cc: 46337
[-- Attachment #1: Type: text/plain, Size: 506 bytes --]
Pkill,
pkill9 写道:
> A patch to enable building proprietary codecs in qtwebengine
LGTM, but please send a proper (‘git format-patch’-format) patch
that can be applied with ‘git am’ with a standardised commit
message. See ‘info (guix)Submitting Patches’ and the git log.
> + "--webengine-pepper-plugins=no"
> + "-webengine-proprietary-codecs")))))
The indentation's off here. Guix Scheme code uses spaces
everywhere.
Thanks!
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* [bug#46337] A patch to enable building proprietary codecs in qtwebengine
2021-02-06 10:10 ` Tobias Geerinckx-Rice via Guix-patches via
@ 2021-02-06 13:05 ` Tobias Geerinckx-Rice via Guix-patches via
0 siblings, 0 replies; 13+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2021-02-06 13:05 UTC (permalink / raw)
Cc: 46337, pkill9
[-- Attachment #1: Type: text/plain, Size: 259 bytes --]
Tobias Geerinckx-Rice via Guix-patches via 写道:
> + "-webengine-proprietary-codecs")))))
Addendum: add a comment explicitly noting that these are all free
software, or we might face ‘misunderstandings’ later.
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* [bug#46337] A patch to enable building proprietary codecs in qtwebengine
2021-02-06 1:47 [bug#46337] A patch to enable building proprietary codecs in qtwebengine pkill9
2021-02-06 10:10 ` Tobias Geerinckx-Rice via Guix-patches via
@ 2021-02-07 18:12 ` Leo Famulari
2021-02-08 15:40 ` pkill9
2021-05-30 17:54 ` [bug#46337] Attempt to fix the build Sergey Trofimov
` (2 subsequent siblings)
4 siblings, 1 reply; 13+ messages in thread
From: Leo Famulari @ 2021-02-07 18:12 UTC (permalink / raw)
To: pkill9; +Cc: 46337
On Sat, Feb 06, 2021 at 01:47:48AM +0000, pkill9 wrote:
> diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
> index 4fbb157600..057644a576 100644
> --- a/gnu/packages/qt.scm
> +++ b/gnu/packages/qt.scm
> @@ -1939,7 +1939,8 @@ using the Enchant spell-checking library.")
> "--webengine-printing-and-pdf=no"
> "--webengine-ffmpeg=system"
> "--webengine-icu=system"
> - "--webengine-pepper-plugins=no")))))
> + "--webengine-pepper-plugins=no"
> + "-webengine-proprietary-codecs")))))
Thanks! I tried building with this flag on a powerful computer, but the
build failed because it couldn't find the dependency openh264. That is
packaged, so we just need an updated patch.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [bug#46337] A patch to enable building proprietary codecs in qtwebengine
2021-02-07 18:12 ` Leo Famulari
@ 2021-02-08 15:40 ` pkill9
2021-02-08 16:36 ` Leo Famulari
0 siblings, 1 reply; 13+ messages in thread
From: pkill9 @ 2021-02-08 15:40 UTC (permalink / raw)
To: Leo Famulari; +Cc: 46337
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
> Thanks! I tried building with this flag on a powerful computer, but
> the build failed because it couldn't find the dependency openh264.
> That is packaged, so we just need an updated patch.
I've attached an updated patch with the 'openh264' package added to
inputs. Also changed the flag so it's indented using spaces instead of
tabs, which is why it wasn't aligned previously.
[-- Attachment #2: 0001-gnu-packages-qt.scm-Enable-proprietary-codecs-suppor.patch --]
[-- Type: text/x-patch, Size: 1325 bytes --]
From dc0945c1720c74f0a071a8b28b0220e91890ec5c Mon Sep 17 00:00:00 2001
From: Pkill -9 <pkill9@runbox.com>
Date: Mon, 8 Feb 2021 15:37:54 +0000
Subject: [PATCH] gnu/packages/qt.scm: Enable proprietary codecs support (h264)
in qtwebengine
---
gnu/packages/qt.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 4fbb157600..cb4699387d 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1881,6 +1881,7 @@ using the Enchant spell-checking library.")
("mesa" ,mesa)
("minizip" ,minizip)
("nss" ,nss)
+ ("openh264" ,openh264)
("opus" ,opus)
("pciutils" ,pciutils)
("protobuf" ,protobuf)
@@ -1939,7 +1940,8 @@ using the Enchant spell-checking library.")
"--webengine-printing-and-pdf=no"
"--webengine-ffmpeg=system"
"--webengine-icu=system"
- "--webengine-pepper-plugins=no")))))
+ "--webengine-pepper-plugins=no"
+ "-webengine-proprietary-codecs")))))
;; Tests are disabled due to "Could not find QtWebEngineProcess error"
;; It's possible this can be fixed by setting QTWEBENGINEPROCESS_PATH
;; before running tests.
--
2.30.0
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#46337] A patch to enable building proprietary codecs in qtwebengine
2021-02-08 15:40 ` pkill9
@ 2021-02-08 16:36 ` Leo Famulari
2021-02-08 22:53 ` pkill9
0 siblings, 1 reply; 13+ messages in thread
From: Leo Famulari @ 2021-02-08 16:36 UTC (permalink / raw)
To: pkill9; +Cc: 46337
On Mon, Feb 08, 2021 at 03:40:43PM +0000, pkill9 wrote:
> From dc0945c1720c74f0a071a8b28b0220e91890ec5c Mon Sep 17 00:00:00 2001
> From: Pkill -9 <pkill9@runbox.com>
> Date: Mon, 8 Feb 2021 15:37:54 +0000
> Subject: [PATCH] gnu/packages/qt.scm: Enable proprietary codecs support (h264)
> in qtwebengine
Thanks!
It fails like this:
------
[187/187] LINK gn
make[3]: Entering directory '/tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/buildtools'
make[3]: Nothing to be done for 'first'.
make[3]: Leaving directory '/tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/buildtools'
make[2]: Leaving directory '/tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/buildtools'
cd core/ && ( test -e Makefile || /tmp/guix-build-qtwebengine-5.15.2.drv-0/qmake -o Makefile /tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/core/core.pro 'QT_B
make[2]: Entering directory '/tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/core'
( test -e Makefile.core_headers || /tmp/guix-build-qtwebengine-5.15.2.drv-0/qmake -o Makefile.core_headers /tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/core/
make[3]: Entering directory '/tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/core'
make[3]: Nothing to be done for 'first'.
make[3]: Leaving directory '/tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/core'
( test -e Makefile.core_generator || /tmp/guix-build-qtwebengine-5.15.2.drv-0/qmake -o Makefile.core_generator /tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/c
make[3]: Entering directory '/tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/core'
make[3]: Nothing to be done for 'first'.
make[3]: Leaving directory '/tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/core'
( test -e Makefile.gn_run || /tmp/guix-build-qtwebengine-5.15.2.drv-0/qmake -o Makefile.gn_run /tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/core/gn_run.pro '
Project MESSAGE: Running: /tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/3rdparty/gn/out/Release/gn gen /tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-ev
Done. Made 12488 targets from 1973 files in 5046ms
make[3]: Entering directory '/tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/core'
ninja -k1 -j16 -C /tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/core/release QtWebEngineCore
ninja: Entering directory `/tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/core/release'
ninja: error: '../../3rdparty/chromium/third_party/openh264/src/codec/encoder/core/src/au_set.cpp', needed by 'obj/third_party/openh264/bundled_encoder/au_set.o', missing and no known rule tot
make[3]: *** [Makefile.gn_run:354: run_ninja] Error 1
make[3]: Leaving directory '/tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/core'
make[2]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 2
make[2]: Leaving directory '/tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src/core'
make[1]: *** [Makefile:80: sub-core-make_first] Error 2
make[1]: Leaving directory '/tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/src'
make: *** [Makefile:49: sub-src-make_first] Error 2
command "make" "-j" "16" failed with status 2
builder for `/gnu/store/50f3xngwq0n1vnfxslyhxpqd0yswdxss-qtwebengine-5.15.2.drv' failed with exit code 1
@ build-failed /gnu/store/50f3xngwq0n1vnfxslyhxpqd0yswdxss-qtwebengine-5.15.2.drv - 1 builder for `/gnu/store/50f3xngwq0n1vnfxslyhxpqd0yswdxss-qtwebengine-5.15.2.drv' failed with exit code 1
derivation '/gnu/store/50f3xngwq0n1vnfxslyhxpqd0yswdxss-qtwebengine-5.15.2.drv' offloaded to '141.80.167.174' failed: build of `/gnu/store/50f3xngwq0n1vnfxslyhxpqd0yswdxss-qtwebengine-5.15.2.d
build of /gnu/store/50f3xngwq0n1vnfxslyhxpqd0yswdxss-qtwebengine-5.15.2.drv failed
------
^ permalink raw reply [flat|nested] 13+ messages in thread
* [bug#46337] A patch to enable building proprietary codecs in qtwebengine
2021-02-08 16:36 ` Leo Famulari
@ 2021-02-08 22:53 ` pkill9
2021-02-08 23:44 ` pkill9
0 siblings, 1 reply; 13+ messages in thread
From: pkill9 @ 2021-02-08 22:53 UTC (permalink / raw)
To: Leo Famulari; +Cc: 46337
[-- Attachment #1: Type: text/plain, Size: 250 bytes --]
> Thanks!
>
> It fails like this:
Thanks for testing, I've attached another patch that adds the configure
flag "--system-openh264" based on the examples given under
"Third Party Libraries" on this page
https://doc.qt.io/qt-5/configure-options.html
[-- Attachment #2: 0001-gnu-packages-qt.scm-Enable-proprietary-codecs-suppor.patch --]
[-- Type: text/x-patch, Size: 1356 bytes --]
From 8cc8c39e7d765c6213e3fbbf679f1edda2b2c76d Mon Sep 17 00:00:00 2001
From: Pkill -9 <pkill9@runbox.com>
Date: Mon, 8 Feb 2021 22:24:13 +0000
Subject: [PATCH] gnu/packages/qt.scm: Enable proprietary codecs support (h264)
in qtwebengine
---
gnu/packages/qt.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 4fbb157600..ceb5842755 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1881,6 +1881,7 @@ using the Enchant spell-checking library.")
("mesa" ,mesa)
("minizip" ,minizip)
("nss" ,nss)
+ ("openh264" ,openh264)
("opus" ,opus)
("pciutils" ,pciutils)
("protobuf" ,protobuf)
@@ -1939,7 +1940,9 @@ using the Enchant spell-checking library.")
"--webengine-printing-and-pdf=no"
"--webengine-ffmpeg=system"
"--webengine-icu=system"
- "--webengine-pepper-plugins=no")))))
+ "--webengine-pepper-plugins=no"
+ "-webengine-proprietary-codecs"
+ "--system-openh264")))))
;; Tests are disabled due to "Could not find QtWebEngineProcess error"
;; It's possible this can be fixed by setting QTWEBENGINEPROCESS_PATH
;; before running tests.
--
2.30.0
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#46337] A patch to enable building proprietary codecs in qtwebengine
2021-02-08 22:53 ` pkill9
@ 2021-02-08 23:44 ` pkill9
2021-02-09 21:17 ` Leo Famulari
0 siblings, 1 reply; 13+ messages in thread
From: pkill9 @ 2021-02-08 23:44 UTC (permalink / raw)
To: Leo Famulari; +Cc: 46337
[-- Attachment #1: Type: text/plain, Size: 86 bytes --]
I accidentally used two dashes instead of one, here is another patch
that fixes this.
[-- Attachment #2: 0001-gnu-packages-qt.scm-Enable-proprietary-codecs-suppor.patch --]
[-- Type: text/x-patch, Size: 1369 bytes --]
From f6dde87ee7749727293ade2ef3f9a2fbaf0f7c1f Mon Sep 17 00:00:00 2001
From: Pkill -9 <pkill9@runbox.com>
Date: Mon, 8 Feb 2021 22:24:13 +0000
Subject: [PATCH] gnu/packages/qt.scm: Enable proprietary codecs support (h264)
in qtwebengine
---
gnu/packages/qt.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 4fbb157600..431c597b8a 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1881,6 +1881,7 @@ using the Enchant spell-checking library.")
("mesa" ,mesa)
("minizip" ,minizip)
("nss" ,nss)
+ ("openh264" ,openh264)
("opus" ,opus)
("pciutils" ,pciutils)
("protobuf" ,protobuf)
@@ -1939,7 +1940,9 @@ using the Enchant spell-checking library.")
"--webengine-printing-and-pdf=no"
"--webengine-ffmpeg=system"
"--webengine-icu=system"
- "--webengine-pepper-plugins=no")))))
+ "--webengine-pepper-plugins=no"
+ "-webengine-proprietary-codecs"
+ "-system-openh264")))))
;; Tests are disabled due to "Could not find QtWebEngineProcess error"
;; It's possible this can be fixed by setting QTWEBENGINEPROCESS_PATH
;; before running tests.
--
2.30.0
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#46337] A patch to enable building proprietary codecs in qtwebengine
2021-02-08 23:44 ` pkill9
@ 2021-02-09 21:17 ` Leo Famulari
0 siblings, 0 replies; 13+ messages in thread
From: Leo Famulari @ 2021-02-09 21:17 UTC (permalink / raw)
To: pkill9; +Cc: 46337
On Mon, Feb 08, 2021 at 11:44:42PM +0000, pkill9 wrote:
> I accidentally used two dashes instead of one, here is another patch
> that fixes this.
> From f6dde87ee7749727293ade2ef3f9a2fbaf0f7c1f Mon Sep 17 00:00:00 2001
> From: Pkill -9 <pkill9@runbox.com>
> Date: Mon, 8 Feb 2021 22:24:13 +0000
> Subject: [PATCH] gnu/packages/qt.scm: Enable proprietary codecs support (h264)
> in qtwebengine
It fails like this:
------
starting phase `configure'
Info: creating stash file /tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/.qmake.stash
Info: creating cache file /tmp/guix-build-qtwebengine-5.15.2.drv-0/qtwebengine-everywhere-src-5.15.2/.qmake.cache
ERROR: Unknown command line option '-system-openh264'.
command "qmake" "QT_BUILD_PARTS = libs tools" "--" "--webengine-printing-and-pdf=no" "--webengine-ffmpeg=system" "--webengine-icu=system" "--webengine-pepper-plugins=no" "-webengine-proprietary-codecs" "-system-openh264" failed with status 3
------
I know that I said we could test the patch on the build farm, because
this packages requires a lot of resources to build. However, can you at
least make sure that the configure phase succeeds on your end?
^ permalink raw reply [flat|nested] 13+ messages in thread
* [bug#46337] Attempt to fix the build
2021-02-06 1:47 [bug#46337] A patch to enable building proprietary codecs in qtwebengine pkill9
2021-02-06 10:10 ` Tobias Geerinckx-Rice via Guix-patches via
2021-02-07 18:12 ` Leo Famulari
@ 2021-05-30 17:54 ` Sergey Trofimov
2021-06-07 21:01 ` bug#46337: " Leo Famulari
2021-05-30 18:47 ` [bug#46337] Clarification for the previous patch Sergey Trofimov
2021-05-30 20:00 ` [bug#46337] Update Sergey Trofimov
4 siblings, 1 reply; 13+ messages in thread
From: Sergey Trofimov @ 2021-05-30 17:54 UTC (permalink / raw)
To: 46337
[-- Attachment #1: Type: text/plain, Size: 335 bytes --]
Hey there, it seems that qtwebengine build script just lacks the
`-system-openh264` flag.
In attempt to fix that I just slap the needed GN arg to the end of
`src/buildtools/config/linux.pri`
I've checked that the configure phase succeeds, but the full build
takes too long on my machine.
Please find attached the proposed patch.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-qtwebengine-with-openh264.patch --]
[-- Type: text/x-patch, Size: 2890 bytes --]
From 553a37f4af401f2a53575c0f2d77cb5030344f40 Mon Sep 17 00:00:00 2001
From: Sergey Trofimov <sarg@sarg.org.ru>
Date: Sun, 30 May 2021 14:39:15 +0200
Subject: [PATCH] qtwebengine with openh264
---
gnu/packages/qt.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 55855fb68a..6bb1281570 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1547,6 +1547,7 @@ using the Enchant spell-checking library.")
"third_party/modp_b64"
"third_party/nasm"
"third_party/one_euro_filter"
+ "third_party/openh264/src/codec/api/svc"
"third_party/opus"
"third_party/ots"
"third_party/pdfium"
@@ -1724,6 +1725,7 @@ using the Enchant spell-checking library.")
;; libxml2 configure summary still states "Checking for compatible
;; system libxml2... no"
("libxml2" ,libxml2)
+ ("openh264" ,openh264)
("libxrandr" ,libxrandr)
("libxrender" ,libxrender)
("libxslt" ,libxslt)
@@ -1747,6 +1749,10 @@ using the Enchant spell-checking library.")
("xcb-util" ,xcb-util)))
(arguments
(substitute-keyword-arguments (package-arguments qtsvg)
+ ((#:modules modules '())
+ `((guix build gnu-build-system)
+ (guix build utils)
+ (ice-9 textual-ports)))
((#:phases phases)
`(modify-phases ,phases
(add-before 'configure 'substitute-source
@@ -1754,6 +1760,10 @@ using the Enchant spell-checking library.")
(let ((out (assoc-ref outputs "out"))
(nss (assoc-ref inputs "nss"))
(udev (assoc-ref inputs "udev")))
+ (with-atomic-file-replacement "src/buildtools/config/linux.pri"
+ (lambda (in out)
+ (display (get-string-all in) out)
+ (display "\ngn_args += use_system_openh264=true\n" out)))
;; Qtwebengine is not installed into the same prefix as
;; qtbase. Some qtbase QTLibraryInfo constants will not
;; work. Replace with the full path to the qtwebengine
@@ -1789,7 +1799,8 @@ using the Enchant spell-checking library.")
"--webengine-printing-and-pdf=no"
"--webengine-ffmpeg=system"
"--webengine-icu=system"
- "--webengine-pepper-plugins=no")))))
+ "--webengine-pepper-plugins=no"
+ "-webengine-proprietary-codecs")))))
;; Tests are disabled due to "Could not find QtWebEngineProcess error"
;; It's possible this can be fixed by setting QTWEBENGINEPROCESS_PATH
;; before running tests.
--
2.31.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#46337] Clarification for the previous patch
2021-02-06 1:47 [bug#46337] A patch to enable building proprietary codecs in qtwebengine pkill9
` (2 preceding siblings ...)
2021-05-30 17:54 ` [bug#46337] Attempt to fix the build Sergey Trofimov
@ 2021-05-30 18:47 ` Sergey Trofimov
2021-05-30 20:00 ` [bug#46337] Update Sergey Trofimov
4 siblings, 0 replies; 13+ messages in thread
From: Sergey Trofimov @ 2021-05-30 18:47 UTC (permalink / raw)
To: 46337
Hey there. Just to clarify why and how this patch works:
When `-webengine-proprietary-codecs` flag is added `rtc_use_h264`
gn arg would be enabled. [1]
This flag under the hood adds dependency on openh264 (to encode
webrtc streams). [2]
Now to make the build accept system library we have to jump
through some hoops:
- List of config flags [3] which qtwebengine supports misses
webengine-system-openh264
- Chromium on the other hand supports linking with system library.
[4]
- To pass the required GN arg I blatantly slap it in linux.pri to
gn_args
[1]
https://github.com/qt/qtwebengine/blob/v5.15.2/src/core/config/common.pri#L31
[2]
https://github.com/qt/qtwebengine-chromium/blob/88-based/chromium/third_party/webrtc/modules/video_coding/BUILD.gn#L402
[3]
https://github.com/qt/qtwebengine/blob/v5.15.2/src/buildtools/configure.json#L763
[4]
https://github.com/qt/qtwebengine-chromium/blob/88-based/chromium/third_party/openh264/openh264_args.gni
^ permalink raw reply [flat|nested] 13+ messages in thread
* [bug#46337] Update
2021-02-06 1:47 [bug#46337] A patch to enable building proprietary codecs in qtwebengine pkill9
` (3 preceding siblings ...)
2021-05-30 18:47 ` [bug#46337] Clarification for the previous patch Sergey Trofimov
@ 2021-05-30 20:00 ` Sergey Trofimov
4 siblings, 0 replies; 13+ messages in thread
From: Sergey Trofimov @ 2021-05-30 20:00 UTC (permalink / raw)
To: 46337
Just a quick update. I built qtwebengine with this patch on my
machine and checked that qutebrowser now plays h.264 videos.
^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#46337: Attempt to fix the build
2021-05-30 17:54 ` [bug#46337] Attempt to fix the build Sergey Trofimov
@ 2021-06-07 21:01 ` Leo Famulari
0 siblings, 0 replies; 13+ messages in thread
From: Leo Famulari @ 2021-06-07 21:01 UTC (permalink / raw)
To: Sergey Trofimov; +Cc: 46337-done
On Sun, May 30, 2021 at 07:54:33PM +0200, Sergey Trofimov wrote:
>
> Hey there, it seems that qtwebengine build script just lacks the
> `-system-openh264` flag.
> In attempt to fix that I just slap the needed GN arg to the end of
> `src/buildtools/config/linux.pri`
> I've checked that the configure phase succeeds, but the full build takes too
> long on my machine.
>
> Please find attached the proposed patch.
>
> From 553a37f4af401f2a53575c0f2d77cb5030344f40 Mon Sep 17 00:00:00 2001
> From: Sergey Trofimov <sarg@sarg.org.ru>
> Date: Sun, 30 May 2021 14:39:15 +0200
> Subject: [PATCH] qtwebengine with openh264
Thanks! I wrote a commit message and pushed as
68dcdf6ea76cddc4f9e53aabe7c1a5724d5508b2
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2021-06-07 21:02 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-06 1:47 [bug#46337] A patch to enable building proprietary codecs in qtwebengine pkill9
2021-02-06 10:10 ` Tobias Geerinckx-Rice via Guix-patches via
2021-02-06 13:05 ` Tobias Geerinckx-Rice via Guix-patches via
2021-02-07 18:12 ` Leo Famulari
2021-02-08 15:40 ` pkill9
2021-02-08 16:36 ` Leo Famulari
2021-02-08 22:53 ` pkill9
2021-02-08 23:44 ` pkill9
2021-02-09 21:17 ` Leo Famulari
2021-05-30 17:54 ` [bug#46337] Attempt to fix the build Sergey Trofimov
2021-06-07 21:01 ` bug#46337: " Leo Famulari
2021-05-30 18:47 ` [bug#46337] Clarification for the previous patch Sergey Trofimov
2021-05-30 20:00 ` [bug#46337] Update Sergey Trofimov
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).