FS#72946 - [telegram-desktop] Build with Qt 6
Attached to Project:
Community Packages
Opened by Ilya Fedin (ilya-fedin) - Tuesday, 07 December 2021, 16:25 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 01 January 2022, 17:25 GMT
Opened by Ilya Fedin (ilya-fedin) - Tuesday, 07 December 2021, 16:25 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 01 January 2022, 17:25 GMT
|
Details
Description:
The comment in PKGBUILD says: # Use Qt5 for the time being until kwayland has an easier way to work with Qt6. But it's easy to build kwayland with Qt 6: just add kwayland build commands to telegram-desktop PKGBUILD, apply https://github.com/desktop-app/patches/blob/master/kwayland-qt6.patch, add -DBUILD_SHARED_LIBS=OFF to kwayland's build flags, set -DCMAKE_INSTALL_PREFIX to a subdir in kwayland source directory, cmake --install it without DESTDIR and set telegram-desktop's -DKF5Wayland_DIR to $kwayland_prefix/lib/cmake/KF5Wayland. It should build just fine, as a result you will have Qt6-based tdesktop with statically linked Qt6-based kwayland. |
This task depends upon
Closed by Sven-Hendrik Haase (Svenstaro)
Saturday, 01 January 2022, 17:25 GMT
Reason for closing: Fixed
Saturday, 01 January 2022, 17:25 GMT
Reason for closing: Fixed
https://github.com/telegramdesktop/tdesktop/blob/dev/changelog.txt#L92
3.3.1 updates official builds to new patch version and simplifies build with kwayland
-- Checking for module 'rlottie'
-- Package 'rlottie', required by 'virtual:world', not found
-- Checking for module 'tgvoip'
-- Package 'tgvoip', required by 'virtual:world', not found
I didn't bother doing the submodules properly yet, though.
I also see that you missing libdispatch (it seems it's present in AUR), it tries first to find system version, then tries to build the bundled version (but fails since can't find clang) and finally fallbacks to poor QThreadPool.
Not that it's important at all, just wanted to bring this up here.
qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
That is expected until the KDE platform plugin is ported to Qt6