This ebuild contains all necessary informations to compile Qt/Wayland : http://git.overlays.gentoo.org/gitweb/?p=user/benf.git;a=blob;f=x11-libs/qt-wayland/qt-wayland-9999.ebuild;hb=HEAD The important configure options are: -qpa -opengl es2 and at runtime LD_LIBRARY_PATH="/usr/lib/qt-wayland" qt-application -platform wayland