How to build Qt 5.4.0 without Wayland



  • Hi all,

    I'm working on building Qt 5.4.0 for an i.MX6. I've made it through the configuration, but Qt fails during make with the following error:

    @/opt/ti/linaro/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mfpu=neon -mhard-float -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=hard --sysroot=/projects/client/imx6/rootfs -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_BUILD_WAYLANDCLIENT_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_WAYLAND_GL_SUPPORT -DQT_NO_WAYLAND_XKB -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLATFORMSUPPORT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/opt/qt-everywhere-opensource-src-5.4.0/qtbase/mkspecs/devices/linux-imx6-g++ -I/opt/qt-everywhere-opensource-src-5.4.0/qtwayland/src/client -I/opt/qt-everywhere-opensource-src-5.4.0/qtwayland/include -I/opt/qt-everywhere-opensource-src-5.4.0/qtwayland/include/QtWaylandClient -I../../include -I../../include/QtWaylandClient -I/opt/qt-everywhere-opensource-src-5.4.0/qtwayland/include/QtWaylandClient/5.4.0 -I/opt/qt-everywhere-opensource-src-5.4.0/qtwayland/include/QtWaylandClient/5.4.0/QtWaylandClient -I/opt/qt-everywhere-opensource-src-5.4.0/qtwayland/src/shared -I/opt/qt-everywhere-opensource-src-5.4.0/qtwayland/src/client/hardwareintegration -I/opt/qt-everywhere-opensource-src-5.4.0/qtwayland/src/client/shellintegration -isystem /projects/client/imx6/rootfs/usr/include/glib-2.0 -I/projects/client/imx6/rootfs/usr/lib/glib-2.0/include -I/opt/qt-everywhere-opensource-src-5.4.0/qtbase/include -I/opt/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtPlatformSupport -I/opt/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtPlatformSupport/5.4.0 -I/opt/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtPlatformSupport/5.4.0/QtPlatformSupport -I/opt/qt-5.4.0-x86-imx6/qtbase/include -I/opt/qt-5.4.0-x86-imx6/qtbase/include/QtPlatformSupport -I/opt/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtGui/5.4.0 -I/opt/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtGui/5.4.0/QtGui -I/opt/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtGui -I/opt/qt-5.4.0-x86-imx6/qtbase/include/QtGui -I/opt/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/5.4.0 -I/opt/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/5.4.0/QtCore -I/opt/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore -I/opt/qt-5.4.0-x86-imx6/qtbase/include/QtCore -I.moc -isystem /projects/client/imx6/rootfs/usr/include/GLES2 -isystem /projects/client/imx6/rootfs/usr/include -I. -o .obj/qwaylandintegration.o /opt/qt-everywhere-opensource-src-5.4.0/qtwayland/src/client/qwaylandintegration.cpp
    In file included from /opt/qt-everywhere-opensource-src-5.4.0/qtwayland/src/client/qwaylandintegration.cpp:44:0:
    /opt/qt-everywhere-opensource-src-5.4.0/qtwayland/src/client/qwaylanddisplay_p.h:52:54: fatal error: QtWaylandClient/private/qwayland-wayland.h: No such file or directory
    #include <QtWaylandClient/private/qwayland-wayland.h>
    ^
    compilation terminated.
    make[3]: *** [.obj/qwaylandintegration.o] Error 1@

    Here is my configure command:

    @configure -v -opensource -confirm-license -device imx6 -device-option CROSS_COMPILE=/opt/ti/linaro/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10/bin/arm-linux-gnueabihf- -no-pch -no-xcb -no-eglfs -make libs -sysroot /projects/client/imx6/rootfs -prefix /opt/qt-5.4.0-imx6@

    I have no need for Wayland and it does not exist in my environment... but it appears the "-no-wayland" flag no longer exists in Qt5. How do I disable qtwayland from building?

    Thanks



  • I have not found a solution for this, but I have found a work-around. I can complete the build if I completely delete the qtwayland directory from the qt-everywhere-src-5.4.0 directory.

    I am still interested in a real solution that I do not need to delete plugin directories to complete a build. So not marking this as solved and hoping to get some feedback.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.