Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.8.0
-
None
-
Ubuntu 14.04 in Parallels VM, cross compiling for Raspberry Pi 2
Description
I built Qt 5.8.0 for the Raspberry Pi:
./configure -commercial -confirm-license -release -static -opengl es2 -optimized-qmake -no-pch -make libs -make tools -reduce-exports -sysroot <sysroot> -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=<toolchain_location> -prefix <sysroot> -I <sysroot>/usr/include/arm-linux-gnueabihf -L <sysroot>/usr/lib/arm-linux-gnueabihf -qt-zlib -qt-libjpeg -qt-libpng -no-xcb -qt-xkbcommon -qt-pcre -qt-harfbuzz -skip wayland
The response I get includes:
QPA backends: DirectFB ............................... no EGLFS .................................. yes EGLFS details: EGLFS i.Mx6 .......................... no EGLFS i.Mx6 Wayland .................. no EGLFS EGLDevice ...................... yes EGLFS GBM ............................ yes EGLFS Mali ........................... no EGLFS Rasberry Pi .................... no EGL on X11 ........................... yes LinuxFB ................................ yes Mir client ............................. no
The problem lies with the line, EGLFS Rasberry Pi (which is also a typo). Further inspection demonstrates that the configure test cannot find the Broadcom VideoCore (bcm_host) header file and library. This is fixed by adding the following to qtbase/config.tests/qpa/eglfs-brcm/eglfs-brcm.pro:
CONFIG += egl
After I made this change, compilation was successful.
Attachments
Issue Links
- duplicates
-
QTBUG-52739 must not use pkg-config to find EGL on Raspberry Pi
- Closed