[Xcb] another "no rule to make target `xproto.c'"

Alex A. Schmidt alex at lana.ccne.ufsm.br
Fri Jul 7 06:58:50 PDT 2006


> Please check whether this patch fixes your build.
> 
> Ian
> 
> diff --git a/xcb/src/xcb.h b/xcb/src/xcb.h
> index 639f583..e19b19d 100644
> --- a/xcb/src/xcb.h
> +++ b/xcb/src/xcb.h
> @@ -29,8 +29,11 @@
> #define __XCB_H__
> #include <sys/types.h>
> -/* TODO: check for stdint in config? (HAVE_STDINT) fallback? */
> +#if HAVE_STDINT_H
> #include <stdint.h>
> +#elif HAVE_INTTYPES_H
> +#include <inttypes.h>
> +#endif
> /* FIXME: these names conflict with those defined in Xmd.h. */
> #ifndef XMD_H

Yes, it works. Thanks.

> These source files are generated from xproto.xml and xcb_types.xml  
> using xsltproc and src/c-client.xsl.
> 
> Have you installed the xcb-proto and xsltproc packages?

Yes, I have both packages. 

> > This occurs intentionally; these files get automatically generated from
> > XML descriptions of the X Window System protocol contained in the
> > xcb-proto package.  XCB ships the files generated, but a clean will
> > remove them and a rebuild should regenerate them.
> >
> > That said, perhaps we should treat those source files like automake and
> > autoconf output, assume that an end-user compiling the software might
> > not have xsltproc, and move the removal of those source files to "make
> > maintainer-clean".
> 
> Adding a test for xsltproc must be done.
> 
> Vincent

How is xproto.c to be regenerated from xsltproc? Will this be done
automatically by "configure" then?

Cheers,

Alex





More information about the Xcb mailing list