FS#73177 - [qt6-webengine] Qt PDF is missing and it-tree libevent
Attached to Project:
Arch Linux
Opened by tinywrkb (tinywrkb) - Tuesday, 28 December 2021, 11:08 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 28 December 2021, 17:50 GMT
Opened by tinywrkb (tinywrkb) - Tuesday, 28 December 2021, 11:08 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 28 December 2021, 17:50 GMT
|
Details
I'm not using the package, but I'm packaging it as Flatpak,
so I looked at the packaging here, and noticed that Qt PDF
is not included while qt5-webengine has it.
Is there a reason it's missing? If not, then add it with ``` -DQT_FEATURE_qtpdf_build=ON -DQT_FEATURE_qtpdf_widgets_build=ON -DQT_FEATURE_qtpdf_quick_build=ON ``` Another issue is that I believe system libevent is disabled by default due to a COIN issue 711 (https://bugreports.qt.io/projects/COIN/issues/COIN-711), so it can be removed from the depends array. I actually didn't confirm this with the build log of the Arch Linux package. With my Flatpak package, forcing system libevent (i.e. `-DQT_FEATURE_webengine_system_libevent=ON`) ended with a linker failure, so it's possible you'll also need something like this: ``` sed -i '\@libs.*=@ s@event@/usr/lib/libevent.so@' src/3rdparty/chromium/base/third_party/libevent/BUILD.gn ``` |
This task depends upon
Closed by Antonio Rojas (arojas)
Tuesday, 28 December 2021, 17:50 GMT
Reason for closing: Deferred
Additional comments about closing: QtPDF will be built in 6.3
Tuesday, 28 December 2021, 17:50 GMT
Reason for closing: Deferred
Additional comments about closing: QtPDF will be built in 6.3
https://lists.qt-project.org/pipermail/interest/2021-September/037434.html
Thanks for the heads up about libevent
If the linker can't find libevent, then the following might work.
diff --git a/chromium/build/config/linux/pkg-config.py b/chromium/build/config/linux/pkg-config.py
index 5adf70cc3bb..35f61d9f326 100755
--- a/chromium/build/config/linux/pkg-config.py
+++ b/chromium/build/config/linux/pkg-config.py
@@ -213,7 +213,7 @@ def main():
includes = []
cflags = []
libs = []
- lib_dirs = []
+ lib_dirs = [ "/usr/lib" ]
for flag in all_flags[:]:
if len(flag) == 0 or MatchesAnyRegexp(flag, strip_out):