(In reply to Vitaly Zaitsev from comment #21) > > It is possible to build telegram-desktop against the system Qt: > > Thanks. Merged with my patches and now builds against system Qt works fine, > but I can't run result binary because it cannot find Qt plugin: > > linux-vdso.so.1 (0x00007ffd03139000) > liblzma.so.5 => /lib64/liblzma.so.5 (0x00007fa567e72000) > libopenal.so.1 => /lib64/libopenal.so.1 (0x00007fa567bd7000) > libavformat.so.57 => /lib64/libavformat.so.57 (0x00007fa5677e4000) > libavcodec.so.57 => /lib64/libavcodec.so.57 (0x00007fa566437000) > libswresample.so.2 => /lib64/libswresample.so.2 (0x00007fa56621b000) > libswscale.so.4 => /lib64/libswscale.so.4 (0x00007fa565f93000) > libavutil.so.55 => /lib64/libavutil.so.55 (0x00007fa565d19000) > libopus.so.0 => /lib64/libopus.so.0 (0x00007fa565ac8000) > libva-x11.so.1 => /lib64/libva-x11.so.1 (0x00007fa5658c2000) > libva-drm.so.1 => /lib64/libva-drm.so.1 (0x00007fa5656bf000) > libva.so.1 => /lib64/libva.so.1 (0x00007fa56549f000) > libvdpau.so.1 => /lib64/libvdpau.so.1 (0x00007fa565299000) > libz.so.1 => /lib64/libz.so.1 (0x00007fa565083000) > libwebp.so.6 => /lib64/libwebp.so.6 (0x00007fa564e22000) > libminizip.so.1 => /lib64/libminizip.so.1 (0x00007fa564c16000) > libQt5XcbQpa.so.5 => /lib64/libQt5XcbQpa.so.5 (0x00007fa564b12000) > libqconnmanbearer.so => not found > libqgenericbearer.so => not found > libqnmbearer.so => not found > libqwebp.so => not found > libQt5Network.so.5 => /lib64/libQt5Network.so.5 (0x00007fa5649a5000) > libQt5Widgets.so.5 => /lib64/libQt5Widgets.so.5 (0x00007fa564340000) > libQt5Gui.so.5 => /lib64/libQt5Gui.so.5 (0x00007fa563e9d000) > libQt5DBus.so.5 => /lib64/libQt5DBus.so.5 (0x00007fa563e0f000) > libQt5Core.so.5 => /lib64/libQt5Core.so.5 (0x00007fa563985000) > libXi.so.6 => /lib64/libXi.so.6 (0x00007fa563775000) > libXext.so.6 => /lib64/libXext.so.6 (0x00007fa563563000) > libXfixes.so.3 => /lib64/libXfixes.so.3 (0x00007fa56335d000) > libSM.so.6 => /lib64/libSM.so.6 (0x00007fa563155000) > libICE.so.6 => /lib64/libICE.so.6 (0x00007fa562f37000) > libfontconfig.so.1 => /lib64/libfontconfig.so.1 (0x00007fa562cf3000) > libexpat.so.1 => /lib64/libexpat.so.1 (0x00007fa562ac9000) > libfreetype.so.6 => /lib64/libfreetype.so.6 (0x00007fa56280e000) > libxcb-shm.so.0 => /lib64/libxcb-shm.so.0 (0x00007fa56260a000) > libxcb-xfixes.so.0 => /lib64/libxcb-xfixes.so.0 (0x00007fa562402000) > libxcb-render.so.0 => /lib64/libxcb-render.so.0 (0x00007fa5621f2000) > libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007fa561d91000) > libxcb.so.1 => /lib64/libxcb.so.1 (0x00007fa561b69000) > libX11.so.6 => /lib64/libX11.so.6 (0x00007fa56182a000) > libX11-xcb.so.1 => /lib64/libX11-xcb.so.1 (0x00007fa561628000) > libdbus-1.so.3 => /lib64/libdbus-1.so.3 (0x00007fa5613d8000) > libdl.so.2 => /lib64/libdl.so.2 (0x00007fa5611d2000) > libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0 (0x00007fa560fd0000) > libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007fa560cbd000) > libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fa560a9f000) > libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fa560717000) > libm.so.6 => /lib64/libm.so.6 (0x00007fa56040e000) > libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fa5601f5000) > libc.so.6 => /lib64/libc.so.6 (0x00007fa55fe2f000) > librt.so.1 => /lib64/librt.so.1 (0x00007fa55fc27000) > libgcrypt.so.20 => /lib64/libgcrypt.so.20 (0x00007fa55f941000) > libbluray.so.1 => /lib64/libbluray.so.1 (0x00007fa55f6f7000) > libgnutls.so.30 => /lib64/libgnutls.so.30 (0x00007fa55f390000) > libbz2.so.1 => /lib64/libbz2.so.1 (0x00007fa55f17e000) > libxvidcore.so.4 => /lib64/libxvidcore.so.4 (0x00007fa55ee6d000) > libx265.so.79 => /lib64/libx265.so.79 (0x00007fa55e91a000) > libx264.so.148 => /lib64/libx264.so.148 (0x00007fa55e5bc000) > libvpx.so.4 => /lib64/libvpx.so.4 (0x00007fa55e1b3000) > libvorbisenc.so.2 => /lib64/libvorbisenc.so.2 (0x00007fa55df0a000) > libvorbis.so.0 => /lib64/libvorbis.so.0 (0x00007fa55dcdc000) > libtheoraenc.so.1 => /lib64/libtheoraenc.so.1 (0x00007fa55da9b000) > libtheoradec.so.1 => /lib64/libtheoradec.so.1 (0x00007fa55d880000) > libspeex.so.1 => /lib64/libspeex.so.1 (0x00007fa55d667000) > libschroedinger-1.0.so.0 => /lib64/libschroedinger-1.0.so.0 > (0x00007fa55d384000) > libopenjp2.so.7 => /lib64/libopenjp2.so.7 (0x00007fa55d14e000) > libmp3lame.so.0 => /lib64/libmp3lame.so.0 (0x00007fa55ced5000) > libmfx.so.0 => /lib64/libmfx.so.0 (0x00007fa55ccc1000) > libgsm.so.1 => /lib64/libgsm.so.1 (0x00007fa55cab5000) > libsoxr.so.0 => /lib64/libsoxr.so.0 (0x00007fa55c852000) > libOpenCL.so.1 => /lib64/libOpenCL.so.1 (0x00007fa55c633000) > libdrm.so.2 => /lib64/libdrm.so.2 (0x00007fa55c420000) > libxcb-render-util.so.0 => /lib64/libxcb-render-util.so.0 > (0x00007fa55c21c000) > libxcb-image.so.0 => /lib64/libxcb-image.so.0 (0x00007fa55c017000) > libxcb-icccm.so.4 => /lib64/libxcb-icccm.so.4 (0x00007fa55be12000) > libxcb-sync.so.1 => /lib64/libxcb-sync.so.1 (0x00007fa55bc0b000) > libxcb-randr.so.0 => /lib64/libxcb-randr.so.0 (0x00007fa55b9fb000) > libxcb-shape.so.0 => /lib64/libxcb-shape.so.0 (0x00007fa55b7f7000) > libxcb-keysyms.so.1 => /lib64/libxcb-keysyms.so.1 (0x00007fa55b5f2000) > libxcb-xinerama.so.0 => /lib64/libxcb-xinerama.so.0 (0x00007fa55b3ef000) > libxcb-xkb.so.1 => /lib64/libxcb-xkb.so.1 (0x00007fa55b1d3000) > libxkbcommon-x11.so.0 => /lib64/libxkbcommon-x11.so.0 (0x00007fa55afcb000) > libXrender.so.1 => /lib64/libXrender.so.1 (0x00007fa55adc1000) > libinput.so.10 => /lib64/libinput.so.10 (0x00007fa55ab8f000) > libxkbcommon.so.0 => /lib64/libxkbcommon.so.0 (0x00007fa55a94d000) > libudev.so.1 => /lib64/libudev.so.1 (0x00007fa55a92c000) > libEGL.so.1 => /lib64/libEGL.so.1 (0x00007fa55a719000) > libGL.so.1 => /lib64/libGL.so.1 (0x00007fa55a48d000) > libproxy.so.1 => /lib64/libproxy.so.1 (0x00007fa55a26e000) > libssl.so.10 => /lib64/libssl.so.10 (0x00007fa559ffc000) > libharfbuzz.so.0 => /lib64/libharfbuzz.so.0 (0x00007fa559d96000) > libpng16.so.16 => /lib64/libpng16.so.16 (0x00007fa559b63000) > libicui18n.so.57 => /lib64/libicui18n.so.57 (0x00007fa5596eb000) > libicuuc.so.57 => /lib64/libicuuc.so.57 (0x00007fa559342000) > libicudata.so.57 => /lib64/libicudata.so.57 (0x00007fa5578c5000) > libpcre16.so.0 => /lib64/libpcre16.so.0 (0x00007fa55765c000) > libsystemd.so.0 => /lib64/libsystemd.so.0 (0x00007fa5575cf000) > /lib64/ld-linux-x86-64.so.2 (0x0000562eefe6d000) > libuuid.so.1 => /lib64/libuuid.so.1 (0x00007fa5573ca000) > libbsd.so.0 => /lib64/libbsd.so.0 (0x00007fa5571b5000) > libXau.so.6 => /lib64/libXau.so.6 (0x00007fa556fb1000) > libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fa556d3e000) > libgpg-error.so.0 => /lib64/libgpg-error.so.0 (0x00007fa556b28000) > libxml2.so.2 => /lib64/libxml2.so.2 (0x00007fa5567c1000) > libp11-kit.so.0 => /lib64/libp11-kit.so.0 (0x00007fa55655c000) > libidn2.so.0 => /lib64/libidn2.so.0 (0x00007fa55633a000) > libunistring.so.2 => /lib64/libunistring.so.2 (0x00007fa55600a000) > libtasn1.so.6 => /lib64/libtasn1.so.6 (0x00007fa555df7000) > libnettle.so.6 => /lib64/libnettle.so.6 (0x00007fa555bbd000) > libhogweed.so.4 => /lib64/libhogweed.so.4 (0x00007fa555991000) > libgmp.so.10 => /lib64/libgmp.so.10 (0x00007fa5556fe000) > libnuma.so.1 => /lib64/libnuma.so.1 (0x00007fa5554f3000) > libogg.so.0 => /usr/lib64/libogg.so.0 (0x00007fa5552ec000) > liborc-0.4.so.0 => /lib64/liborc-0.4.so.0 (0x00007fa55506d000) > libgomp.so.1 => /lib64/libgomp.so.1 (0x00007fa554e3f000) > libxcb-util.so.1 => /lib64/libxcb-util.so.1 (0x00007fa554c39000) > libmtdev.so.1 => /lib64/libmtdev.so.1 (0x00007fa554a33000) > libevdev.so.2 => /lib64/libevdev.so.2 (0x00007fa554819000) > libwacom.so.2 => /lib64/libwacom.so.2 (0x00007fa55460d000) > libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fa5543f2000) > libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fa5541cb000) > libcap.so.2 => /lib64/libcap.so.2 (0x00007fa553fc6000) > libGLdispatch.so.0 => /lib64/libGLdispatch.so.0 (0x00007fa553d10000) > libGLX.so.0 => /lib64/libGLX.so.0 (0x00007fa553adf000) > libmodman.so.1 => /lib64/libmodman.so.1 (0x00007fa5538d5000) > libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fa553688000) > libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fa5533a2000) > libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fa55319e000) > libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fa552f6d000) > libgraphite2.so.3 => /lib64/libgraphite2.so.3 (0x00007fa552d41000) > liblz4.so.1 => /lib64/liblz4.so.1 (0x00007fa552b2b000) > libffi.so.6 => /lib64/libffi.so.6 (0x00007fa552923000) > libgudev-1.0.so.0 => /lib64/libgudev-1.0.so.0 (0x00007fa552719000) > libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x00007fa5524c7000) > libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fa5522b6000) > libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fa5520b2000) > libgio-2.0.so.0 => /lib64/libgio-2.0.so.0 (0x00007fa551d1f000) > libgmodule-2.0.so.0 => /lib64/libgmodule-2.0.so.0 (0x00007fa551b1b000) > libmount.so.1 => /lib64/libmount.so.1 (0x00007fa5518d1000) > libblkid.so.1 => /lib64/libblkid.so.1 (0x00007fa55168e000) > > New SPEC and patches can be find here: > https://github.com/xvitaly/tgbuild/tree/rpmfusion Did you fix the hardcoded path? https://github.com/mymedia2/tdesktop/blob/debian/1.0.6-1/debian/patches/Avoid-depending-on-static-libraries.patch#L14