* [Buildroot] Building Cairo using DirectFB @ 2008-08-11 15:08 Ormund Williams 2008-08-12 8:48 ` Daniel Laird 2008-08-13 10:55 ` Daniel Laird 0 siblings, 2 replies; 8+ messages in thread From: Ormund Williams @ 2008-08-11 15:08 UTC (permalink / raw) To: buildroot Hi, It seems that DirectFB puts its header files in: ..staging_dir/usr/include/directfb/ but Cairo is looking for them in: ..staging_dir/include/directfb/ Actually, ..staging_dir/include/ doesn't exist, so how do I get Cairo to look in the right place? __ Ormund ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] Building Cairo using DirectFB 2008-08-11 15:08 [Buildroot] Building Cairo using DirectFB Ormund Williams @ 2008-08-12 8:48 ` Daniel Laird 2008-08-12 13:40 ` Ormund Williams 2008-08-13 10:55 ` Daniel Laird 1 sibling, 1 reply; 8+ messages in thread From: Daniel Laird @ 2008-08-12 8:48 UTC (permalink / raw) To: buildroot I have built cairo with DirectFB support. It all works fine however I have bounced version to 1.6.4 maybe that will solve it for you. Cheers Dan laird Ormund Williams wrote: > > Hi, > > It seems that DirectFB puts its header files in: > ..staging_dir/usr/include/directfb/ > but Cairo is looking for them in: > ..staging_dir/include/directfb/ > > Actually, ..staging_dir/include/ doesn't exist, so how do I get Cairo to > look in the right place? > > __ > Ormund > > > _______________________________________________ > buildroot mailing list > buildroot at uclibc.org > http://busybox.net/mailman/listinfo/buildroot > > -- View this message in context: http://www.nabble.com/Building-Cairo-using-DirectFB-tp18927643p18940236.html Sent from the BuildRoot mailing list archive at Nabble.com. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] Building Cairo using DirectFB 2008-08-12 8:48 ` Daniel Laird @ 2008-08-12 13:40 ` Ormund Williams 2008-08-12 14:48 ` Daniel Laird 0 siblings, 1 reply; 8+ messages in thread From: Ormund Williams @ 2008-08-12 13:40 UTC (permalink / raw) To: buildroot On Tue, 2008-08-12 at 01:48 -0700, Daniel Laird wrote: > I have built cairo with DirectFB support. > It all works fine however I have bounced version to 1.6.4 maybe that will > solve it for you. > Just tried that, now compile fails because pixman-0.10 is missing. What version of DirectFB are you using? Thanks __ Ormund ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] Building Cairo using DirectFB 2008-08-12 13:40 ` Ormund Williams @ 2008-08-12 14:48 ` Daniel Laird 2008-08-12 15:54 ` Ormund Williams 0 siblings, 1 reply; 8+ messages in thread From: Daniel Laird @ 2008-08-12 14:48 UTC (permalink / raw) To: buildroot 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. Many thanks Daniel Laird -- View this message in context: http://www.nabble.com/Building-Cairo-using-DirectFB-tp18927643p18945810.html Sent from the BuildRoot mailing list archive at Nabble.com. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] Building Cairo using DirectFB 2008-08-12 14:48 ` Daniel Laird @ 2008-08-12 15:54 ` Ormund Williams 0 siblings, 0 replies; 8+ messages in thread From: Ormund Williams @ 2008-08-12 15:54 UTC (permalink / raw) To: buildroot 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] Building Cairo using DirectFB @ 2008-08-13 10:55 ` Daniel Laird 2008-08-21 16:41 ` Ormund Williams 0 siblings, 1 reply; 8+ messages in thread From: Daniel Laird @ 2008-08-13 10:55 UTC (permalink / raw) To: buildroot The following patch add support for building DirectFB 1.0 or 1.2.X It also stop auto adding packages and turns features on if people have enabled them from menuconfig. Config.in | 27 ++++++-- directfb.mk | 200 +++++++++++++++++++++++++++++++++++++++--------------------- 2 files changed, 151 insertions(+), 76 deletions(-) Signed-off-by: daniel.j.laird <daniel.j.laird@nxp.com> diff -urN buildroot.orig/package/directfb/Config.in buildroot/package/directfb/Config.in --- buildroot.orig/package/directfb/Config.in 2008-08-13 10:44:42.000000000 +0100 +++ buildroot/package/directfb/Config.in 2008-08-12 11:58:15.000000000 +0100 @@ -1,19 +1,34 @@ config BR2_PACKAGE_DIRECTFB bool "directfb" - select BR2_PACKAGE_ZLIB - select BR2_PACKAGE_JPEG + default n select BR2_PACKAGE_LIBPNG - select BR2_PACKAGE_LIBSYSFS - select BR2_PACKAGE_FREETYPE - select BR2_PACKAGE_TSLIB + select BR2_PACKAGE_JPEG help http://www.directfb.org/ +choice + prompt "DirectFB Version" + depends BR2_PACKAGE_DIRECTFB + default BR2_DIRECTFB_VERSION_1_0_X + help + Select the version of DirectFB you wish to use. + + config BR2_DIRECTFB_VERSION_1_0_X + bool "DirectFB 1.0.0" + + config BR2_DIRECTFB_VERSION_1_2_X + bool "DirectFB 1.2.0" +endchoice + +config BR2_DIRECTFB_VERSION + string + default "1.0.0" if BR2_DIRECTFB_VERSION_1_0_X + default "1.2.0" if BR2_DIRECTFB_VERSION_1_2_X config BR2_PACKAGE_DIRECTFB_MULTI bool "directfb multi application" + default n depends on BR2_PACKAGE_DIRECTFB - select BR2_PACKAGE_LINUX_FUSION help Enable use of multiple concurrent DirectFB applications http://www.directfb.org/ diff -urN buildroot.orig/package/directfb/directfb.mk buildroot/package/directfb/directfb.mk --- buildroot.orig/package/directfb/directfb.mk 2008-08-13 10:44:42.000000000 +0100 +++ buildroot/package/directfb/directfb.mk 2008-08-13 11:33:17.000000000 +0100 @@ -3,27 +3,65 @@ # directfb # ############################################################# -#DIRECTFB_VERSION:=0.9.25.1 -#DIRECTFB_SITE:=http://www.directfb.org/downloads/Old -DIRECTFB_VERSION:=1.0.1 DIRECTFB_SITE:=http://www.directfb.org/downloads/Core +DIRECTFB_CAT:=zcat +DIRECTFB_VERSION=$(strip $(subst ",, $(BR2_DIRECTFB_VERSION))) DIRECTFB_SOURCE:=DirectFB-$(DIRECTFB_VERSION).tar.gz -DIRECTFB_CAT:=$(ZCAT) DIRECTFB_DIR:=$(BUILD_DIR)/DirectFB-$(DIRECTFB_VERSION) +DIRECTFB_CFLAGS:=$(TARGET_CFLAGS) -I. -I$(DIRECTFB_DIR)/include/fusion -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include +# What if we need large file support. +ifeq ($(BR2_LARGEFILE),y) +DIRECTFB_CFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 +endif + +# If we are building multi with the fusion kernel module then enable-multi. ifeq ($(BR2_PACKAGE_DIRECTFB_MULTI),y) DIRECTFB_MULTI:=--enable-multi -DIRECTFB_FUSION:=linux-fusion else DIRECTFB_MULTI:= -DIRECTFB_FUSION:= endif + +#If we have enabled freetype then build with support for it. +ifeq ($(BR2_PACKAGE_FREETYPE),y) +DIRECTFB_FREETYPE:=--enable-freetype +else +DIRECTFB_FREETYPE:= +endif + +#If we have enabled sysfs then build with support for it +ifeq ($(BR2_PACKAGE_LIBSYSFS),y) +DIRECTFB_SYSFS:=--enable-sysfs +else +DIRECTFB_SYSFS:= +endif + +#If we have enabled zlib then build with support for it +ifeq ($(BR2_PACKAGE_ZLIB),y) +DIRECTFB_ZLIB:=--enable-zlib +else +DIRECTFB_ZLIB:= +endif + +# If no X server specified then disable X ifeq ($(BR2_PACKAGE_XSERVER_none),y) DIRECTFB_X:=--disable-x11 else DIRECTFB_X:=--enable-x11 endif +#If libjpeg or libpng then build the imageproviders for them. +ifeq ($(BR2_PACKAGE_JPEG),y) +DIRECTFB_JPEG:=--enable-jpeg +else +DIRECTFB_JPEG:=--disable-jpeg +endif +ifeq ($(BR2_PACKAGE_LIBPNG),y) +DIRECTFB_PNG:=--enable-png +else +DIRECTFB_PNG:=--disable-png +endif + $(DL_DIR)/$(DIRECTFB_SOURCE): $(WGET) -P $(DL_DIR) $(DIRECTFB_SITE)/$(DIRECTFB_SOURCE) @@ -31,81 +69,103 @@ $(DIRECTFB_DIR)/.unpacked: $(DL_DIR)/$(DIRECTFB_SOURCE) $(DIRECTFB_CAT) $(DL_DIR)/$(DIRECTFB_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - toolchain/patch-kernel.sh $(DIRECTFB_DIR) package/directfb/ directfb\*.patch - touch $@ + touch $(DIRECTFB_DIR)/.unpacked -$(DIRECTFB_DIR)/.configured: $(DIRECTFB_DIR)/.unpacked - (cd $(DIRECTFB_DIR); rm -f config.cache; \ - $(TARGET_CONFIGURE_OPTS) \ - $(TARGET_CONFIGURE_ARGS) \ +$(DIRECTFB_DIR)/.patched:$(DIRECTFB_DIR)/.unpacked + cp -R package/directfb/overlay$(DIRECTFB_VERSION)/* $(DIRECTFB_DIR) + toolchain/patch-kernel.sh $(DIRECTFB_DIR) package/directfb/ libdir-la.patch + touch $(DIRECTFB_DIR)/.patched + +$(DIRECTFB_DIR)/.configured: $(DIRECTFB_DIR)/.patched + (cd $(DIRECTFB_DIR); \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(DIRECTFB_CFLAGS)" \ + LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib -Wl,--rpath-link -Wl,$(STAGING_DIR)/lib -Wl,--rpath-link -Wl,$(STAGING_DIR)/usr/lib" \ ac_cv_header_linux_wm97xx_h=no \ ac_cv_header_linux_sisfb_h=no \ - ac_cv_header_asm_page_h=no \ ./configure \ - --target=$(GNU_TARGET_NAME) \ - --host=$(GNU_TARGET_NAME) \ - --build=$(GNU_HOST_NAME) \ - --prefix=/usr \ - --exec-prefix=/usr \ - --bindir=/bin \ - --sbindir=/sbin \ - --libdir=/lib \ - --libexecdir=/lib \ - --sysconfdir=/etc \ - --datadir=/share \ - --localstatedir=/var \ - --includedir=/include \ - --mandir=/man \ - --infodir=/info \ - --with-gfxdrivers=cle266,unichrome \ - --enable-shared \ - $(DIRECTFB_MULTI) \ - $(DIRECTFB_X) \ - --enable-jpeg \ - --enable-png \ - --enable-linux-input \ - --enable-zlib \ - --enable-freetype \ - --disable-sysfs \ - --disable-sdl \ - --disable-vnc \ - --disable-video4linux \ - --disable-video4linux2 \ - --enable-fusion ) - touch $@ + --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 \ + --with-gfxdrivers=cle266,unichrome \ + --with-inputdrivers=linuxinput \ + --disable-sdl \ + --disable-vnc \ + --disable-video4linux \ + --disable-video4linux2 \ + --enable-gif \ + $(DIRECTFB_JPEG) \ + $(DIRECTFB_PNG) \ + $(DIRECTFB_ZLIB) \ + $(DIRECTFB_FREETYPE) \ + $(DIRECTFB_SYSFS) \ + $(DIRECTFB_X) \ + $(DIRECTFB_MULTI) \ + ); + touch $(DIRECTFB_DIR)/.configured $(DIRECTFB_DIR)/.compiled: $(DIRECTFB_DIR)/.configured - $(MAKE) PATH=$(STAGING_DIR)/usr/lib:$(PATH) \ - $(TARGET_CONFIGURE_OPTS) \ - -C $(DIRECTFB_DIR) + $(MAKE) -C $(DIRECTFB_DIR) touch $(DIRECTFB_DIR)/.compiled $(STAGING_DIR)/usr/lib/libdirectfb.so: $(DIRECTFB_DIR)/.compiled - $(MAKE) DESTDIR=$(STAGING_DIR)/usr -C $(DIRECTFB_DIR) install - $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" \ - $(STAGING_DIR)/usr/lib/libdirectfb.la - $(SED) "s,/lib/libfusion.la,$(STAGING_DIR)/usr/lib/libfusion.la,g" \ - $(STAGING_DIR)/usr/lib/libdirectfb.la - $(SED) "s,/lib/libdirect.la,$(STAGING_DIR)/usr/lib/libdirect.la,g" \ - $(STAGING_DIR)/usr/lib/libdirectfb.la - $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" \ - $(STAGING_DIR)/usr/lib/libdirect.la - $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" \ - $(STAGING_DIR)/usr/lib/libfusion.la - $(SED) "s,/lib/libdirect.la,$(STAGING_DIR)/usr/lib/libdirect.la,g" \ - $(STAGING_DIR)/usr/lib/libfusion.la - touch -c $@ + $(MAKE) DESTDIR=$(STAGING_DIR) -C $(DIRECTFB_DIR) install + $(SED) "/^libdir=/ s,/usr/lib,$(STAGING_DIR)/usr/lib,g" $(STAGING_DIR)/usr/lib/libdirectfb.la + $(SED) "/^dependency_libs=/ s,/usr/lib,$(STAGING_DIR)/usr/lib,g" $(STAGING_DIR)/usr/lib/libdirectfb.la + $(SED) "/^libdir=/ s,/usr/lib,$(STAGING_DIR)/usr/lib,g" $(STAGING_DIR)/usr/lib/libdirect.la + $(SED) "/^dependency_libs=/ s,/usr/lib,$(STAGING_DIR)/usr/lib,g" $(STAGING_DIR)/usr/lib/libdirect.la + $(SED) "/^libdir=/ s,/usr/lib,$(STAGING_DIR)/usr/lib,g" $(STAGING_DIR)/usr/lib/libfusion.la + $(SED) "/^dependency_libs=/ s,/usr/lib,$(STAGING_DIR)/usr/lib,g" $(STAGING_DIR)/usr/lib/libfusion.la + touch -c $(STAGING_DIR)/usr/lib/libdirectfb.so $(TARGET_DIR)/usr/lib/libdirectfb.so: $(STAGING_DIR)/usr/lib/libdirectfb.so - cp -dpf $(STAGING_DIR)/usr/lib/libdirect* $(STAGING_DIR)/usr/lib/libfusion* $(TARGET_DIR)/usr/lib/ - cp -rdpf $(STAGING_DIR)/usr/lib/directfb-* $(TARGET_DIR)/usr/lib/ - -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) \ - $(TARGET_DIR)/usr/lib/libdirectfb.so \ - $(TARGET_DIR)/usr/lib/libdirect.so \ - $(TARGET_DIR)/usr/lib/libfusion.so - -directfb: uclibc jpeg libpng freetype libsysfs tslib $(DIRECTFB_FUSION) \ - $(TARGET_DIR)/usr/lib/libdirectfb.so + mkdir -p $(TARGET_DIR)/usr/lib + mkdir -p $(TARGET_DIR)/usr/bin + mkdir -p $(TARGET_DIR)/usr/share/directfb-$(DIRECTFB_VERSION) + # Copy in the useful DirectFB apps + $(INSTALL) $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-dfbdump $(TARGET_DIR)/usr/bin/dfbdump + $(INSTALL) $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-dfbg $(TARGET_DIR)/usr/bin/dfbg + $(INSTALL) $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-dfbinfo $(TARGET_DIR)/usr/bin/dfbinfo + $(INSTALL) $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-dfblayer $(TARGET_DIR)/usr/bin/dfblayer + $(INSTALL) $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-dfbscreen $(TARGET_DIR)/usr/bin/dfbscreen + $(INSTALL) $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-dfbinput $(TARGET_DIR)/usr/bin/dfbinput + # Copy in the DirectFB libraries + cp -dpf $(STAGING_DIR)/usr/lib/libdirect* $(TARGET_DIR)/usr/lib/ + cp -dpf $(STAGING_DIR)/usr/lib/libfusion* $(TARGET_DIR)/usr/lib/ + cp -rdpf $(STAGING_DIR)/usr/lib/directfb-1.* $(TARGET_DIR)/usr/lib/ + # Copy in the DirectFB cursor + cp -rdpf $(STAGING_DIR)/usr/share/directfb-$(DIRECTFB_VERSION) $(TARGET_DIR)/usr/share/ + # Strip the libraries + -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/dfbdump + -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/dfbg + -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/dfbinfo + -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/dfblayer + -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/dfbscreen + -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/dfbinput + -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libdirect*.so + -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libfusion*.so + +directfb: uclibc \ + $(if $(BR2_PACKAGE_FREETYPE), freetype) \ + $(if $(BR2_PACKAGE_ZLIB), zlib) \ + $(if $(BR2_PACKAGE_LIBPNG), libpng) \ + $(if $(BR2_PACKAGE_JPEG), jpeg) \ + $(if $(BR2_PACKAGE_LIBSYSFS), libsysfs) \ + $(if $(BR2_PACKAGE_TSLIB), tslib) \ + $(if $(BR2_PACKAGE_DIRECTFB_MULTI), linux-fusion) \ + $(TARGET_DIR)/usr/lib/libdirectfb.so directfb-clean: -$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(DIRECTFB_DIR) uninstall ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] Building Cairo using DirectFB 2008-08-13 10:55 ` Daniel Laird @ 2008-08-21 16:41 ` Ormund Williams 2008-08-22 7:20 ` Daniel Laird 0 siblings, 1 reply; 8+ messages in thread From: Ormund Williams @ 2008-08-21 16:41 UTC (permalink / raw) To: buildroot On Wed, 2008-08-13 at 11:55 +0100, Daniel Laird wrote: > The following patch add support for building DirectFB 1.0 or 1.2.X > It also stop auto adding packages and turns features on if people > have enabled them from menuconfig. > > Config.in | 27 ++++++-- > directfb.mk | 200 +++++++++++++++++++++++++++++++++++++++--------------------- > 2 files changed, 151 insertions(+), 76 deletions(-) > > Signed-off-by: daniel.j.laird <daniel.j.laird@nxp.com> > > diff -urN buildroot.orig/package/directfb/Config.in buildroot/package/directfb/Config.in > --- buildroot.orig/package/directfb/Config.in 2008-08-13 10:44:42.000000000 +0100 > +++ buildroot/package/directfb/Config.in 2008-08-12 11:58:15.000000000 +0100 > @@ -1,19 +1,34 @@ > config BR2_PACKAGE_DIRECTFB > bool "directfb" ...snip... > diff -urN buildroot.orig/package/directfb/directfb.mk buildroot/package/directfb/directfb.mk > --- buildroot.orig/package/directfb/directfb.mk 2008-08-13 10:44:42.000000000 +0100 > +++ buildroot/package/directfb/directfb.mk 2008-08-13 11:33:17.000000000 +0100 > @@ -3,27 +3,65 @@ > # directfb > # > ############################################################# > -#DIRECTFB_VERSION:=0.9.25.1 ...snip... > + $(if $(BR2_PACKAGE_DIRECTFB_MULTI), linux-fusion) \ > + $(TARGET_DIR)/usr/lib/libdirectfb.so > > directfb-clean: > -$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(DIRECTFB_DIR) uninstall > Thanks Daniel, I tried to apply this patch to the latest svn but it failed. I then tried to do it manually but this line fails: cp -R package/directfb/overlay$(DIRECTFB_VERSION)/* $(DIRECTFB_DIR) Are you working against the buildroot repository or a fork? Cheers __ Ormund ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] Building Cairo using DirectFB 2008-08-21 16:41 ` Ormund Williams @ 2008-08-22 7:20 ` Daniel Laird 0 siblings, 0 replies; 8+ messages in thread From: Daniel Laird @ 2008-08-22 7:20 UTC (permalink / raw) To: buildroot Yes that line would cause a problem (sorry) We are working on a local version. We tend to use overlays instead of patches as we have found it works better when trying to see what has changed when moving forward (especially with our CM system). This is a left over from that decision. I have asked for commit access to buildroot to get as much back from our NXP buildroot into mainline. There are very few changes now - the main thing is updates to packages(current and new) and that we do all our work on DirectFB. This means we are very actively testing DirectFB and DirectFB-GTK so in our tree GTK-Demo on DirectFB builds and runs whereas in mainline buildroot this does not work for us (various issues). Hopefully I will get SVN access and then start narrowing down the list of differences. In the mean time let me know if you get DirectFB etc working for you as it does for us and am happy to help Dan Ormund Williams wrote: > > On Wed, 2008-08-13 at 11:55 +0100, Daniel Laird wrote: >> The following patch add support for building DirectFB 1.0 or 1.2.X >> It also stop auto adding packages and turns features on if people >> have enabled them from menuconfig. >> >> Config.in | 27 ++++++-- >> directfb.mk | 200 >> +++++++++++++++++++++++++++++++++++++++--------------------- >> 2 files changed, 151 insertions(+), 76 deletions(-) >> >> Signed-off-by: daniel.j.laird <daniel.j.laird@nxp.com> >> >> diff -urN buildroot.orig/package/directfb/Config.in >> buildroot/package/directfb/Config.in >> --- buildroot.orig/package/directfb/Config.in 2008-08-13 >> 10:44:42.000000000 +0100 >> +++ buildroot/package/directfb/Config.in 2008-08-12 11:58:15.000000000 >> +0100 >> @@ -1,19 +1,34 @@ >> config BR2_PACKAGE_DIRECTFB >> bool "directfb" > ...snip... >> diff -urN buildroot.orig/package/directfb/directfb.mk >> buildroot/package/directfb/directfb.mk >> --- buildroot.orig/package/directfb/directfb.mk 2008-08-13 >> 10:44:42.000000000 +0100 >> +++ buildroot/package/directfb/directfb.mk 2008-08-13 11:33:17.000000000 >> +0100 >> @@ -3,27 +3,65 @@ >> # directfb >> # >> ############################################################# >> -#DIRECTFB_VERSION:=0.9.25.1 > ...snip... >> + $(if $(BR2_PACKAGE_DIRECTFB_MULTI), linux-fusion) \ >> + $(TARGET_DIR)/usr/lib/libdirectfb.so >> >> directfb-clean: >> -$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(DIRECTFB_DIR) >> uninstall >> > > Thanks Daniel, > > I tried to apply this patch to the latest svn but it failed. I then > tried to do it manually but this line fails: > cp -R package/directfb/overlay$(DIRECTFB_VERSION)/* $(DIRECTFB_DIR) > > Are you working against the buildroot repository or a fork? > > Cheers > > __ > Ormund > > > _______________________________________________ > buildroot mailing list > buildroot at uclibc.org > http://busybox.net/mailman/listinfo/buildroot > > -- View this message in context: http://www.nabble.com/Building-Cairo-using-DirectFB-tp18927643p19102617.html Sent from the BuildRoot mailing list archive at Nabble.com. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-08-22 7:20 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-08-11 15:08 [Buildroot] Building Cairo using DirectFB Ormund Williams 2008-08-12 8:48 ` Daniel Laird 2008-08-12 13:40 ` Ormund Williams 2008-08-12 14:48 ` Daniel Laird 2008-08-12 15:54 ` Ormund Williams 2008-08-13 10:55 ` Daniel Laird 2008-08-21 16:41 ` Ormund Williams 2008-08-22 7:20 ` Daniel Laird
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox