Bug 106477 - Wayland. Piglit tests can't be built - fatal error: wayland-client.h: No such fi le or directory
Summary: Wayland. Piglit tests can't be built - fatal error: wayland-client.h: No such...
Status: RESOLVED FIXED
Alias: None
Product: piglit
Classification: Unclassified
Component: tests (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Piglit Mailing List
QA Contact: Piglit Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-11 14:54 UTC by Denis
Modified: 2018-05-14 12:27 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
CmakeCache.txt (47.20 KB, text/plain)
2018-05-11 14:54 UTC, Denis
Details
CMakeLists.txt (18.63 KB, text/plain)
2018-05-11 14:54 UTC, Denis
Details

Description Denis 2018-05-11 14:54:15 UTC
Created attachment 139499 [details]
CmakeCache.txt

Hi. Faced with a problem that piglit tests are failing to build on distributive with Wayland. What I did:
1. clonned git
2. made configuration file with "cmake ."
3. make
Error displays (config file generated after cmake - attached).


Below my configuration and error:


System:    
Host: linux-vueb Kernel: 4.16.3-1-default x86_64 bits: 64 
Desktop: KDE Plasma 5.12.4
Distro: openSUSE Tumbleweed 20180425    


Error:

[  0%] Building C object target_api/gl/tests/util/CMakeFiles/piglitutil_gl.dir/piglit-util-waffle.c.o
[  0%] Building C object target_api/gl/tests/util/CMakeFiles/piglitutil_gl.dir/piglit-framework-gl/piglit_gbm_framework.
c.o                                                                                                                      
[  0%] Building C object target_api/gl/tests/util/CMakeFiles/piglitutil_gl.dir/piglit-framework-gl/piglit_wl_framework.c
.o                                                                                                                       
/home/denis/piglit/tests/util/piglit-framework-gl/piglit_wl_framework.c:33:10: fatal error: wayland-client.h: No such fi
le or directory
#include <wayland-client.h>
         ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [target_api/gl/tests/util/CMakeFiles/piglitutil_gl.dir/build.make:615: target_api/gl/tests/util/CMakeFiles/
piglitutil_gl.dir/piglit-framework-gl/piglit_wl_framework.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:6095: target_api/gl/tests/util/CMakeFiles/piglitutil_gl.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
denis@linux-vueb:~/piglit>
Comment 1 Denis 2018-05-11 14:54:35 UTC
Created attachment 139500 [details]
CMakeLists.txt
Comment 2 Mark Janes 2018-05-11 15:09:41 UTC
This is a question for IRC, not bugzilla.  Make sure you have the wayland dev packages installed.  Every commit of piglit is built daily in CI.
Comment 3 Denis 2018-05-14 12:27:54 UTC
Hello Mark. Thank you for advice, I spoke in IRC with <robclark>. He suggested to put link to the patch here, and wait for review from piglit devs.

https://patchwork.freedesktop.org/patch/222148/
Here is a link to the patch, which fixed the issue for me (upd - I also checked that wayland-devel packages were installed and up-to-date).


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.