Reputation: 121
Using Yocto, I am trying to build a Linux image with Open GL and the corresponding SDK to build an application for this image.
I have an error when building the application. The file GL/gl.h cannot be found in the SDK directory (/opt/poky/1.7.3). I only have the following files:
So GL/gl.h is not in the /usr/include diredctory
In Yocto build directory, there are GL/gl.h files:
I build the sdk with the following command:
bitbake fsl-image-multimedia-full -c populate_sdk
What do I have to do to found the GL/gl.h files in the SDK include directory? In my local.conf file I added:
DISTRO_FEATURES_remove = "x11 wayland"
DISTRO_FEATURES_append = " mesa-gl opengl"
Any help whould be welcome. Thanks
Upvotes: 2
Views: 3024
Reputation: 1547
If a package is not added automatically to the SDK you can add it to the TOOLCHAIN_TARGET_TASK
manually:
TOOLCHAIN_TARGET_TASK += " libgl-mesa-dev "
For more information on this topic please take a look at the documentation: https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#var-TOOLCHAIN_TARGET_TASK
Upvotes: 2