Building & running qt on wayland - edit paths in mkspecs/wayland/ as needed, e.g.: QMAKE_INCDIR_OPENGL_ES2=/opt/gfx-test/include QMAKE_LIBDIR_OPENGL_ES2=/opt/gfx-test/lib QMAKE_LIBS_OPENGL_ES2=-lGLESv2 QMAKE_INCDIR_OPENGL=/opt/gfx-test/include QMAKE_LIBDIR_OPENGL=/opt/gfx-test/lib QMAKE_INCDIR_EGL=/opt/gfx-test/include QMAKE_LIBDIR_EGL=/opt/gfx-test/lib QMAKE_LIBS_OPENGL=-lGLESv2 - ./configure -wayland -confirm-license -opensource - export QT_PLUGIN_PATH=/plugins running wayland - unset DISPLAY - add wayland rules to udev - add pci id to mesa egl kms driver if needed - set EGL_PLATFORM if needed - set EGL_LOG_LEVEL=debug if needed