Hi,

thanks! I can confirm that your fix works here for me.

Am 30.12.2013 20:19, schrieb Dan Dennedy:
>
> What a major pain. This alone fails because we are using pkg-config
> --cflags pangoft2:
>
> diff --git a/src/modules/gtk2/producer_pango.c
> b/src/modules/gtk2/producer_pango.c
> index 4969dd2..ba902bd 100644
> --- a/src/modules/gtk2/producer_pango.c
> +++ b/src/modules/gtk2/producer_pango.c
> @@ -25,7 +25,7 @@
>   #include <string.h>
>   #include <gdk-pixbuf/gdk-pixbuf.h>
>   #include <pango/pangoft2.h>
> -#include <freetype/freetype.h>
> +#include <freetype.h>
>   #include <iconv.h>
>   #include <pthread.h>
>   #include <ctype.h>
>
> Adding pkg-config --cflags freetype2 does not help on any of my other
> systems because of that old freetype subdirectory. So, I have to
> resort to this ugly hack because `pkg-config --cflags-only-I
> freetype2` (assuming it only ever outputs one -I) has a trailing
> space:
>
> diff --git a/src/modules/gtk2/Makefile b/src/modules/gtk2/Makefile
> index b4fb3ff..4a3f5cb 100644
> --- a/src/modules/gtk2/Makefile
> +++ b/src/modules/gtk2/Makefile
> @@ -35,6 +35,7 @@ endif
>   ifdef USE_PANGO
>   OBJS += producer_pango.o
>   CFLAGS += `pkg-config $(PKGCONFIG_PREFIX) --cflags pangoft2`
> +CFLAGS += `pkg-config --cflags-only-I freetype2 | sed 's/ *$$//g')`/freetype
>   LDFLAGS += `pkg-config $(PKGCONFIG_PREFIX) --libs pangoft2`
>   ifeq ($(targetos),Darwin)
>   LDFLAGS += -liconv
>
>


-- 
/*
Mit freundlichem Gruß / With kind regards,
  Patrick Matthäi
  GNU/Linux Debian Developer

   Blog: http://www.linux-dev.org/
E-Mail: pmatth...@debian.org
         patr...@linux-dev.org
*/

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to