Subject: Re: bug#17673: 24.4.50; trunk r117239 build failure on Windows

From: Eli Zaretskii <[email-masked]>
Date: Tue, 03 Jun 2014 10:00:18 +0300

> Date: Mon, 02 Jun 2014 23:45:30 +0100
> From: Andy Moreton <[email-masked]>
> 
> 
> Building trunk r117239 with mingw32 fails:
> 
> gcc -std=gnu99  -c -mtune=pentium4   -I/c/emacs/mingw-devel/include 
> -I/c/emacs/mingw-devel/src/xpm/3.5.1/libXpm-3.5.1-src/lib 
> -DUSE_CRT_DLL=1 -I /c/emacs/src/emacs/trunk/obj-mingw32/../nt/inc 
> -Demacs  -I. -I../../src -I../lib -I../../src/../lib -DHEAPSIZE=12 
> -mtune=pentium4    -mms-bitfields 
> -Ic:/emacs/mingw-devel/include/librsvg-2.0 
> -Ic:/emacs/mingw-devel/include/glib-2.0 
> -Ic:/emacs/mingw-devel/lib/glib-2.0/include 
> -Ic:/emacs/mingw-devel/include/gdk-pixbuf-2.0 
> -Ic:/emacs/mingw-devel/include/cairo 
> -Ic:/emacs/mingw-devel/include/libpng16 
> -Ic:/emacs/mingw-devel/include/pixman-1 
> -Ic:/emacs/mingw-devel/include/libxml2            -MMD -MF deps/menu.d 
> -MP -Ic:/emacs/mingw-devel/include 
> -Ic:/emacs/mingw-devel/include/p11-kit-1      -O0 -g3  ../../src/menu.c
> In file included from ../../src/menu.h:25:0,
>                   from ../../src/menu.c:52:
> ../../src/../lwlib/lwlib.h:24:27: fatal error: X11/Intrinsic.h: No such 
> file or directory
> compilation terminated.
> make[1]: *** [menu.o] Error 1

Should be fixed now.

Dmitry, you cannot write code that will require the MS-Windows build
to pull in X11 headers, they don't exist on Windows.  For that reason,
lwlib.h is off-limits to the WINDOWSNT/NTGUI build, unless someone
fixes lwlib.h to avoid X11 headers.