So far, one of these where missing:
libegl1-mesa-dev - free implementation of the EGL API -- development files
libgl1-mesa-dev - free implementation of the OpenGL API -- GLX development files
libgles1-mesa-dev - free implementation of the OpenGL|ES 1.x API -- development files
libgles2-mesa-dev - free implementation of the OpenGL|ES 2.x API -- development files
And the ./configure processes finished successfully. There are heavy dependencies, therefore I decided to build a package according to this:
. When enabling Wayland support with --enable-wayland-backend in debian/rules file ./configure process and compilation process finishes successfully, but packaging process yields error:
dh_install: missing files, aborting
/usr/share/cdbs/1/rules/debhelper.mk:233: recipe for target 'binary-install/libgtk-3-common' failed
make: *** [binary-install/libgtk-3-common] Error 2
Just to add, GTK applications under Debian Stretch / Wayland work, so apparently there is Wayland support enabled during compilation process. I compared debian/rules files (package management file) of Debian and Raspbian distros and they differ only slightly, nevertheless I kept the Raspbian file untouched only enabled Wayland backend, however the beforementioned error raised.
Compilation of gtk sources from gtk webpage works, it compiles with Wayland support successfully, but after libraries installation, I cannot still run my application, because of this error:
Unable to init server: Could not connect: Connection refused
(myapplication): Gtk-WARNING **: cannot open display: :0
Therefore I decided to build package from official Raspbian sources with Wayland support, I want to make sure the libgtk package is replaced with modified version, I still think libraries compiled from sources and installed via make install should work, I thought there is not need to recompile my program on the platform linking those libraries with Wayland support. I thought my application just links whatever libraries are available and opens any graphical server which is available, either Wayland or X11 etc.
Anyway, I guess building a package is a more convenient way how to make sure dependencies are resolved.
If anyone is willing to help me, I would be very grateful, I can also provide ssh access, I just want to see the vast performance benefit of Wayland compared to X11 especially on Raspberry Zero.