Important: Please read the Qt Code of Conduct -

Use Qt, qml with linux and directfb

  • Hi,

    I search to use Qt, qml with directfb

    I have compiled Qt with -no-xcb and -directfb directives

    Qt.5.1.2 is well compiled.
    With X11, I installed QtCreator, declared Qt.5.1.2 in and created a program QtQuick2 test.

    When I want to compile it, I get the following messages:

    _Démarrage de /home/pi/build-testQtQ-Desktop-Debug/testQtQ...QML debugging is enabled. Only use this in a safe environment.
    This application failed to start because it could not find or load the Qt platform plugin "xcb".

    Available platform plugins are: directfbegl, directfb, linuxfb, minimal, offscreen.

    Reinstalling the application may fix this problem.
    Le programme s'est terminé subitement.
    /home/pi/build-testQtQ-Desktop-Debug/testQtQ a quitté avec le code 0_

    My question:

    How to "force" Qt to use directfb ?



  • I never used it, but the configure command has the option "-qpa": "Sets the default QPA platform (e.g xcb, cocoa, windows)."

    As far as I know there's also a command line option existing to select the output plugin at application start.
    I just can't remeber the name of that switch...

  • Any progress on that? Can directfb be forced?

  • Execute the application with switch -platform

    ./myapp -platform directfb

Log in to reply