Spectacle not working anymore

Guys, all of a sudden, spectacle doesn’t work anymore, when I start it from a terminal, I get the following error message:
spectacle: error while loading shared libraries: libopencv_imgproc.so.411: cannot open shared object file: No such file or directory
Any ideas?
J.

That usually means you are in a partially updated state.

Have you tried updating and rebooting?

Also, be sure you aren’t using an older version of spectacle. That will not work.

My system is up to date. Of course I tried a reboot. No success.
J.

Your system does not appear to be up to date the library that should be linked in v412 not 411 (which must not be present).
It’s also possible your spectacle was installed as a non-upgradeable package (like AUR).
Remove it and add the correct package.

Didn’t I see in another post that you downgraded spectacle because you didn’t like the most recent version?

1 Like

That was a while ago. Now my system is up to date.
J.

Did you remove it from IgnorePkg in /etc/pacman.conf?

Of course I did.

Reinstall the opencv package, it’s a dependency of spectacle and provides the missing shared library libopencv_imgproc.

opencv is a 4.12 and Spectacle is looking for 4.11.

It seems like the issue here is that spectacle is out of date for some reason.

@Jeannie what does pacman -Si spectacle return?

Repositorium : extra
Name : spectacle
Version : 1:6.4.2-2
Beschreibung : KDE screenshot capture utility
Architektur : x86_64
URL : https://apps.kde.org/spectacle/
Lizenzen : GPL-2.0-or-later
Gruppen : plasma
Stellt bereit : Nichts
Hängt ab von : gcc-libs glibc kconfig kconfigwidgets kcoreaddons kcrash kdbusaddons
kglobalaccel kguiaddons ki18n kio kirigami kjobwidgets
knotifications kpipewire kservice kstatusnotifieritem kwidgetsaddons
kwindowsystem kxmlgui layer-shell-qt libxcb opencv prison purpose
qt6-base qt6-declarative qt6-imageformats qt6-multimedia qt6-wayland
wayland xcb-util xcb-util-cursor xcb-util-image
Optionale Abhängigkeiten : Nichts
In Konflikt mit : Nichts
Ersetzt : Nichts
Größe des Downloads : 2,07 MiB
Installationsgröße : 5,94 MiB
Packer : Antonio Rojas arojas@archlinux.org
Erstellt am : Mi 02 Jul 2025 17:26:36 CEST
Verifiziert durch : SHA-256-Summe Signatur

That version seems to be linked to libopencv_imgproc.so.412 => /usr/lib/libopencv_imgproc.so.412 (0x00007fdf2de4d000)

If yours is looking for 4.11, it looks like you have an older version installed.

What doespacman -Q spectacle show?

spectacle 1:6.4.2-2

$ pacman -Fl opencv | grep imgproc.so
opencv usr/lib/libopencv_imgproc.so
opencv usr/lib/libopencv_imgproc.so.4.11.0
opencv usr/lib/libopencv_imgproc.so.411
opencv usr/lib/libopencv_ximgproc.so
opencv usr/lib/libopencv_ximgproc.so.4.11.0
opencv usr/lib/libopencv_ximgproc.so.411
$ expac %v opencv
4.12.0-1

So does reinstalling opencv help?

Is your database out of date?

>> pacman -Fl opencv | grep imgproc.so                                                                                                      
opencv usr/lib/libopencv_imgproc.so
opencv usr/lib/libopencv_imgproc.so.4.12.0
opencv usr/lib/libopencv_imgproc.so.412
opencv usr/lib/libopencv_ximgproc.so
opencv usr/lib/libopencv_ximgproc.so.4.12.0
opencv usr/lib/libopencv_ximgproc.so.412

You’re right, it wasn’t OK. Thanks.

1 Like