Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot mix incompatible Qt library (5.12.8) with this library (5.15.8) #3626

Open
doLei-2001 opened this issue Jun 5, 2024 · 3 comments
Open
Labels
Enhancement Feature requests and code enhancements

Comments

@doLei-2001
Copy link

Feature Description

My system version is Ubuntu 2004. I downloaded the flameshot software, but when I typed flameshot in the terminal to use the software, the system prompted an error: Cannot mix incompatible Qt library (5.12.8) with this library (5.15.8)

It seems that the Qt version of my computer is too high. I should lower the Qt version, but I don't know how to do it!

I have searched all over the internet for solutions, but I can't find any that can solve my problem! Please help me! Thanks

image

@doLei-2001 doLei-2001 added the Enhancement Feature requests and code enhancements label Jun 5, 2024
@Acpear
Copy link
Contributor

Acpear commented Jun 6, 2024

Hi doLei,

What version of flameshot are you using? Is it the latest? If you want to downgrade your Qt version to fit the requirement, you might find this link useful!

@doLei-2001
Copy link
Author

Thanks for your reply!
I use the latest version of flameshot.

I try the idea of this link you provided, but it doesn't works with my problems, since that ==Qt Library== can't downgrade by this way.

image

@Acpear
Copy link
Contributor

Acpear commented Jun 9, 2024

I created a new VM and installed the latest Ubuntu 20.04.6 downloaded from the official Ubuntu website on this new VM machine, and tried some actions:

  1. Finding packages: names include "lib" and "qt" (pkgs listed later)
  2. Installation: use sudo apt install flamehsot and test if it can run, and it runs ok.
  3. Installation: use curl -LO <url> and dpkg -i <pkg>, these two commands simulate your downloaded actions, if you downloaded flameshot manually in release page, and it failed to run for missing some dependencies, NAMES and VERSIONS are listed, and you can make good use of it.

My Findings: I use the following to filter out packages with "lib" and "qt" (the command maybe redundant...)(rg stands for ripgrep)
apt list | rg -e "amd64|all" | rg -oe "\w?+qt\w?+" | sort | uniq | rg -e "lib"
and this is what it gives:

libappstreamqt libappstreamqt2 libasyncqt libasyncqt1 libinjeqt libinjeqt1 libkf5bluezqt libkf5bluezqt6 libkf5modemmanagerqt libkf5modemmanagerqt6 libkf5networkmanagerqt libkf5networkmanagerqt6 libkf5pulseaudioqt libkf5pulseaudioqt2 liblxqt liblxqt0 libmqtt libotbqtadapters libotbqtwidget libpackagekitqt5 libphonon4qt5 libphonon4qt5experimental libphonon4qt5experimental4 libplplotqt2 libpqtypes libpqtypes0 libqt5 libqt53danimation5 libqt53dcore5 libqt53dextras5 libqt53dinput5 libqt53dlogic5 libqt53dquick5 libqt53dquickanimation5 libqt53dquickextras5 libqt53dquickinput5 libqt53dquickrender5 libqt53dquickscene2d5 libqt53drender5 libqt5bluetooth5 libqt5charts5 libqt5concurrent5 libqt5core5a libqt5datavisualization5 libqt5dbus5 libqt5designer5 libqt5designercomponents5 libqt5gamepad5 libqt5glib libqt5gstreamer libqt5gstreamerquick libqt5gstreamerui libqt5gstreamerutils libqt5gui5 libqt5help5 libqt5hunspellinputmethod5 libqt5keychain1 libqt5location5 libqt5multimedia5 libqt5multimediagsttools5 libqt5multimediaquick5 libqt5multimediawidgets5 libqt5network5 libqt5networkauth5 libqt5nfc5 libqt5opengl5 libqt5pas libqt5pas1 libqt5positioning5 libqt5positioningquick5 libqt5printsupport5 libqt5qevercloud3 libqt5qml5 libqt5quick5 libqt5quickcontrols2 libqt5quickparticles5 libqt5quickshapes5 libqt5quicktemplates2 libqt5quicktest5 libqt5quickwidgets5 libqt5remoteobjects5 libqt5scintilla2 libqt5script5 libqt5scripttools5 libqt5scxml5 libqt5sensors5 libqt5serialbus5 libqt5serialport5 libqt5sql5 libqt5svg5 libqt5test5 libqt5texttospeech5 libqt5virtualkeyboard5 libqt5waylandclient5 libqt5waylandcompositor5 libqt5webchannel5 libqt5webengine libqt5webengine5 libqt5webenginecore5 libqt5webenginewidgets5 libqt5webkit5 libqt5websockets5 libqt5webview5 libqt5widgets5 libqt5x11extras5 libqt5xdg libqt5xdg3 libqt5xdgiconloader libqt5xdgiconloader3 libqt5xml5 libqt5xmlpatterns5 libqtav libqtav1 libqtavwidgets1 libqtcurve libqtdbusmock1 libqtdbustest1 libqtermwidget5 libqtest libqtpropertybrowser libqtpropertybrowser4 libqtspell libsoqt520 libzbarqt libzbarqt0

Now in the release page the .deb version for Ubuntu 20.04 is link https://github.com/flameshot-org/flameshot/releases/download/v12.1.0/flameshot-12.1.0-1.ubuntu-20.04.amd64.deb and by using dpkg -i <flameshot>.deb I got:

user@user-VirtualBox:~$ sudo dpkg -i flameshot-12.1.0-1.ubuntu-20.04.amd64.deb 
Selecting previously unselected package flameshot.
(Reading database ... 185826 files and directories currently installed.)
Preparing to unpack flameshot-12.1.0-1.ubuntu-20.04.amd64.deb ...
Unpacking flameshot (12.1.0-1) ...
dpkg: dependency problems prevent configuration of flameshot:
 flameshot depends on libqt5svg5 (>= 5.9.0~); however:
  Package libqt5svg5 is not installed.
 flameshot depends on libqt5core5a (>= 5.12.2); however:
  Package libqt5core5a:amd64 is not installed.
 flameshot depends on libqt5dbus5 (>= 5.9.0~); however:
  Package libqt5dbus5 is not installed.
 flameshot depends on libqt5gui5 (>= 5.10.0) | libqt5gui5-gles (>= 5.10.0); however:
  Package libqt5gui5:amd64 is not installed.
  Package libqt5gui5-gles is not installed.
 flameshot depends on libqt5network5 (>= 5.9.0~); however:
  Package libqt5network5 is not installed.
 flameshot depends on libqt5widgets5 (>= 5.11.0~rc1); however:
  Package libqt5widgets5 is not installed.

dpkg: error processing package flameshot (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
 flameshot

where you can find packages that you could install, for example, libqt5svg5 should be greater than 5.9.0.

Hope it helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Feature requests and code enhancements
Projects
None yet
Development

No branches or pull requests

2 participants