From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:54214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjUrH-0003f5-SI for qemu-devel@nongnu.org; Tue, 15 Jan 2019 14:58:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjUrD-0006BJ-Rz for qemu-devel@nongnu.org; Tue, 15 Jan 2019 14:58:47 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:56092) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gjUr9-00062J-CQ for qemu-devel@nongnu.org; Tue, 15 Jan 2019 14:58:40 -0500 Received: by mail-wm1-f68.google.com with SMTP id y139so4565671wmc.5 for ; Tue, 15 Jan 2019 11:58:35 -0800 (PST) References: <20190115115047.39326-1-alex.kanavin@gmail.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Tue, 15 Jan 2019 20:58:33 +0100 MIME-Version: 1.0 In-Reply-To: <20190115115047.39326-1-alex.kanavin@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH] egl-helpers.h: add a missing X11 include List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Kanavin , qemu-devel@nongnu.org, Gerd Hoffmann , =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= Hi Alexander, Cc'ing Gerd (the maintainer) and Marc-André. On 1/15/19 12:50 PM, Alexander Kanavin wrote: > Otherwise these errors occur, when qemu is built in the Yocto project: > | In file included from /home/alexander/development/poky/build-virgl-gtk-64/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qemu/3.1.0-r0/qemu-3.1.0/include/ui/egl-context.h:5, > | from /home/alexander/development/poky/build-virgl-gtk-64/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qemu/3.1.0-r0/qemu-3.1.0/ui/egl-context.c:3: > | /home/alexander/development/poky/build-virgl-gtk-64/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qemu/3.1.0-r0/qemu-3.1.0/include/ui/egl-helpers.h:46:55: error: unknown type name 'Window'; did you mean 'minor'? > | EGLSurface qemu_egl_init_surface_x11(EGLContext ectx, Window win); > | ^~~~~~ > | minor Can you provide more information to reproduce this failure? It seems some dependency is missing in your build setup. Missing headers would trigger the definition of MESA_EGL_NO_X11_HEADERS and this error. includes which contains: #if defined(MESA_EGL_NO_X11_HEADERS) typedef void *EGLNativeDisplayType; typedef khronos_uintptr_t EGLNativePixmapType; typedef khronos_uintptr_t EGLNativeWindowType; #else /* X11 (tentative) */ #include So Window should already be declared. Thanks, Phil. > > Signed-off-by: Alexander Kanavin > --- > include/ui/egl-helpers.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h > index 9db7293bdb..2c32d77e7a 100644 > --- a/include/ui/egl-helpers.h > +++ b/include/ui/egl-helpers.h > @@ -4,6 +4,7 @@ > #include > #include > #include > +#include > > extern EGLDisplay *qemu_egl_display; > extern EGLConfig qemu_egl_config; >