Solved Compiling Application for RaspberryPi3
-
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?
-
@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. -
I cross compiled from Ubuntu, having the raspberry sysroot mounted via sshfs. Maybe when building Qt commenting out the include in qopengl
-
@maxwell31 said in Compiling Application for RaspberryPi3:
Maybe when building Qt commenting out the include in qopengl
Better would be to install missing dependencies.
-
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?
-
@maxwell31 Hm, on my Ubuntu 18.04 I only have GLES2 packages (plus 1). Don't know what current Raspbian provides.
-
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