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. Compiling Application for RaspberryPi3
Forum Updated to NodeBB v4.3 + New Features

Compiling Application for RaspberryPi3

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 2 Posters 1.3k 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.
  • M Offline
    M Offline
    maxwell31
    wrote on last edited by
    #1

    Hi,

    I compiled Qt 5.13 for the RaspberryPi3, and it worked fine. However, when I want to compile my app, I get the following error:

    /opt/raspberryPi4/qt5pi/include/QtGui/qopengl.h:105:13: fatal error: GLES3/gl32.h: No such file or directory
    

    GLES3 does not seem to be available on the raspberry, what went wrong?

    jsulmJ 1 Reply Last reply
    0
    • M maxwell31

      Hi,

      I compiled Qt 5.13 for the RaspberryPi3, and it worked fine. However, when I want to compile my app, I get the following error:

      /opt/raspberryPi4/qt5pi/include/QtGui/qopengl.h:105:13: fatal error: GLES3/gl32.h: No such file or directory
      

      GLES3 does not seem to be available on the raspberry, what went wrong?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @maxwell31 Do you cross-compile or compile directly on device?
      If the header file is missing you need to install the dev package containing it.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • M Offline
        M Offline
        maxwell31
        wrote on last edited by
        #3

        I cross compiled from Ubuntu, having the raspberry sysroot mounted via sshfs. Maybe when building Qt commenting out the include in qopengl

        jsulmJ 1 Reply Last reply
        0
        • M maxwell31

          I cross compiled from Ubuntu, having the raspberry sysroot mounted via sshfs. Maybe when building Qt commenting out the include in qopengl

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @maxwell31 said in Compiling Application for RaspberryPi3:

          Maybe when building Qt commenting out the include in qopengl

          Better would be to install missing dependencies.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            maxwell31
            wrote on last edited by
            #5

            Of course you are right. Which packages would provide this? The thing is, I don't fully understand the situation on raspberryPi. There are the broadcomm libGLESv2 and libEGL located in /opt/vc/, and for those there are no other versions. I thought those would be the only ones offering hardware acceleration. Would it also work with the mesa libs?

            jsulmJ 1 Reply Last reply
            0
            • M maxwell31

              Of course you are right. Which packages would provide this? The thing is, I don't fully understand the situation on raspberryPi. There are the broadcomm libGLESv2 and libEGL located in /opt/vc/, and for those there are no other versions. I thought those would be the only ones offering hardware acceleration. Would it also work with the mesa libs?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @maxwell31 Hm, on my Ubuntu 18.04 I only have GLES2 packages (plus 1). Don't know what current Raspbian provides.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • M Offline
                M Offline
                maxwell31
                wrote on last edited by
                #7

                I found the problem. I used the broadcomm opengl libs in /opt/vc. However on the Raspberry 4 I should have used those: libegl1-mesa-dev libgbm-dev libgles2-mesa-dev mesa-common-dev. in order to use kms/drm

                1 Reply Last reply
                1

                • Login

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