(Qt 5.4.1) This Application Failed to Start Because It Could Not Find or Load the Qt Platform Plugin "Xcb"

Application failed to start because it could not find or load the QT platform plugin windows

Well I solved my issue, although I'm not sure what the difference is:

I copied every dll from my qt directory into both ./ and ./platforms of my application directory.

The application got past the error, but then crashed.

VERSION.dll was causing the crash (noted in dependency walker), so I removed it from both places.

The Application started up, so I systematically removed all unneeded dll's.

This got me back to the same state I had originally.

I then uninstalled my application and re-installed (with only the ./platforms/qwindows.dll file remaining), application works correctly.

So all I can assume is that I had an incorrect version of qwindows.dll in the platforms directory.

Failed to load platform plugin xcb while launching qt5 app on linux without qt installed

Use ldd (man ldd) to show shared library dependencies. Running this on libqxcb.so

.../platforms$ ldd libqxcb.so

shows that xcb depends on libQt5DBus.so.5 in addition to libQt5Core.so.5 and libQt5Gui.so.5 (and many other system libs). Add libQt5DBus.so.5 to your collection of shared libs and you should be ready to move on.



Related Topics



Leave a reply



Submit