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. Hardware acceleration with EGLFS on Raspberry Pi 3.
Forum Updated to NodeBB v4.3 + New Features

Hardware acceleration with EGLFS on Raspberry Pi 3.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 4 Posters 2.0k Views 1 Watching
  • 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.
  • W Offline
    W Offline
    Worly
    wrote on 21 Jun 2018, 15:34 last edited by
    #1

    Hello,

    I am making a navigation application using Qt Widget based application, which is intended to run on a Raspberry Pi 3. When I open map in the app on Raspberry Pi, frame rate drops drastically. After some investigation it came to me that I should probably use hardware acceleration using QGLWidget. After implementing it the application was unable to start, giving me error:

    EGLFS: OpenGL windows cannot be mixed with others.

    I then found out EGLFS is unable to run OpenGL widgets together with QWidgets.

    Then how am I supposed to run hardware accelerated graphics on Raspberry Pi?
    I cannot use only OpenGL widgets, because most of the app is normal QWidgets.
    Is EGLFS using OpenGL as default?

    Will using -device linux-rasp-pi3-vc4-g++ help me in any way?

    Note: I followed this guide for cross-compiling and used all the parameters as listed in the guide.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 21 Jun 2018, 18:49 last edited by
      #2

      If setting your main window as OpenGL widget does not help, then I - sadly - suspect you have no way to make it work.

      Qt only really uses OpenGL in EGLFS plugin (on RPi), and that plugin (being windowless) does not expect apps other than based on QML. At least that's what my limited experience with RPi and OpenGL tells me.

      Will using -device linux-rasp-pi3-vc4-g++ help me in any way?

      Absolutely yes. The framerate gets a huge boost when using vc4 GPU driver (but again: on EGLFS...).

      (Z(:^

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Cleiton Bueno
        wrote on 21 Jun 2018, 19:43 last edited by
        #3

        I would do:

        1. Confirm that this is supported by EGLFS for RaspberryPI, have you cross-compiled Qtbase and other libraries?

        2. Porting of Widgets for QtQuick, experiences I had with Videos and Graphics improve a lot!

        3. Are you using the official Linux Distribution or Customizou?

        4. Confirm the installed dependencies of the Video Core GPU.


        Cleiton Bueno

        Blog | Linkedin | B2Open

        1 Reply Last reply
        0

        1/3

        21 Jun 2018, 15:34

        • 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