no qt plugin in /platforms directory

  • I am not sure what I have missed when xcb qt plugin is not in platforms directory and I'm getting error when trying to deploy my app to BeagleBone:

    This application failed to start because it could not find or load the Qt platform plugin "xcb".

    Available platform plugins are: linuxfb, minimal, offscreen.

    Reinstalling the application may fix this problem.

    I found that plugin file at /usr/lib/arm-linux-gnueabihf/

  • Lifetime Qt Champion


    That's not the plugin you have there, that the xcb library. Did you cross-compile Qt with X11 enabled ?

  • @Zola Hi,
    The file that reside inside platforms folder (in your application package, and I'm assuming you are dynamically linking with qt ) needs additional dependencies. You can find all dependencies by calling ldd for, but we need to copy files reside only in Qt directory. Find it in Qt libs directory ( in my case it was Change name (*.so.5.4.1 to *.so.5) and copy it to executable directory.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.