Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. QtWayland Compilation error in RaspberryPI

QtWayland Compilation error in RaspberryPI

Scheduled Pinned Locked Moved Unsolved QtonPi
7 Posts 4 Posters 2.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tushar
    wrote on 27 Nov 2020, 12:20 last edited by
    #1

    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 .................... no

    Features 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 ........................... yes

    After 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 127

    If anyone has any fix for this kindly help me to get rid from this. Thanks in Advance.

    J 1 Reply Last reply 27 Nov 2020, 13:06
    0
    • T tushar
      27 Nov 2020, 12:20

      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 .................... no

      Features 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 ........................... yes

      After 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 127

      If anyone has any fix for this kindly help me to get rid from this. Thanks in Advance.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 27 Nov 2020, 13:06 last edited by
      #2

      @tushar said in QtWayland Compilation error in RaspberryPI:

      wayland-scanner

      Do you have that?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tushar
        wrote on 27 Nov 2020, 13:34 last edited by
        #3

        @jsulm said in QtWayland Compilation error in RaspberryPI:

        wayland-scanner

        Yes, I have that "wayland-scanner" in both host and PI system installed.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 27 Nov 2020, 14:00 last edited by
          #4

          Hi,

          How did you install it on the Pi ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tushar
            wrote on 27 Nov 2020, 15:26 last edited by
            #5

            Hi
            using sudo apt-get install wayland-scanner

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 27 Nov 2020, 19:20 last edited by
              #6

              Did you try to execute it on the Pi as it seems it's failing when the configuration test runs ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sh1981
                wrote on 9 Oct 2024, 08:36 last edited by
                #7

                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

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved