libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0 libxcb-render-util0 libxcb-xkb-dev libxkbcommon-x11-dev
Hi @pieper , do you happen to remember the CentOS equivalent package names for these?
libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0 libxcb-render-util0 libxcb-xkb-dev libxkbcommon-x11-dev
Hi @pieper , do you happen to remember the CentOS equivalent package names for these?
For NDA Amazon workspace, I needed to install the following packages to be able to launch a pre-built Slicer:
yum -y install xcb-util-wm xcb-util-image xcb-util-keysyms xcb-util-renderutil libxkbcommon-x11
@pieper should we add this to the Linux install instructions?
Yes, I was thinking of suggesting that. I didn’t have a chance to do it myself.
By the way, don’t forget to document export MESA_GL_VERSION_OVERRIDE=3.3 .
It would be good if someone who uses the platforms in question could craft the PR with all the needed instructions. I don’t use these platforms.
Yes indeed.
sudo apt-get install libxcb-xinerama0
Just a quick note:
I downloaded and installed 5.2.2 on an Ubuntu 220.04 LTS.
I just have upgraded from 20.04 LTS the other day.
This is an almost vanilla install (I have no knowledge about previous package additions on this pc, but I am almost sure there weren’t too many)
I had to apt install t5dxcb-plugin because until then Slicer stopped during start:
./Slicer
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: xcb.
error: [/home/attila/Downloads/Slicer-5.2.2-linux-amd64/bin/SlicerApp-real] exit abnormally - Report the problem.
Hello @nagy.attila, have you had a look at the documented requirements for linux?
https://slicer.readthedocs.io/en/latest/user_guide/getting_started.html#linux
On a VirtualBox fresh installation of Ubuntu 22.04 i just had to install:
sudo apt-get install libpulse-dev libnss3 libglu1-mesa
sudo apt-get install --reinstall libxcb-xinerama0
The binary re-distributable for both stable and preview launches without problems. I hope this helps.
I got the same problem as @PaoloZaffino reported.
There is a missing dependency for debian:
libxkbcommon-x11-0
You need to install it by:
sudo apt install libxkbcommon-x11-0
Hi @RafaelPalomar , sorry, it is very unkind of me not to follow up
The solution worked!
It seems though, that the issue still persists: I faced the same problem on a vanilla Ubuntu 24.04 LTS with Slicer 5.6.2.
Interestingly (for me) ldd didn’t reveal the missing dependency, I had to set the QT_DEBUG_PLUGINS=1 variable to reveal the missing library.
This time I installed qt5dxcb-plugin, and it fixed the issue, even though it might have been a bit overkill
Best,
Attila
Thanks for the update @nagy.attila
@RafaelPalomar could you have a look at the linux install instructions and see if we need to update? Should we add libxkbcommon-x11-0
and qt5dxcb-plugin
?
@lassoan, yes, I can give it a review
Hi @lassoan , @RafaelPalomar
It seems that this is the culprit:
Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/home/attila/Downloads/Slicer-5.6.2-linux-amd64/bin/platforms" ...
Cannot load library /home/attila/Downloads/Slicer-5.6.2-linux-amd64/lib/QtPlugins/platforms/libqxcb.so: (libxcb-xinerama.so.0: cannot open shared object file: No such file or directory)
According to apt-file find, libxcb-xinerama.so.0 is provided by
apt-file find libxcb-xinerama.so.0
libxcb-xinerama0: /usr/lib/x86_64-linux-gnu/libxcb-xinerama.so.0
libxcb-xinerama0: /usr/lib/x86_64-linux-gnu/libxcb-xinerama.so.0.0.0
And that dependency was installed by qt5dxcb-plugin:
sudo apt install qt5dxcb-plugin
[sudo] password for attila:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libdouble-conversion3 libmd4c0 libpcre2-16-0 libqt5core5t64 libqt5dbus5t64 libqt5gui5t64
libqt5network5t64 libqt5qml5 libqt5qmlmodels5 libqt5quick5 libqt5svg5 libqt5waylandclient5
libqt5waylandcompositor5 libqt5widgets5t64 libqt5x11extras5 libxcb-composite0
libxcb-xinerama0 libxcb-xinput0 qt5-gtk-platformtheme qttranslations5-l10n qtwayland5
Suggested packages:
qgnomeplatform-qt5 qt5-image-formats-plugins qt5-qmltooling-plugins
The following NEW packages will be installed:
libdouble-conversion3 libmd4c0 libpcre2-16-0 libqt5core5t64 libqt5dbus5t64 libqt5gui5t64
libqt5network5t64 libqt5qml5 libqt5qmlmodels5 libqt5quick5 libqt5svg5 libqt5waylandclient5
libqt5waylandcompositor5 libqt5widgets5t64 libqt5x11extras5 libxcb-composite0
libxcb-xinerama0 libxcb-xinput0 qt5-gtk-platformtheme qt5dxcb-plugin qttranslations5-l10n
qtwayland5
0 upgraded, 22 newly installed, 0 to remove and 28 not upgraded.
libxkbcommon-x11-0 seems to be part of the base install:
apt list | grep libxkbcommon
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libxkbcommon-dev/noble 1.6.0-1build1 amd64
libxkbcommon-dev/noble 1.6.0-1build1 i386
libxkbcommon-doc/noble,noble 1.6.0-1build1 all
libxkbcommon-tools/noble 1.6.0-1build1 amd64
libxkbcommon-tools/noble 1.6.0-1build1 i386
libxkbcommon-x11-0/noble,now 1.6.0-1build1 amd64 [installed,automatic]
libxkbcommon-x11-0/noble 1.6.0-1build1 i386
libxkbcommon-x11-dev/noble 1.6.0-1build1 amd64
libxkbcommon-x11-dev/noble 1.6.0-1build1 i386
libxkbcommon0/noble,now 1.6.0-1build1 amd64 [installed,automatic]
libxkbcommon0/noble 1.6.0-1build1 i386
According to this manifest:
http://releases.ubuntu.com/noble/ubuntu-24.04-desktop-amd64.manifest
Best,
Attila