piglit build failed with default configuration:piglit/tests/util/piglit-framework-gl/piglit_wl_framework.c:33:10: fatal error: wayland-client.h: No such file or directory
git clone https://gitlab.freedesktop.org/mesa/piglit and following readme
ccmake . make
and then got the failed error information.
anyone tell me how to fix it.
I have checked the build environment. libwayland-devel has been installed, /usr/include/wayland exists. but to build piglit_wl_framework.c the INCLUDE path is not included. here are the commands to build
/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/qxwang/piglit/CMakeFiles --progress-num= "Building C object target_api/gl/tests/util/CMakeFiles/piglitutil_gl.dir/piglit-framework-gl/piglit_wl_framework.c.o" cd /home/qxwang/piglit/target_api/gl/tests/util && /usr/bin/cc -DHAVE_LIBDRM -DHAVE_LIBDRM_INTEL -DPIGLIT_HAS_EGL -DPIGLIT_HAS_GBM -DPIGLIT_HAS_GBM_BO_MAP -DPIGLIT_HAS_GLX -DPIGLIT_HAS_PNG -DPIGLIT_HAS_POSIX_CLOCK_MONOTONIC -DPIGLIT_HAS_POSIX_TIMER_NOTIFY_THREAD -DPIGLIT_HAS_PTHREADS -DPIGLIT_HAS_WAYLAND -DPIGLIT_HAS_X11 -DPIGLIT_USE_GLX -DPIGLIT_USE_OPENGL -DPIGLIT_USE_WAFFLE -DSOURCE_DIR="/home/qxwang/piglit/" -DWAFFLE_API_VERSION=0x0103 -D_GNU_SOURCE -Dpiglitutil_gl_EXPORTS -I/home/qxwang/piglit/src -I/home/qxwang/piglit/tests/util -I/usr/include/libxkbcommon -I/usr/include/libpng16 -I/home/qxwang/piglit/target_api/gl/tests/util -I/usr/include/waffle-1 -I/usr/include/libdrm -Wall -std=gnu99 -Werror=vla -Werror=pointer-arith -Werror=variadic-macros -g -fPIC -MD -MT target_api/gl/tests/util/CMakeFiles/piglitutil_gl.dir/piglit-framework-gl/piglit_wl_framework.c.o -MF CMakeFiles/piglitutil_gl.dir/piglit-framework-gl/piglit_wl_framework.c.o.d -o CMakeFiles/piglitutil_gl.dir/piglit-framework-gl/piglit_wl_framework.c.o -c /home/qxwang/piglit/tests/util/piglit-framework-gl/piglit_wl_framework.c /usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/home/qxwang/piglit/CMakeFiles --progress-num= "Building C object target_api/gl/tests/util/CMakeFiles/piglitutil_gl.dir/piglit-framework-gl/piglit_x11_framework.c.o"
who can tell me how to set it in cmake?
I think it should be a cmake setting error. however for default building, it should not have problem.
Thanks