Qt installation is missing libxcb
-
Hi all -
After a long sojourn in Windows purgatory, I'm finally returning to Linux-land, using WSL2. The last time I did this, I was using Qt 5. I remember reading somewhere that more recent versions of Qt aren't including everything that the older versions did.
I'm trying to run the qt-unified-linux-x64-4.6.0-online.run, and am getting an error:
./qt-unified-linux-x64-4.6.0-online.run: error while loading shared libraries: libxcb-icccm.so.4: cannot open shared object file: No such file or directory
Do I need to install libxcb myself? If so, should I just download it from freedesktop?
Thanks...
-
For anyone who may happen to need this information, here are the xcb libraries I needed for Qt 6.5.2:
- libxcb-icccm4
- libxcb-image
- libxcb-keysyms
- libxcb-render_util
- libxcb-xinerama
- libxcb-xkb
plus: - libxkbcommon-X11
I ran into problems installing these with apt (it couldn't find the first one), but the Synaptic application @JoeCFD mentioned worked fine.
sudo apt install synaptic
Thanks to everyone for the help.
-
@mzimmers said in Qt installation is missing libxcb:
Do I need to install libxcb myself?
Yes
If so, should I just download it from freedesktop?
No, with your package manager.
-
@Christian-Ehrlicher said in Qt installation is missing libxcb:
No, with your package manager.
OK, thanks. apt-cache search libxcb returns a long list of libraries -- how do I determine which I want? This command:
sudo apt-get install libxcb Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package libxcb
didn't work.
I can provide the list if helpful.
EDIT:
I'm guessing it's probably one of these two:
libxcb-icccm4 - utility libraries for X C Binding -- icccm libxcb-icccm4-dev - utility libraries for X C Binding -- icccm, development files
-
@mzimmers
I'm not sure thoseicccm4
names ring a bell for me under Ubuntu at least?
You might start looking at the list in https://doc.qt.io/qt-6/linux-requirements.html. (Though whatever I/others install is not nearly as long as the complete list there.)
The bits required for libxcb have been asked about so often for various platforms, you could search posts here about libxcb and which named packages people installed. -
-
@mzimmers -dev has include files which you do not need. You need them only when your app uses these libs directly. Therefore, install libxcb-icccm4 is good enough.
run command:
locate libxcb-icccm.soto see if it is installed and where it is located.
-
@JoeCFD said in Qt installation is missing libxcb:
@mzimmers -dev has include files which you do not need. You need them only when your app use these libs directly.
OK, that's what I thought...thanks. Though I will need to build my own Qt libraries from source (this is ultimately for an embedded system), so I guess eventually I will need one of those.
run command:
locate libxcb-icccm.soto see if it is installed and where it is located.
That command returned nothing (which I expected).
I imagine that one of the packages returned in the search above is what I want; I just don't know which one.
-
For anyone who may happen to need this information, here are the xcb libraries I needed for Qt 6.5.2:
- libxcb-icccm4
- libxcb-image
- libxcb-keysyms
- libxcb-render_util
- libxcb-xinerama
- libxcb-xkb
plus: - libxkbcommon-X11
I ran into problems installing these with apt (it couldn't find the first one), but the Synaptic application @JoeCFD mentioned worked fine.
sudo apt install synaptic
Thanks to everyone for the help.
-
M mzimmers has marked this topic as solved on
-
M mzimmers has marked this topic as unsolved on
-
M mzimmers has marked this topic as solved on