Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Running Qt in raspberry pi 3 (rpi3) vs raspberry pi 4 (rpi4)
Forum Update on Monday, May 27th 2025

Running Qt in raspberry pi 3 (rpi3) vs raspberry pi 4 (rpi4)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 2.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    njvf
    wrote on 12 Nov 2019, 18:29 last edited by njvf
    #1

    Hello there,

    Using raspbian buster lite, I have a native compilation of Qt 5.12.5 in rpi3 that works in rpi3b and rpi3b+ using the eglfs platform as default. I even successfully can run qml (qtdeclarative) and qtmultimedia examples as qmlvideo and qmlvideofx using gstreamer dependencies. So, the previous uses the following libraries (are loaded):

    .../plugins/platforms/libqeglfs.so
    .../plugins/egldeviceintegrations/libqeglfs-brcm-integration.so

    Here is the thing, using the exact same procedure for compilation in rpi3, I did a successfully native compilation in the rpi4, and when running the same examples mentioned, in the terminal (with debug variables) I can see no errors, the same libraries mentioned are loaded correctly but nothing is displayed in the screen/tv. I tried setting the variable DISPLAY and is the same. Forcing the run with -platform eglfs is the same as not setting it. But running with -platform linuxfb (this use other libraries) is display in screen but with a very poor performance.

    On the other hand, the sdcard using in the rpi3, I put it in the rpi4 and exactly the same happens.

    Some observations:
    For both cases (native compilation in rpi4 and using same sdcard from rpi3 in rpi4):

    • I had to disabled/comment in /boot/config.txt "dtoverlay=vc4-kms-v3d". Otherwise, when running the message "failed to add service - already in use?" is show in debug.
    • In /boot/config.txt, the "max_framebuffers=2", I tried with the values 2, 1 and commented it. Always the same.
    • gpu mem set to 256 MB.
    • Changing the hdmi cable connection from port 0 to 1 did nothing. This was a "just in case moment".

    It seems that is something with EGL in the rpi4 or some configuration, but I have not idea what can be.

    Some help and guidance will be very helpful.

    In the case that more information is needed, I will reply ASAP.

    Regards.

    Edit 0:
    Here is the same post in official forum:
    https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=256670
    
    Also here they talk about the same and give guidance about how to do it using cross compilation.
    https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=244984
    
    1 Reply Last reply
    0
    • M Offline
      M Offline
      maxwell31
      wrote on 13 Nov 2019, 10:15 last edited by
      #2

      I have similar problems
      https://forum.qt.io/topic/108730/running-a-qtquick-app-on-raspberrypi-4-problem-rendering-app-to-screen/2

      1 Reply Last reply
      0
      • N Offline
        N Offline
        njvf
        wrote on 13 Nov 2019, 13:49 last edited by njvf
        #3

        Here is the same post in official forum:
        https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=256670

        Also here they talk about the same and give guidance about how to do it using cross compilation.
        https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=244984

        From the posts, the legacy proprietary driver is no more supported on the rpi4.
        Currently, mesa drivers are needed for v3d to get acceleration and desktop is needed.

        Some one has a an official or standard way to compile Qt for rpi4 to get acceleration?.
        Like dependencies and mkspecs.

        I'll try a native compilation using mesa and post about it.

        Regards.

        1 Reply Last reply
        0

        1/3

        12 Nov 2019, 18:29

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved