QtWayland Compilation error in RaspberryPI
-
Hello,
I am cross compiling Qt5.13.2 for Raspberry PI 4. I want to compile QtWayland Module for multi window output but while configuring Qt I am getting following error.
ERROR: Feature 'wayland-server' was enabled, but the pre-condition '!config.win32 && libs.wayland-server && tests.wayland-scanner' failed.
I am using following configure command.
lsqtpi@qt5-build:~/raspi/qtsrc/qt-everywhere-src-5.13.2$ ./configure -release -opengl es2 -eglfs -icu -openssl -gstreamer -device linux-rasp-pi3-vc4-g++ -device-option CROSS_COMPILE=/opt/rpi/rpi-gcc-8.3.0/bin/arm-linux-gnueabihf- -sysroot /home/lsqtpi/raspi/sysroot -opensource -confirm-license -feature-wayland-server -skip qtscript -skip qtwebengine -no-gstreamer -nomake tests -nomake examples -make libs -prefix /usr/local/qt5pi13 -extprefix /home/lsqtpi/raspi/qt5pi13 -hostprefix /home/lsqtpi/raspi/qt5-13 -no-use-gold-linker -v
I have installed following dependencies in PI as well as Host system.
sudo apt-get install libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-glx0-dev
sudo apt-get install libxkbcommon-dev libudev-dev libwayland-dev libpng12-dev libjpeg8-dev libmtdev-dev autotools-dev autoconf automake bison flex libasound2-dev libxext-dev x11proto-xext-dev libxcursor-dev libxfixes-dev x11proto-fixes-dev libffi-dev libsm-dev libxcomposite-dev
It shows following configure output
Qt Wayland Client ........................ no
Qt Wayland Compositor .................... noFeatures used by QPA backends:
evdev .................................. yes
libinput ............................... no
INTEGRITY HID .......................... no
mtdev .................................. no
tslib .................................. yes
xkbcommon .............................. yes
X11 specific:
XLib ................................. yes
XCB Xlib ............................. yes
EGL on X11 ........................... yesAfter checking configure output I came to know that it detected wayland-client, wayland-server but not only detecting wayland-scanner.
- cd /home/lsqtpi/raspi/qtsrc/qt-everywhere-src-5.13.2/config.tests/wayland_scanner && /home/lsqtpi/raspi/qtsrc/qt-everywhere-src-5.13.2/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/lsqtpi/raspi/sysroot" "QMAKE_CXXFLAGS += --sysroot=/home/lsqtpi/raspi/sysroot" "QMAKE_LFLAGS += --sysroot=/home/lsqtpi/raspi/sysroot" -early "CONFIG += cross_compile" 'QMAKE_USE += wayland-server' 'QMAKE_LIBS_WAYLAND_SERVER = /home/lsqtpi/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libwayland-server.so' /home/lsqtpi/raspi/qtsrc/qt-everywhere-src-5.13.2/qtwayland/config.tests/wayland_scanner
- cd /home/lsqtpi/raspi/qtsrc/qt-everywhere-src-5.13.2/config.tests/wayland_scanner && MAKEFLAGS= /usr/bin/make clean && MAKEFLAGS= /usr/bin/make
rm -f wayland-scanner-test-client-protocol.h
rm -f main.o
rm -f *~ core *.core
Wayland-scanner client-header < /home/lsqtpi/raspi/qtsrc/qt-everywhere-src-5.13.2/qtwayland/config.tests/wayland_scanner/scanner-test.xml > wayland-scanner-test-client-protocol.h
/bin/sh: 1: wayland-scanner: not found
Makefile:173: recipe for target 'wayland-scanner-test-client-protocol.h' failed
make: *** [wayland-scanner-test-client-protocol.h] Error 127If anyone has any fix for this kindly help me to get rid from this. Thanks in Advance.
-
-
Hi,
How did you install it on the Pi ?
-
Did you try to execute it on the Pi as it seems it's failing when the configuration test runs ?
-
I encountered the same problem.
Wayland-scanner client-header < /home/lsqtpi/raspi/qtsrc/qt-everywhere-src-5.13.2/qtwayland/config.tests/wayland_scanner/scanner-test.xml > wayland-scanner-test-client-protocol.h
When I manually executed the above command from the console,
it displayed a message to install the following library.sudo apt install libwayland-bin