qt.qpa.xcb: could not connect to display error
-
@JonB
Yes, that was it. ldd showed that I had libxcb-util.so.0 so I created a link in the same directory for libxcb-util.so.1 and now QtCreator is running.
Many thanks for your help@Colins2 how you created a link for it, libqxcb.so not found in my project
-
@Colins2 how you created a link for it, libqxcb.so not found in my project
This post is deleted! -
@Colins2 how you created a link for it, libqxcb.so not found in my project
@suslucoder
Run the ldd command that JonB posted above and scroll through the list to try and find libxcb-util.so.?
You seem to have a similar problem to me in that Qt can't find the shared library.
ldd will show you where the libxcb file is. Qt wants version .so.1 and I had .so.0 and so it wouldn't run.
It's probably best to try and find the newer version from your distro repo, which I will do sometime but just to try it out I created a link called libxcb-util.so.1 linked back to ver so.0 so that Qt could find it. -
@suslucoder
Run the ldd command that JonB posted above and scroll through the list to try and find libxcb-util.so.?
You seem to have a similar problem to me in that Qt can't find the shared library.
ldd will show you where the libxcb file is. Qt wants version .so.1 and I had .so.0 and so it wouldn't run.
It's probably best to try and find the newer version from your distro repo, which I will do sometime but just to try it out I created a link called libxcb-util.so.1 linked back to ver so.0 so that Qt could find it.@Colins2 it doesnt find it. I will figure it out
ldd: /home/ilknur/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: No such file or directory
-
@Colins2 it doesnt find it. I will figure it out
ldd: /home/ilknur/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: No such file or directory
@suslucoder
libxcb-utils.so.* is not a Qt library so you may have to get it using your update tool.
Here's an excerpt from my system from the ldd command:
libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007f11afec6000)
libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007f11afcc1000)
libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f11afcba000)
libxcb-util.so.1 => /lib/x86_64-linux-gnu/libxcb-util.so.1 (0x00007f11afab3000)
libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f11af8b0000)
Obviously showing after the link I created. -
@mrjj sorry i didnt see this answer. Im trying to run on qt creator. ı didnt deploy my project.
-
@mrjj sorry i didnt see this answer. Im trying to run on qt creator. ı didnt deploy my project.
Ok. Is this by any chance ubuntu 20.04 ?
sometimes people have to install libxcb-xinerama.so
sometimes more.
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-devbut please check with ldd first, what is actually missing.
-
Ok. Is this by any chance ubuntu 20.04 ?
sometimes people have to install libxcb-xinerama.so
sometimes more.
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-devbut please check with ldd first, what is actually missing.
@mrjj I've solve this problem with setting ld library path in environment variables.
But now, it says it cannot find another lib, i really stuck on it -
@mrjj I've solve this problem with setting ld library path in environment variables.
But now, it says it cannot find another lib, i really stuck on it@suslucoder said in qt.qpa.xcb: could not connect to display error:
i really stuck on it
You forgot to say which other lib is not found now...
Also, setting LD_LIBRARY_PATH is not necessary if all needed packages are installed properly.Please take a look at https://doc.qt.io/qt-5/linux-requirements.html
-
@suslucoder said in qt.qpa.xcb: could not connect to display error:
i really stuck on it
You forgot to say which other lib is not found now...
Also, setting LD_LIBRARY_PATH is not necessary if all needed packages are installed properly.Please take a look at https://doc.qt.io/qt-5/linux-requirements.html
@jsulm when i run it on terminal
like./my app name
there is no library that gives not found error
but when i tried to run it on qt creator it is give an error.
Other lib is that cannot found, libqmapcontrol.so.0
it is related with qmapcontrol -
@jsulm when i run it on terminal
like./my app name
there is no library that gives not found error
but when i tried to run it on qt creator it is give an error.
Other lib is that cannot found, libqmapcontrol.so.0
it is related with qmapcontrol@suslucoder said in qt.qpa.xcb: could not connect to display error:
qmapcontrol
How did you install it (and where)?
-
@suslucoder said in qt.qpa.xcb: could not connect to display error:
qmapcontrol
How did you install it (and where)?
@jsulm i have a folder named as library in my project folder.
And i give a path for it my my .pro file.
I dont know how it is installed, i take the project from who worked here before me.
But it works perfect, till the day i tried to deploy.
But i deployed it to another folder, i didnt touch the orijinal project -
@jsulm i have a folder named as library in my project folder.
And i give a path for it my my .pro file.
I dont know how it is installed, i take the project from who worked here before me.
But it works perfect, till the day i tried to deploy.
But i deployed it to another folder, i didnt touch the orijinal project@suslucoder I think I already gave you this link: https://doc.qt.io/qt-5/linux-deployment.html
-
@suslucoder I think I already gave you this link: https://doc.qt.io/qt-5/linux-deployment.html
@jsulm yes you did but my problem is not about deploying.
I cannot run my project on qt creator