Qt installation is missing libxcb
-
wrote on 16 Aug 2023, 15:33 last edited by
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...
-
@mzimmers Maybe it is better to install them one after another. Otherwise, you may install a lot of things which are not needed.
wrote on 16 Aug 2023, 17:06 last edited by mzimmersFor 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.
-
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...
@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.
-
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...
wrote on 16 Aug 2023, 15:40 last edited by JoeCFD@mzimmers said in Qt installation is missing libxcb:
WSL2
Try to install it. Which version do you select if you download it?
I am using a free version of vmWare Player at home. It may be better.
-
@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.
wrote on 16 Aug 2023, 15:42 last edited by mzimmers@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
-
@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
wrote on 16 Aug 2023, 15:49 last edited by JonB@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
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.wrote on 16 Aug 2023, 15:51 last edited by@JonB "error while loading shared libraries: libxcb-icccm.so" clearly shows what is missing.
install libxcb-icccm4.
-
@JonB "error while loading shared libraries: libxcb-icccm.so" clearly shows what is missing.
install libxcb-icccm4.
-
@JoeCFD LOL, I didn't look at the error message :)
[You should restore your post. I think you were correct :) ] -
@JonB "error while loading shared libraries: libxcb-icccm.so" clearly shows what is missing.
install libxcb-icccm4.
wrote on 16 Aug 2023, 16:10 last edited by mzimmers -
wrote on 16 Aug 2023, 16:24 last edited by JoeCFD
@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.
-
@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.
wrote on 16 Aug 2023, 16:27 last edited by mzimmers@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.
-
@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.
-
@mzimmers
is your OS Ubuntu?
If yes, run
sudo synaptic
click find icon and type libxcb-icccm4
you will be able to see it. Then select it and install. You can see if it is installed or not.wrote on 16 Aug 2023, 16:43 last edited by@JoeCFD handy stuff to know...thanks.
So, after I installed libxcb_icccm4, I got a similar error for _image, then for _keysyms. I can go through these one at a time, but...is there a "superset" package that will save me the work?
-
@JoeCFD handy stuff to know...thanks.
So, after I installed libxcb_icccm4, I got a similar error for _image, then for _keysyms. I can go through these one at a time, but...is there a "superset" package that will save me the work?
-
@mzimmers Maybe it is better to install them one after another. Otherwise, you may install a lot of things which are not needed.
wrote on 16 Aug 2023, 17:06 last edited by mzimmersFor 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.
-
-
-
5/15