ksnip icon indicating copy to clipboard operation
ksnip copied to clipboard

include libqt5x11extras5 as dependency for .deb installer

Open stragu opened this issue 3 years ago • 3 comments

Describe the bug

A fresh install of ksnip 1.9.2 from .deb on a fresh install of Ubuntu 20.04 wouldn't open the app. Running ksnip in the terminal revealed that it couldn't find the shared library libQt5X11Extras.so.5:

ksnip: error while loading shared libraries: libQt5X11Extras.so.5: cannot open shared object file: No such file or directory

This library is made available by the package libqt5x11extras5, and installing it with sudo apt install libqt5x11extras5 fixed the problem.

Could we include libqt5x11extras5 as a dependency for the .deb installer? The size of the dependency was negligible for me (10 KB).

To Reproduce Steps to reproduce the behavior:

  1. Install ksnip 1.9.2 (not tested with other versions) on Ubuntu 20.04
  2. Try to open the app
  3. App does not open
  4. Try starting it from terminal by running the ksnip command
  5. Error message about libQt5X11Extras.so.5 not found

Expected behavior App opens normally, and installer has the correct dependencies.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Linux
  • Distribution: Ubuntu 20.04.4 LTS 64-bits
  • ksnip version: 1.9.2
  • How did you install ksnip: .deb

Extra info Not sure if this matters at all, but I realised I had installed Anaconda not long before, and a search for the library showed me these results:

/home/stragu/anaconda3/lib/libQt5X11Extras.so
/home/stragu/anaconda3/pkgs/qt-5.9.7-h5867ecd_1/lib/libQt5X11Extras.so

stragu avatar Apr 05 '22 03:04 stragu

Yeah, that should be doable, need to have a look into it.

DamirPorobic avatar Apr 05 '22 06:04 DamirPorobic

Same issue here. I tried to install QT to fix it. nothing worked.

kenji-getpowered avatar Sep 14 '22 22:09 kenji-getpowered

After having a discussion with some KDE developers I decided to discontinue the .deb and .rpm installers in the long run, probably the next minor version 1.11.0 wont have it anymore. The reason being that we currently have a dependency clash with two KDE applications that cannot be resolved because ksnip and those two applications bring different kImageAnnotator versions and installing one, break the other. We should leave the .deb and .rpm packaging to the repos and provide only bundled installers like AppImage, Flatpak or Snap, which we all support. If someone is looking for .dep or .rpm installations, should check their repo, ksnip should be supported by now by all major distros.

DamirPorobic avatar Sep 15 '22 05:09 DamirPorobic