[Buildroot] Building Cairo using DirectFB

Ormund Williams ormundw at panix.com
Tue Aug 12 15:54:52 UTC 2008


On Tue, 2008-08-12 at 07:48 -0700, Daniel Laird wrote:
> I have modified it to build for both versions of DirectFB 1.0.x and 1.2.x
> (see bug/features in buildroot bugzilla - cant remember the number):
> 
> I have also added package/pixman as a package
> See Files below:
> #package/pixman/pixman.mk
> #############################################################
> #
> # pixman-0.10.0
> #
> #############################################################
> PIXMAN_VERSION = 0.10.0
> PIXMAN_SOURCE = pixman-$(PIXMAN_VERSION).tar.gz
> PIXMAN_SITE = http://www.cairographics.org/releases/
> PIXMAN_AUTORECONF = NO
> PIXMAN_INSTALL_STAGING = YES
> PIXMAN_INSTALL_TARGET = YES
> PIXMAN_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install 
> PIXMAN_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install 
> 
> ifeq ($(BR2_PREFER_STATIC_LIB),y)
> 	PIXMAN_CONF_OPT_STATIC = --enable-static
> endif
> 
> PIXMAN_CONF_OPT = --target=$(GNU_TARGET_NAME) --host=$(GNU_TARGET_NAME) \
> 		--build=$(GNU_HOST_NAME) --prefix=/usr \
> 		--exec-prefix=/usr --bindir=/usr/bin \
> 		--sbindir=/usr/sbin --libdir=/usr/lib \
> 		--libexecdir=/usr/lib --sysconfdir=/etc \
> 		--datadir=/usr/share --localstatedir=/var \
> 		--includedir=/usr/include --mandir=/usr/man \
> 		--infodir=/usr/info --enable-shared \
> 		$(PIXMAN_CONF_OPT_STATIC)
> 
> PIXMAN_DEPENDENCIES = uclibc 
> 
> $(eval $(call AUTOTARGETS,package,pixman))
> 
> #package/pixman/Config.in
> config BR2_PACKAGE_PIXMAN
> 	bool "pixman"
> 	default n
> 	depends on BR2_PACKAGE_CAIRO
> 	help
>           pixman is a library that provides low-level pixel manipulation
>           features such as image compositing and trapezoid rasterization.
> 
> #package/Config.in
> source "package/pixman/Config.in"
> 
> Hope this helps, there is a pixman under XORG but this should be moved from
> out of xorg as it is cairo dependent not XORG dependent.
> 
The above solved the pixman problem but it still seems that Cairo is
getting the wrong include path for DirectFB.  Looking at the directfb.pc
file, I see this line:
	Cflags: -D_REENTRANT -I/include/directfb
shouldn't that line be:
	Cflags: -D_REENTRANT -I/usr/include/directfb

Can you send me your ..package/directfb/directfb.mk 

Thanks

__
Ormund





More information about the buildroot mailing list