Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Failed to build QtWayland 5.8
Qt 6.11 is out! See what's new in the release blog

Failed to build QtWayland 5.8

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 1.6k Views 1 Watching
  • 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.
  • J Offline
    J Offline
    Jtis
    wrote on last edited by
    #1

    Hello,

    I'm trying to build QtWayland for the imx6 Board and it seems that the module installation does not go as expected. Here are my steps:

    git clone git://code.qt.io/qt/qtbase.git -b 5.8
    In qtbase:
    ./configure -opensource -confirm-license -developer-build -no-pch -no-xcb -no-opengl -opengl es2 -make libs -no-gtk -no-icu -prefix /usr/local/qt5 -device linux-imx6-g++ -device-option CROSS_COMPILE=/home/ubuntu/workdir/SDK_imx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi- -sysroot /home/ubuntu/workdir/SDK_imx/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi -compile-examples
    make
    make install
    =>OK
    git clone git://code.qt.io/qt/qtdeclarative.git -b 5.8
    In qtdeclarative:
    ../qtbase/bin/qmake
    make
    make install
    =>OK

    git clone git://code.qt.io/qt/qtwayland.git -b 5.8
    In qtwayland
    ../qtbase/bin/qmake
    make
    And I got errror :
    cd compositor/ && ( test -e Makefile || /home/ubuntu/workdir/qt5/qtbase/bin/qmake -o Makefile /home/ubuntu/workdir/qt5/qtwayland/src/compositor/compositor.pro ) && make -f Makefile
    make[2]: Entering directory '/home/ubuntu/workdir/qt5/qtwayland/src/compositor'
    /home/ubuntu/workdir/SDK_imx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=hard --sysroot=/home/ubuntu/workdir/SDK_imx/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi -g -std=c++1y -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -D_REENTRANT -fPIC -DQT_WAYLAND_WINDOWMANAGER_SUPPORT -DQT_WAYLAND_COMPOSITOR_GL -DQT_BUILD_WAYLANDCOMPOSITOR_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_GUI_LIB -DQT_CORE_LIB -Wall -Wextra -Werror -Woverloaded-virtual -Wshadow -Wundef -Wnon-virtual-dtor -Wpointer-arith -Wformat-security -Wno-long-long -Wno-variadic-macros -pedantic-errors -Wchar-subscripts -Wold-style-cast -Wzero-as-null-pointer-constant -I. -I../shared -Iglobal -Iwayland_wrapper -Icompositor_api -Iextensions -I../../include -I../../include/QtWaylandCompositor -I../../include/QtWaylandCompositor/5.8.0 -I../../include/QtWaylandCompositor/5.8.0/QtWaylandCompositor -I/home/ubuntu/workdir/qt5/qtbase/include/QtGui/5.8.0 -I/home/ubuntu/workdir/qt5/qtbase/include/QtGui/5.8.0/QtGui -I/home/ubuntu/workdir/qt5/qtbase/include/QtCore/5.8.0 -I/home/ubuntu/workdir/qt5/qtbase/include/QtCore/5.8.0/QtCore -I/home/ubuntu/workdir/qt5/qtbase/include -I/home/ubuntu/workdir/qt5/qtbase/include/QtGui -I/home/ubuntu/workdir/qt5/qtbase/include/QtCore -I.moc -I/home/ubuntu/workdir/qt5/qtbase/mkspecs/devices/linux-imx6-g++ -DQT_NO_CAST_TO_ASCII=1 -DQT_NO_CAST_FROM_ASCII=1 -DQT_STRICT_ITERATORS -DQT_NO_URL_CAST_FROM_STRING=1 -DQT_NO_CAST_FROM_BYTEARRAY=1 -DQT_NO_KEYWORDS=1 -DQT_USE_QSTRINGBUILDER -DQT_USE_FAST_OPERATOR_PLUS -Dsignals=int -Dslots=int -Demit=public: -Dforeach=public: -Dforever=public: -xc++ compositor_api/qwaylandquickcompositor.h -o .obj/header_qwaylandquickcompositor.o
    compositor_api/qwaylandquickcompositor.h:41:34: fatal error: QtQml/QQmlParserStatus: No such file or directory
    #include <QtQml/QQmlParserStatus>

    The fact is that I have the QQmlParserStatus but it is install in my sysroot and in include/QtQml in QtDeclarative but they are not part of the Include path. What should I do add it to the path ? Or did I miss something in my configure ? Anything else?

    Thanks by advance for your help.

    Jérôme.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jtis
      wrote on last edited by
      #2

      Solved...

      I didn't know that I have to pass the configure line to the qmake...

      Also to solved it in first place I did start to rebuild the whole project from the beginning ( cloned the full qt5 repo).

      Jérôme.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Haipeng.yu
        wrote on last edited by
        #3

        Hi , I also meet this error . Can you tell how do you solve this problem ?

        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