[yocto] [raspberrypi3] Failed to build core-image-minimal with Qt5 support (GL/gl.h not found)

Khem Raj raj.khem at gmail.com
Sun Oct 16 10:24:16 PDT 2016


On Sun, Oct 16, 2016 at 8:45 AM, Karim ATIKI <karim_atiki at hotmail.com> wrote:
> Hi all,
>
>
> I'm trying to a build a core-image-minimal for my RaspberryPi3 with Qt5
> support.
>
> I'm working with Poky Krogth  and master branches of meta-qt5 and
> meta-raspberrypi.
>
>
> The build failed at qtbase do_configure().
>
> It reports
>
>
> "| checking for OpenGL...
> | Cannot read
> /home/kai/yocto/build-rpi3-minimal/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/qtbase/5.7.0+gitAUTOINC+69b43e74d7-r0/git/mkspecs/oe-device-extra.pri:
> No such file or directory
> | arm-poky-linux-gnueabi-g++  -march=armv7ve -marm -mfpu=neon-vfpv4
> -mfloat-abi=hard -mcpu=cortex-a7
> --sysroot=/home/kai/yocto/build-rpi3-minimal/tmp/sysroots/raspberrypi3 -c
> -pipe  -O2 -pipe -g -feliminate-unused-debug-types
> -fdebug-prefix-map=/home/kai/yocto/build-rpi3-minimal/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/qtbase/5.7.0+gitAUTOINC+69b43e74d7-r0=/usr/src/debug/qtbase/5.7.0+gitAUTOINC+69b43e74d7-r0
> -fdebug-prefix-map=/home/kai/yocto/build-rpi3-minimal/tmp/sysroots/x86_64-linux=
> -fdebug-prefix-map=/home/kai/yocto/build-rpi3-minimal/tmp/sysroots/raspberrypi3=
> -fvisibility-inlines-hidden -O2 -Wall -W -fPIC
> -I../../../../git/config.tests/unix/opengldesktop -I.
> -I../../../../git/mkspecs/linux-oe-g++ -o opengldesktop.o
> ../../../../git/config.tests/unix/opengldesktop/opengldesktop.cpp
>
> | ../../../../git/config.tests/unix/opengldesktop/opengldesktop.cpp:43:19:
> fatal error: GL/gl.h: No such file or directory
>
> |  #include <GL/gl.h>
> "
>
> The OpenGL header files are not there.
> However, I've setup my local.conf as follow:
>
> DISTRO_FEATURES_remove = " x11 wayland"
> DISTRO_FEATURES_append = " opengl"
>
>
> IMAGE_INSTALL_append = "  qtbase \
>   kernel-modules \
>   qtdeclarative \
>   qtmultimedia \
>   qtsvg \
>   qtsensors \
>   qtimageformats \
>   qtsystems \
>   qtscript \
>   qt3d \
>   qtconnectivity \
>   qtlocation \
>   cinematicexperience \
>   qtgraphicaleffects \
>   qtquick1 \
>   qtwebkit \
>   binutils \
> "
>
> Is there something missing ?
> In addition, during the build, I saw "mesa-gl" getting installed correctly.

it currently have some vc4 support if you want mesa to work then use
vc4graphics in machine features.
otherwise the headers should come from userland package. Figure out
why mesa-gl is being pulled.

>
> But in the sysroot, I have only:
>
> ./tmp/sysroots/raspberrypi3/usr/include/GL/
> ./tmp/sysroots/raspberrypi3/usr/include/GL/internal/dri_interface.h
>
> But in the mesa-gl work dir, I can find:
>
> ./tmp/sysroots/raspberrypi3/usr/include/GL/
> ./tmp/sysroots/raspberrypi3/usr/include/GL/GL
> ./tmp/sysroots/raspberrypi3/usr/include/GL/GLES
> ./tmp/sysroots/raspberrypi3/usr/include/GL/GLES2
> ./tmp/sysroots/raspberrypi3/usr/include/GL/GLES3
> with all sub files...
>
>
> What's wrong with the build ?
>
>
> Cheers,
>
> Karim
>
>
>
>
>
>
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



More information about the yocto mailing list