libreoffice pkg still not working

libreoffice
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
 
Because this topic is still relevant in 2025!
After installing OBS Studio, LibreOffice stopped launching. How exactly? Launching, greeting, then the greeting disappearing. Same thing even when root!
# libreoffice --safe-mode
Code:
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

# pkg install -f libreoffice
# pkg install xcb
# pkg install xcb-proto
# pkg install xcb-util
# pkg install -f libxcb

I took these steps. The problem is not solved.
 
Actually LibreOffice is built on GTK, for my understanding FreeBSD provides a QT version because the GTK is not working well, but perhaps it is time to revert to GTK...
 
You can also try removing everything from /usr/local/lib/compat/pkg/ (or move the content somewhere else, like /tmp/stuff if you don't feel comfortable.
 
Back
Top