<div dir="ltr"><div><div><div><div>Hi,<br><br></div> I am trying to build mesa with Wayland having x11 as backend. During the make process, I am facing a few errors.<br><br><p class="MsoNormal">egl_dri2.c: In function 'dri2_bind_wayland_display_wl':</p>

<p class="MsoNormal">egl_dri2.c:1884:4: error: implicit declaration of function 'drmGetCap' [-Werror=implicit-function-declaration]</p>
<p class="MsoNormal">    ret = drmGetCap(dri2_dpy->fd, DRM_CAP_PRIME, &cap);</p>
<p class="MsoNormal">    ^</p>
<p class="MsoNormal">egl_dri2.c:1899:16: error: 'struct dri2_egl_display' has no member named 'gbm_dri'</p>
<p class="MsoNormal">    if (dri2_dpy->gbm_dri)</p>
<p class="MsoNormal">                ^</p>
<p class="MsoNormal">egl_dri2.c:1900:15: error: 'struct dri2_egl_display' has no member named 'gbm_dri'</p>
<p class="MsoNormal">       dri2_dpy->gbm_dri->wl_drm = dri2_dpy->wl_server_drm;</p>
<p class="MsoNormal">               ^</p>
<p class="MsoNormal">cc1: some warnings being treated as errors</p>
<p class="MsoNormal">make[4]: *** [egl_dri2.lo] Error 1</p>
<p class="MsoNormal">make[4]: *** Waiting for unfinished jobs....</p>
<p class="MsoNormal">make[4]: Leaving directory `/home/sathish/Desktop/layer_management-1_2/work/mesa/src/egl/drivers/dri2'</p>
<p class="MsoNormal">make[3]: *** [all-recursive] Error 1</p>
<p class="MsoNormal">make[3]: Leaving directory `/home/sathish/Desktop/layer_management-1_2/work/mesa/src/egl/drivers'</p>
<p class="MsoNormal">make[2]: *** [all-recursive] Error 1</p>
<p class="MsoNormal">make[2]: Leaving directory `/home/sathish/Desktop/layer_management-1_2/work/mesa/src/egl'</p>
<p class="MsoNormal">make[1]: *** [all-recursive] Error 1</p>
<p class="MsoNormal">make[1]: Leaving directory `/home/sathish/Desktop/layer_management-1_2/work/mesa/src'</p>
<p class="MsoNormal">make: *** [all-recursive] Error 1</p>

<br></div>Can anybody help me with this,<br><br></div>Thanks,<br></div>Sathish<br><div><div><div><br></div></div></div></div>