Bug 19990 - pixman.h: No such file or directory
Summary: pixman.h: No such file or directory
Status: RESOLVED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.4 (2008.09)
Hardware: PowerPC Mac OS X (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-06 06:37 UTC by Peter Dyballa
Modified: 2009-02-09 05:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Peter Dyballa 2009-02-06 06:37:43 UTC
When compiling xserver/dix/dixfonts.c I get:

	In file included from ../../../include/regionstr.h:53,
	                 from ../../../include/scrnintstr.h:52,
	                 from ../../../dix/dixfonts.c:59:
	../../../include/miscstruct.h:54:20: error: pixman.h: No such file or directory

The line is: #include <pixman.h>

The header file is installed as: /usr/X11/include/pixman-1/pixman.h. Its directory is not in the search path for C header files, -I/usr/X11/include/pixman-1 is used for other files.
Comment 1 Peter Dyballa 2009-02-06 07:17:37 UTC
-I/usr/X11/include/pixman-1 must be used, otherwise

	#include <pixman-version.h>

will fail.
Comment 2 Julien Cristau 2009-02-09 04:25:45 UTC
> The header file is installed as: /usr/X11/include/pixman-1/pixman.h. Its
> directory is not in the search path for C header files,
> -I/usr/X11/include/pixman-1 is used for other files.
> 
why is it not there?  this option should be part of DIX_CFLAGS, which is
used by dix/Makefile.am.
Comment 3 Peter Dyballa 2009-02-09 05:40:50 UTC
Could be the reason is that I need to use on my Mac with Mac OS X 10.4.11 (Tiger) an elder version of xserver, 1.4.x (xserver/configure.ac from 2009-02-05 contains "1.4.2-apple32").

The file xserver/dix/Makefile.am only *uses* the DIX_CFLAGS macro. Grep finds it in:

	xserver/dix/Makefile:127:DIX_CFLAGS = -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/freetype219/include -I/usr/X11/include -I/usr/X11/include/pixman-1 -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_srcdir)/Xext  -I$(top_srcdir)/damageext -I$(top_srcdir)/xfixes -I$(top_srcdir)/Xi -I$(top_srcdir)/mi -I$(top_srcdir)/miext/shadow  -I$(top_srcdir)/miext/damage -I$(top_srcdir)/render -I$(top_srcdir)/randr -I$(top_srcdir)/fb
	xserver/dix/Makefile:380:AM_CFLAGS = $(DIX_CFLAGS) \
	xserver/dix/Makefile.am:3:AM_CFLAGS = $(DIX_CFLAGS) \
	xserver/dix/Makefile.in:127:DIX_CFLAGS = @DIX_CFLAGS@
	xserver/dix/Makefile.in:380:AM_CFLAGS = $(DIX_CFLAGS) \

so it should have worked the first time. I 'made clean' and then issued a 'make -k' in the xserver branch – and this particular problem was gone, xserver/dix/dixfonts.c compiled fine!

So it's magically resolved ...


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.