Couldn load plugin linux

«Не удалось загрузить плагин платформы« xcb »» при запуске приложения qt5 в Linux без установленной qt

Я написал приложение для Linux, которое использует Qt5.

Но когда я пытаюсь запустить его на Linux без установленного Qt SDK, вывод в консоли:

Как я могу это исправить? Может быть, мне нужно скопировать файл плагина? Когда я использую Ubuntu с установленным Qt5, но переименовываю каталог Qt, возникает та же проблема. Итак, он использует какой-то файл из каталога qt .

Я нашел файл libqxcb.so в каталоге Qt SDK, но его размещение /usr/lib не помогает.

Правильное решение — запустить следующую команду на терминале:

sudo ln -sf /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/ /usr/bin/

Создает символическую ссылку, которую пропустил.

Всем будущим читателям, которые сталкиваются с этим — прежде чем вы начнете (опасно) возиться с символическими ссылками на общие библиотеки, я настоятельно рекомендую вам запустить

а затем снова запустите свой сбойный исполняемый файл в Терминале. Прочитайте фактическое сообщение об ошибке, выдаваемое QT, поскольку ни одно из приведенных выше решений не устраняет причину этой ошибки в моем случае.

Мой вывод после включения QT_DEBUG_PLUGINS был:

так что я затем погуглил version `ZLIB_1.2.9′ not found (required by /usr/lib/x86_64-linux-gnu/libpng16.so.16)) ошибку и нашел решение , которое решило проблему.

У меня было это сообщение об ошибке при попытке запустить «Stellarium».

С помощью strace я обнаружил, что отсутствующий файл был libxcb-xinerama.so.0 . Мне пришлось переустановить, libxcb-xinerama0 чтобы заставить его работать:

Попробуйте установить libqt5x11extras5 пакет с помощью команды:
sudo apt-get install libqt5x11extras5

Название может быть другим. Вы можете понять это с помощью поиска:
sudo apt-cache search qt5 | grep ‘X11 extras’

и вы получите название пакета в результате:

libqt5x11extras5дополнения Qt 5 X11

Запустите ldd в исполняемом файле приложения, чтобы увидеть, как оно разрешает зависимости библиотеки.

Также это необходимо прочитать, чтобы понять, какие основные библиотеки необходимы в простом случае графического приложения:

В моем Ubuntu типа:

Для тех, кто все еще застрял после того, как попробовал любой другой вариант в Интернете, вы можете найти точный путь, по которому этот пресловутый libqxcb.so поиск ищется, для открытия / загрузки Qt приложением ( VirtualBox-5.2.8 это Qt приложение в моем случае), используя Трассирование инструмент. В моем случае, так как я строил VirtualBox-5.2.8 из его источника, он искал libqxcb.so в расположении ниже:
«. VirtualBox-5.2.8/out/linux.amd64/release/bin/platforms/» а не в default путях библиотеки, пути Qt установки и т. Д. Итак, ни одна из ldd проверок и другие решения не работали. Кроме того, установка QT_DEBUG_PLUGINS=1 не принесла никаких дополнительных журналов.

Запуск strace в бинарном файле VirtualBox, который я создал с использованием Clang / LLVM в Ubuntu 17.10 x86_64:

Источник

Thread: Couldn’t load plugin — Flash in Chromium

Thread Tools
Display

Couldn’t load plugin — Flash in Chromium

I tried to find solution but I just couldn’t. Does anyone of you know how to fix this problem?
When I try to watch videos on YouTube, Chromium says «couldn’t load plugin».
There was flashplugin-installer already installed , but I reinstalled it, and Chromium(it did’t help). I also tied to copy libflashplayer.so to /etc/lib/chromium-browser/plugins.

does not help neither, and flash plugin is already enabled.

Читайте также:  Change windows password with cmd

Re: Couldn’t load plugin — Flash in Chromium

have you installed ubuntu-restricted-addons and ubuntu-restricted-extras yet?

in not do that first.
Then see if it works.

Re: Couldn’t load plugin — Flash in Chromium

It was installed already.
It seems that this happens only with some videos, while I can watch others, both on same site — YouTube. It’s strange, really.
I tried playing one .flv and one .mp4 file that were downloaded on another computer for youtube months ago. But it couldn’t play. I can play .mp3 files and hear audio of above mentioned files in audacious and vlc but not in default mplayer.
I installed Lubuntu recently, and never tried to play any multimedia files before.
What’s happening? How can I play this videos in Lubuntu.

Last edited by komarx6; October 18th, 2012 at 08:15 PM .

Re: Couldn’t load plugin — Flash in Chromium

I’m not sure what is wrong then, I have Lubuntu loaded on this machine with lubuntu-restricted-extras and lubuntu-restricted-addons and everything work wonderfully. mp3 mp4 flash all working.

you can try uninstalling those files and reinstalling them that might work for you.

Re: Couldn’t load plugin — Flash in Chromium

I found out what was the problem. My machine is simply too old. I had to install older version of Flash downloaded from Adobe’s site.
I am sorry for bothering you.

Re: Couldn’t load plugin — Flash in Chromium

I am having the same issues. The plugin is installed/enabled but the «Couldn’t load plug-in» message appears instead of the Flash video/ad/whatever. How did you determine your computer was simply «too old» (my computer is fairly old as well), and from where did you obtain the older Flash plugin?

[edit]
I found the problem and solution are explained here:

Recent versions of Flash require a CPU that supports SSE2 instructions. Otherwise you have to revert to an older version of Flash, which is what I had to do.

Last edited by posfan12; December 6th, 2012 at 03:18 AM .

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

compiz (core) — Error: Couldn’t load plugin ??

compiz (core) — Error: Couldn’t load plugin ??

Post by mintrampage » Sun Jul 15, 2012 11:26 pm

I’m new to this forum ..

here is my question . I’m running Linux Mint 13 Mate 64bit . i have it running great on 2 out of 3 computers with compiz and emerald theme manager.

1 computer isn’t working .. i do the compiz —replace and i get this long error. ==>

$ compiz —replace ccp
Backend : ini
Integration : true
Profile : default
Adding plugins
Initializing core options. done
Initializing crashhandler options. done
Initializing composite options. done
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libopengl.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘opengl’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libcompiztoolbox.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘compiztoolbox’
Initializing imgjpeg options. done
Initializing maximumize options. done
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libdecor.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘decor’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libresize.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘resize’
Initializing gnomecompat options. done
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libtext.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘text’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libtrailfocus.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘trailfocus’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libimgsvg.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘imgsvg’
Initializing vpswitch options. done
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libmove.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘move’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libanimation.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘animation’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libshelf.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘shelf’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libopacify.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘opacify’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libmblur.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘mblur’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libobs.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘obs’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libring.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘ring’
Initializing mousepoll options. done
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libscreenshot.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘screenshot’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libwater.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘water’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libanimationaddon.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘animationaddon’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libput.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘put’
Initializing winrules options. done
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libworkarounds.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘workarounds’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libthumbnail.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘thumbnail’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libwobbly.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘wobbly’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libcube.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘cube’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libexpo.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘expo’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libtd.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘td’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libscale.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘scale’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/libscaleaddon.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘scaleaddon’
compiz (core) — Error: Couldn’t load plugin ‘/usr/lib/compiz/librotate.so’ : libGL.so.1: cannot open shared object file: No such file or directory
compiz (core) — Error: Couldn’t load plugin ‘rotate’

Читайте также:  После установки оперативной памяти компьютер перезагружается windows 10

i have even purged compiz and emerald. uninstalled and reinstalled.. through both software center and synaptic package manager .. and though terminal . reinstalled.. got the latest ppa and everything i can think of.

can’t get Cube . my window borders disapear leaving me with just the menu no way to move the window. i can use fusion icon and change to marco or metacity and those work. still no cube or effects . can’t figure out what i did. the computer is a P4 dual 3.0 ghz .. 2 gb ram . intel video card. Let me know if you need any more info..

thanks in advanced for any help . bare with me i’m new but i learn quick

Источник

Arch Linux

You are not logged in.

#1 2016-03-24 02:12:13

[SOLVED] mocp «Can’t load plugin libwavpack_decoder» and «FATAL_ERROR»

I just installed moc and upon running it with mocp, I get the following errors:

I found this thread, but it did not fix my issue since I don’t have a

If anybody could help me solve this issue, that would great. I’m happy to provide any output if it would help.

Last edited by Archeon (2016-03-26 21:41:27)

#2 2016-03-24 07:32:18

Re: [SOLVED] mocp «Can’t load plugin libwavpack_decoder» and «FATAL_ERROR»

And what do you have? If you are using pulseaudio you have to have the /etc/asound.conf from the pulseaudio-alsa package. Post

Last edited by V1del (2016-03-24 08:32:44)

#3 2016-03-24 11:37:35

Re: [SOLVED] mocp «Can’t load plugin libwavpack_decoder» and «FATAL_ERROR»

You have an errormessage that’s not mentioned at all in that other thread, so there’s a big chance you have another issue.

Читайте также:  Меня анимацию папок windows

Is wavpack installed on your system ?

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can’t help you.

(A works at time B) && (time C > time B ) ≠ (A works at time C)

#4 2016-03-24 16:03:10

Re: [SOLVED] mocp «Can’t load plugin libwavpack_decoder» and «FATAL_ERROR»

And what do you have? If you are using pulseaudio you have to have the /etc/asound.conf from the pulseaudio-alsa package. Post

did not return anything

I guess that means that I don’t have the pulseaudio-alsa package. I’m not sure if this would help, but for my i3 config to manage my laptop’s volume keys, I use the following two lines:

pactl’s man page states that pactl «Control(s) a running PulseAudio sound server».
Unfortunately, I’m not very good when it comes to multimedia, so I hope this is of use!

Источник

Оцените статью