Microsoft/vscode

GTK+ module libcanberra-gtk-module.so cannot be loaded

Open

#179.086 geöffnet am 4. Apr. 2023

Auf GitHub ansehen
 (19 Kommentare) (5 Reaktionen) (1 zugewiesene Person)TypeScript (10.221 Forks)batch import
bugconfirmedhelp wantedlinuxsnapverification-found

Repository-Metriken

Stars
 (74.848 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11h 43m) (1.000 gemergte PRs in 30 T)

Beschreibung

Hello guys,

I'm using OpenCV in VSCode (Ubuntu Software installation) and everything worked fine, until I updated my libraries (sudo apt-get update/upgrade/full-upgrade) I guess. But now VSCode or rather OpenCV can't find the GTK library.

I've tested this succesfully: GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0 ./test --> works

But when I specify the version gtk-3.0: GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-3.0 ./test --> fails

Normally the loaded version without using GTK_PATH is gtk-3.0 and then it shows me this error: image

I verified that the in /usr/lib/x86_64-linux-gnu/gtk-3.0/modules is:

image

Would appreciate to solve this warning and to understand why the .so cannot be loaded.

Thanks in advance

UPDATE: the example code can be executed without warnings in the normal gnome terminal, but VSCode seems to habe problems to find the specific libraries, so it's definitely VSCode.

Contributor Guide