[Mono-winforms-list] cant build SVN'ed cairo on macosx

gennady wexler adyler@verizon.net
Wed, 16 Feb 2005 07:26:08 -0800


well see, this is what puzzles me. this isnt cairo who cant build with
fontconfig. if I do a make in cairo dir - I get everything building fine.

however when I try to build gdiplus lib itself, it uses cairo's sources but
doesn't appear to know anything about freetype or fontconfig.

looking at configure.in in the libgdiplus, it is missing these lines which
would let it get on with finding freetype and fontconfig properly:

if test "x$use_freetype" = "xyes"; then
  PKG_CHECK_MODULES(FONTCONFIG, fontconfig,
                    [use_freetype=yes], [use_freetype=no])
fi

GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS $FONTCONFIG_CFLAGS"
GDIPLUS_LIBS="$GDIPLUS_LIBS $FONTCONFIG_LIBS"

I just went ahead and added them at the end of the libgdiplus/configure.in
file to make this work.

do you guys agree?


> From: Dasnois Benjamin <benjamin.dasnois@gmail.com>
> Reply-To: Dasnois Benjamin <benjamin.dasnois@gmail.com>
> Date: Wed, 16 Feb 2005 13:34:35 +0100
> To: Gareth Baker <g.j.baker@dl.ac.uk>
> Cc: gennady wexler <adyler@verizon.net>, Mono-Winforms-List
> <mono-winforms-list@ximian.com>
> Subject: Re: [Mono-winforms-list] cant build SVN'ed cairo on macosx
> 
> If this is right shouldn't we add a condition at compilation time? It
> seems that support for macosx is a bit difficult, this would be a
> first step into it, no?
> 
> Best Regards
> 
> On Wed, 16 Feb 2005 08:10:31 +0000, Gareth Baker <g.j.baker@dl.ac.uk> wrote:
>> OK, just a long shot - try changing the line #include
>> <fontconfig/fontconfig.h> in cairo-ft.h to #include <fontconfig.h>. I seem
>> to remember having to do this at some point in the past (but actually not
>> recently).
>> 
>> Regards
>> Gareth Baker
>> 
>> 
>> On 16/2/05 5:02 am, "gennady wexler" <adyler@verizon.net> wrote:
>> 
>>> it actually is finding freetype2:
>>> 
>>>  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libpixman/src -I../cairo/src
>>> -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include
>>> -I/usr/local/include/freetype2 -I/usr/local/include -Wall -Werror
>>> -Wno-unused -Wno-format -no-cpp-precomp -I/sw/include -pthread -MT
>>> adjustablearrowcap.lo -MD -MP -MF .deps/adjustablearrowcap.Tpo -c
>>> adjustablearrowcap.c  -fno-common -DPIC -o .libs/adjustablearrowcap.o
>>> 
>>> just not fontconfig which is under X11R6/include, so I am still getting same
>>> error even after forcing search in X11R6/include/fontconfig path:
>>> 
>>> ../cairo/src/cairo-ft.h:45:35: fontconfig/fontconfig.h: No such file or
>>> directory
>>> In file included from gdip.h:34,
>>>                  from adjustablearrowcap.c:27:
>>> ../cairo/src/cairo-ft.h:50: error: parse error before "FcPattern"
>>> ../cairo/src/cairo-ft.h:58: error: parse error before '*' token
>>> 
>>> I do have fontconfig-devel2 installed. this is macosx10.3.8 with everything
>>> needed (apparently not all of it).
>>> 
>>> 
>>>> From: Gareth Baker <g.j.baker@dl.ac.uk>
>>>> Date: Tue, 15 Feb 2005 16:44:29 +0000
>>>> To: gennady wexler <adyler@verizon.net>, Mono-Winforms-List
>>>> <mono-winforms-list@ximian.com>
>>>> Subject: Re: [Mono-winforms-list] cant build SVN'ed cairo on macosx
>>>> 
>>>> OK, It looks as if the configure process has not found freetype, the
>>>> include
>>>> path to it on my system is /usr/X11R6/include/freetype2. There should be an
>>>> option something like --x-include=.... for configure (type ./configure
>>>> --help).
>>>> 
>>>> Hope this is of some help
>>>> Gareth Baker
>>>> 
>>>> 
>>>> On 15/2/05 3:16 pm, "gennady wexler" <adyler@verizon.net> wrote:
>>>> 
>>>>> I must be missing some etiquette here. what is it that I need to do to get
>>>>> help and attention?
>>>>> 
>>>>> thanks.
>>>>> 
>>>>> 
>>>>>> From: gennady wexler <adyler@verizon.net>
>>>>>> Date: Sun, 13 Feb 2005 13:51:33 -0800
>>>>>> To: Peter Dennis Bartok <peter@novonyx.com>,
>>>>>> <mono-winforms-list@ximian.com>
>>>>>> Subject: [Mono-winforms-list] cant build SVN'ed cairo on macosx
>>>>>> 
>>>>>> wouldn't you happen to have a cure?
>>>>>> 
>>>>>> fontconfig is installed, apparently not being searched in right place?
>>>>>> 
>>>>>>  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libpixman/src -I../cairo/src
>>>>>> -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include
>>>>>> -I/usr/local/include/freetype2 -I/usr/local/include -Wall -Werror
>>>>>> -Wno-unused -Wno-format -no-cpp-precomp -I/sw/include -pthread -MT
>>>>>> adjustablearrowcap.lo -MD -MP -MF .deps/adjustablearrowcap.Tpo -c
>>>>>> adjustablearrowcap.c  -fno-common -DPIC -o .libs/adjustablearrowcap.o
>>>>>> gcc: unrecognized option `-pthread'
>>>>>> 
>>>>>> 
>>>>>> In file included from gdip.h:34,
>>>>>>                  from adjustablearrowcap.c:27:
>>>>>> ../cairo/src/cairo-ft.h:45:35: fontconfig/fontconfig.h: No such file or
>>>>>> directory
>>>>>> In file included from gdip.h:34,
>>>>>>                  from adjustablearrowcap.c:27:
>>>>>> ../cairo/src/cairo-ft.h:50: error: parse error before "FcPattern"
>>>>>> ../cairo/src/cairo-ft.h:58: error: parse error before '*' token
>>>>>> ../cairo/src/cairo-ft.h:59: warning: type defaults to `int' in
>>>>>> declaration
>>>>>> of `cairo_ft_font_pattern'
>>>>>> ../cairo/src/cairo-ft.h:59: warning: data definition has no type or
>>>>>> storage
>>>>>> class
>>>>>> In file included from adjustablearrowcap.c:27:
>>>>>> gdip.h:791: error: parse error before "FcFontSet"
>>>>>> gdip.h:791: warning: no semicolon at end of struct or union
>>>>>> gdip.h:793: warning: type defaults to `int' in declaration of `config'
>>>>>> gdip.h:793: warning: data definition has no type or storage class
>>>>>> gdip.h:794: error: parse error before '}' token
>>>>>> gdip.h:794: warning: type defaults to `int' in declaration of
>>>>>> `GpFontCollection'
>>>>>> gdip.h:794: warning: data definition has no type or storage class
>>>>>> gdip.h:798: error: parse error before "FcPattern"
>>>>>> gdip.h:798: warning: no semicolon at end of struct or union
>>>>>> gdip.h:804: error: parse error before '}' token
>>>>>> gdip.h:804: warning: type defaults to `int' in declaration of
>>>>>> `GpFontFamily'
>>>>>> gdip.h:804: warning: data definition has no type or storage class
>>>>>> gdip.h:1112: error: parse error before '*' token
>>>>>> gdip.h:1113: error: parse error before '*' token
>>>>>> gdip.h:1114: error: parse error before '*' token
>>>>>> gdip.h:1115: warning: type defaults to `int' in declaration of
>>>>>> `GpFontFamily'
>>>>>> gdip.h:1115: error: parse error before '*' token
>>>>>> gdip.h:1116: error: parse error before '*' token
>>>>>> gdip.h:1117: error: parse error before '*' token
>>>>>> gdip.h:1118: error: parse error before '*' token
>>>>>> gdip.h:1119: error: parse error before '*' token
>>>>>> gdip.h:1120: warning: type defaults to `int' in declaration of
>>>>>> `GpFontFamily'
>>>>>> gdip.h:1120: error: parse error before '*' token
>>>>>> gdip.h:1121: warning: type defaults to `int' in declaration of
>>>>>> `GpFontFamily'
>>>>>> gdip.h:1121: error: parse error before '*' token
>>>>>> gdip.h:1122: warning: type defaults to `int' in declaration of
>>>>>> `GpFontFamily'
>>>>>> gdip.h:1122: error: parse error before '*' token
>>>>>> gdip.h:1123: warning: type defaults to `int' in declaration of
>>>>>> `GpFontFamily'
>>>>>> gdip.h:1123: error: parse error before '*' token
>>>>>> gdip.h:1124: warning: type defaults to `int' in declaration of
>>>>>> `GpFontFamily'
>>>>>> gdip.h:1124: error: parse error before '*' token
>>>>>> gdip.h:1125: error: parse error before '*' token
>>>>>> gdip.h:1126: error: parse error before '*' token
>>>>>> gdip.h:1127: error: parse error before '*' token
>>>>>> gdip.h:1131: warning: type defaults to `int' in declaration of
>>>>>> `GpFontFamily'
>>>>>> gdip.h:1131: error: parse error before '*' token
>>>>>> gdip.h:1132: error: parse error before "GpFontCollection"
>>>>>> make[2]: *** [adjustablearrowcap.lo] Error 1
>>>>>> make[1]: *** [all-recursive] Error 1
>>>>>> make: *** [all] Error 2
>>>>>> apple:/Volumes/bench/mono/svn/trunk/libgdiplus adyler$
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> _______________________________________________
>>>>>> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
>>>>>> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
>>>>> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>>>> 
>>> 
>>> 
>> 
>> _______________________________________________
>> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>> 
> 
> 
> -- 
> DASNOIS Benjamin