Important: Please read the Qt Code of Conduct -

Qt 5.4.1 and Raspberry 2

  • Raspberry Pi foundation started to ship PI2 this morning.

    It's using a BCM2836 chip embedding a Quad Core Cortex A7 processor.

    There is a raspberryPi "profile" to build qt from source on RPI.

    I was wondering if someone (maybe devs) could give some information on how to rebuild Qt 5.4 for RPI2 target ?



  • Lifetime Qt Champion


    You should rather ask this question on the "interest": mailing list. You'll find there Qt's developers/maintainers (this forum is more user oriented)

  • Moderators

    The hardware is almost the same, and the foundation claims the CPU is compatible. So the instructions for rPi 1 should also work for the new rPi 2.

  • You will want to change the compiler flags in mkspecs/devices/linux-rasp-pi-g++ to get properly optimized code. Everything else, including the EGL/OpenGL integration, should be the same.

    In the future we will need to introduce a new device mkspec for the Pi 2.

  • agocs : i tried this and switched the compilation flags to :

    @-marm -mfpu=neon -mtune=cortex-a7 -march=armv7-a -mabi=aapcs-linux
    The build made it thru. Some qt samples work fine, but i'm encountering issues with the QML webview.

    For some reason it doesnt load at all. I also checked some samples using it like flickrview and the whole app starts fine but the WebView area is desperately black.

    the only log i'm getting from commandline is :

    @QML debugging is enabled. Only use this in a safe environment.
    Failed to start " "QtWebProcess" 15"@

    any clue is welcome :)

Log in to reply