首页 文章

如何在使用Yocto的SDK生成中包含GL / gl.h

提问于
浏览
2

使用Yocto,我正在尝试使用Open GL和相应的SDK构建Linux映像,以便为此映像构建应用程序 .

构建应用程序时出错 . 在SDK目录(/opt/poky/1.7.3)中找不到文件GL / gl.h.我只有以下文件:

  • ./sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/gstreamer-1.0/gst/gl/gl.h

  • ./sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/GLES/gl.h

  • ./sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/src/debug/mesa/2_10.1.3-r0/Mesa-10.1.3/include/GL/gl.h

所以GL / gl.h不在 /usr/include diredctory中

在Yocto构建目录中,有GL / gl.h文件:

  • ./tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/mesa/2_10.1.3-r0/sysroot-destdir/usr/include/GL/gl.h

  • ./tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/mesa/2_10.1.3-r0/packages-split/mesa-dbg/usr/src/debug/mesa/2_10.1.3-r0 /Mesa-10.1.3/include/GL/gl.h

  • ./tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/mesa/2_10.1.3-r0/packages-split/libgl-mesa-dev/usr/include/GL/gl.h

  • ./tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/mesa/2_10.1.3-r0/package/usr/src/debug/mesa/2_10.1.3-r0/Mesa-10.1.3 /include/GL/gl.h

  • ./tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/mesa/2_10.1.3-r0/package/usr/include/GL/gl.h

  • ./tmp/work/imx6dlgpr-poky-linux-gnueabi/gpr3/1.0-r0/sdk/image/opt/poky/1.7.3/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/src /debug/mesa/2_10.1.3-r0/Mesa-10.1.3/include/GL/gl.h

我使用以下命令构建sdk:

bitbake fsl-image-multimedia-full -c populate_sdk

如何在SDK include目录中找到GL / gl.h文件?在我的local.conf文件中,我添加了:

DISTRO_FEATURES_remove = "x11 wayland"
DISTRO_FEATURES_append = " mesa-gl opengl"

欢迎任何帮助 . 谢谢

1 回答

相关问题