Apalis TK1, Bitbaking, Qt5 and Missing Header Files

It would appear that the more I try with the whole bitbaking shenanigans, the more issues I come across. I’m determined not to admit defeat but maybe I should just head to the pub instead!

This time though, I don’t think I’m doing anything silly…

So, I’m attempting to bitbake the angstrom-lxde-image for the apalis-tk1 and having correctly configured the local.conf file to specify the MACHINE ?= "apalis-tk1", I’ve also added the following to ensure that all Qt5 packages are included in the image:

IMAGE_INSTALL_append = " qt3d qt5-plugin-generic-vboxtouch qtbase qtcanvas3d qtcharts qtconnectivity qtdatavis3d qtdeclarative qtenginio qtgraphicaleffects qtimageformats qtlocation qtmultimedia qtquick1 qtquickcontrols2 qtquickcontrols qtscript qtsensors qtserialport qtsvg qtsystems qttools qttranslations qtvirtualkeyboard qtwebchannel qtwebkit-examples qtwebkit qtwebsockets qtxmlpatterns openssh-sftp-server gdb gdbserver "

The bitbake completed successfully, as expected, and I created the SDK and Qt5 toolchain using the bitbake meta-toolchain-qt5. I installed the SDK successfully into /usr/local/oecore-x86_64 and set up the environment as explained in a Toradex guide and then proceeded to launch qtcreator.

Now, when trying to build any of the OpenGL examples, the compiler complains that the GL/gl.h file is not found. I’ve checked that the Qt Kit is configured correctly, with the sysroots pointing to the right place and this is definitely correct.

My understanding is that GL/gl.h is part of the libgles2-mesa-dev, should this not already be one of the recipes used during bitbaking? Also, what with the TK1 supporting OpenGL 4.4 and OpenGLES 3.1, how can these features be enabled out-of-the box (if they aren’t already?).

Thanks (and sorry).

hi @kwebster83

Could you provide the version of the Software of your module?

The bitbake completed successfully, as expected, and I created the SDK and Qt5 toolchain using the bitbake meta-toolchain-qt5

Could you create the SDK as described here, please?

Now, when trying to build any of the OpenGL examples, the compiler complains that the GL/gl.h file is not found

Did you check if the File GL/gl.h exist in your SDK?

Best regards,
Jaski

Hi @jaski.tx

Could you provide the version of the Software of your module?

We’re using the latest Apalis TK1 which I think is V1.2A. Also, using the latest openembedded as mentioned in your guide.

Could you create the SDK as described here, please?

I will give the bitbake angstrom-lxde-image -c populate_sdk a try but last time I did, I didn’t get any of the Qt5 toolchain or libraries.

Did you check if the File GL/gl.h exist in your SDK?

I can confirm that the gl.h header does NOT exist in the GL directory within the SDK.

Did you try to install the OpenGL dev package on your development workstation?

As suggested in this forum post: https://forum.qt.io/topic/50865/gl-gl-h-not-found-in-linux/2

Hi

My understanding is that GL/gl.h is part of the libgles2-mesa-dev

That is wrong, GL/gl.h belongs to OpenGL and is provided by libgl-mesa-dev. (libgles2-mesa-dev provides the headers for OpenGL ES2).

Qt5 seems to be build with the OpenGL ES2 backend and thus the libraries/headers for that are pulled into the image/SDK.

You could try adding libgl-mesa explicitly to IMAGE_INSTALL.

Max