Important: Please read the Qt Code of Conduct -

Qt 5.5, qt.conf (plugins)

  • Qt 5.5 seems to not consider the qt.conf file. I obtain the error:

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

    Available platform plugins are: linuxfb, minimal, offscreen, xcb.

    Reinstalling the application may fix this problem.

    The application starts with Qtcreator but not by row command. With Qt 5.4 everything works well.

    Have you got any idea?

  • Hi, if you're using a fairly new distro for example Ubuntu Vivid 15.04, then everything is much easier because Qt 5.4 is included. But not 5.5 yet. So that could be one reason.

    And for sure Qt 5.5 treats the qt.conf file same as before, otherwise your Qt Creator wouldn't start (for a sucessful launch on Linux a qt.conf needs to present).

  • Solved. This hard link

    unix:!mac {
    LIBS += -Wl,-rpath=\$$ORIGIN/libs
    and qt.conf file

    Are considered correctly by a Qt console program but not by a Qt gui program. To resolve I had to add a link called lib (not libs) to my libs folder, immediately outside of my plugins folder.

    This is necessary with Qt 5.5 but not with Qt 5.4

Log in to reply