[yocto] [raspberrypi3] Failed to build core-image-minimal with Qt5 support (GL/gl.h not found)
Karim ATIKI
karim_atiki at hotmail.com
Sun Oct 16 08:45:50 PDT 2016
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.
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20161016/c1a9403a/attachment.html>
More information about the yocto
mailing list