qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
-
@hskoglund I believe we've found the solution to this.
The problem was ~ (tlide) was not working with .zshrc config.
Hence qmake and other binary were not being found.
I've changed it to the absolute path now.
Running the build again. Lets see :) -
It Worked! :facepalm: :D
Thanks a lot @hskoglund for helping me troubleshoot this! You're great.
So the problem was a ~ from the beginning. This was too silly.
Build is sucsessful and Package is running fine now. -
Guys I still am getting this error
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
AbortedBTW I am using Ubuntu20 on Windows10 with xcvsrv as X server
-
Hi just guessing but maybe the solution in this post will help you too.
-
@Lengendary This is working solution for me, thank you
sudo apt-get install libxcb-xinerama0
-
I know it is considered as a good software to build good software, but the point is here:
When you follow an installation guide step by step and make everything correctly, and the stuff does not works, that just mean it have been made with foot (from the stuff to the documentation.)
Really for thus who do their best, but it just not works on Debian 10 without doing weird things that should not be done out of the installation documentation.
Good luck
-
@Srinivas-Reddy Thanks. That helped me
-
Thanks for all the helpful info on the thread!!
I am attempting an anaconda environment creation... I don't have admin privileges on the system I'm working on. It's Ubuntu16.04.1 LTS (Xenial Xerus)"
The error I get is below. I'm assuming that because I'm using the anaconda install vs using apt-get, I can't just easily reinstall? It looks to me as if I'm missing the libxcb-xinerama.so.0 package. I checked qmake --version, the output shows Qt version 5.9.7
Thanks for any suggestions!
QLibraryPrivate::loadPlugin failed on "/export/research/analysis/human/jstephen/shared/programs/python/anaconda_072020/new/envs/mne21/lib/python3.8/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /export/research/analysis/human/jstephen/shared/programs/python/anaconda_072020/new/envs/mne21/lib/python3.8/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so: (libxcb-xinerama.so.0: cannot open shared object file: No such file or directory)"
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.$ qmake --version
QMake version 3.1
Using Qt version 5.9.7 in /export/research/analysis/human/jstephen/shared/programs/python/anaconda_072020/new/envs/mne21/lib -
@Megan-S said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:
libxcb-xinerama.so.0: cannot open shared object file: No such file or directory
So do you have libxcb-xinerama.so.0?
-
@Srinivas-Reddy Many thanks, that got mine working too!
-
@Srinivas-Reddy Many thanks!
-
@Advig said in qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.:
-
export QT_DEBUG_PLUGINS=1
-
export PATH=$PATH:~/Qt/Tools/QtCreator/bin
-
libxcb dependency so https://unix.stackexchange.com/questions/338519/how-to-install-libxcb gave the solution.
sudo apt-get install libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev
- sudo apt-get install libxkbcommon-x11-dev
solved my problem for ubuntu 20.04. Tried reinstalling almost 3 times before the solution. Hope it helps someone
-
-
So, Debian 10:
- ldd -r <for example, home dir>/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so | grep libxcb-util
libxcb-util.so.1 => not found
-
Ok, continue...
sudo find /usr/lib | grep libxcb-util
...
libxcb-util.so.0.0.0
libxcb-util.so.0.0
libxcb-util.so.0
, but need
libxcb-util.so.1 -
Ok, Debian... :) Redy?
sudo ln -fs /usr/lib/x86_64-linux-gnu/libxcb-util.so.0.0.0 /usr/lib/x86_64-linux-gnu/libxcb-util.so.1.0.0
sudo ln -fs /usr/lib/x86_64-linux-gnu/libxcb-util.so.0.0.0 /usr/lib/x86_64-linux-gnu/libxcb-util.so.1.0
sudo ln -fs /usr/lib/x86_64-linux-gnu/libxcb-util.so.0.0.0 /usr/lib/x86_64-linux-gnu/libxcb-util.so.1
QtCreator start complete! :))))
-
@coffeesmoke thanks for the help. you revived my qt on debian 10