[oe] [meta-qt5] QT5, OpenGL and wayland only DISTRO

Nicolas Aguirre aguirre.nicolas at gmail.com
Mon Dec 1 08:33:54 UTC 2014


Hi,

I'm trying to build an Wayland only based image with Dizzy for x86
hardware, atom based, with i945 chipset.

DISTRO_FEATURES = "alsa ext2 largefile usbhost wifi xattr zeroconf
wayland ${DISTRO_FEATURES_LIBC} systemd opengl ipv4 ipv6 pci nfs"

First, i need to add mesa-megadriver in IMAGE_INSTALL, otherwise, the
wayland drm backend didn't load and only fbdev was working. I don't
know the difference between them. But adding mesa-megadriver added
/usr/lib/dri/i915_dri.so in the image and now weston is happy.

During qtbase configure phase, i get an error "cannot find -lGL"

OpenGL auto-detection... ()
i586-oe-linux-g++  -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse
--sysroot=/home/ubuntu/oe/
intel-core2-32/tmp-glibc/sysroots/intel-core2-32
-c -pipe  -O2 -pipe -g -feliminate-unused-debug-types
-fvisibility-inlines-hidden -O2 -Wall -W -fPIE
-I../../../../qtbase-opensource-src-5.3.2/mkspecs/linux-oe-g++
-I../../../../qtbase-opensource-src-5.3.2/config.tests/unix/opengldesktop
-I. -o opengldesktop.o
../../../../qtbase-opensource-src-5.3.2/config.tests/unix/opengldesktop/opengldesktop.cpp
i586-oe-linux-g++  -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse
--sysroot=/home/ubuntu/oe/intel-core2-32/tmp-glibc/sysroots/intel-core2-32
-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-O1 -o opengldesktop
opengldesktop.o   -lGL
/home/ubuntu/oe/intel-core2-32/tmp-glibc/sysroots/x86_64-linux/usr/libexec/i586-oe-linux/gcc/i586-oe-linux/4.9.1/ld:
cannot find -lGL
collect2: error: ld returned 1 exit status
make: *** [opengldesktop] Error 1
OpenGL disabled.
The OpenGL functionality test failed!
 You might need to modify the include and library search paths by editing
 QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in
 /home/ubuntu/oe/intel-core2-32/tmp-glibc/work/core2-32-oe-linux/qtbase/5.3.2-r0/qtbase-opensource-src-5.3.2/mkspecs/linux-oe-g++.
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_configure (log file is located at
/home/ubuntu/oe/intel-core2-32/tmp-glibc/work/core2-32-oe-linux/qtbase/5.3.2-r0/temp/log.do_configure.23186)

I created qtbase_%.bbappend with the following content to force the gles flavor.

PACKAGECONFIG_GL = "gles"

The build is now ok, but when i launch QTCinematicExperience for
example, i get horribles performances, Near from 1FPS !

Weston is launched with DRM backend, and i export QT_QPA_PLATFORM=wayland-egl.

Did i missed something ?

Regards,
Nicolas


-- 
Nicolas Aguirre
Mail: aguirre.nicolas at gmail.com
Web: http://www.calaos.fr
Blog: http://dev.enlightenment.fr/~captainigloo/



More information about the Openembedded-devel mailing list