Important: Please read the Qt Code of Conduct -

qt cross compile with raspbian lite

  • hi all,

    i need to cross compile qt for raspbian lite version, i dont need libxcb or any gldriver, my app does not use graphic interface. app only runs in terminal so do i need to enable fake kms and also update those drivers? and also do i need to install libxcb-xinerama0-dev libxcb-xinerama0?

    and the config script is

    ./configure -release -opengl es2 -device <rpi-version> -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v

    which config parameters must be omitted.


  • Lifetime Qt Champion


    Do you plan to do any GUI long term ?
    Otherwise, IIRC you can disable OpenGL. Note that this is not directly related to the XCB backend.

  • there will be no gui interface, only app runs in terminal.

    how can i disable opengl through ./configure parameters

  • Lifetime Qt Champion

    Doesn't -no-opengl do the trick ?

Log in to reply