discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUstep with Cairo backend problem


From: Fred Kiefer
Subject: Re: GNUstep with Cairo backend problem
Date: Sun, 19 Feb 2006 22:13:46 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050921

Chris Vetter wrote:
> Ok, here we go...
> 
> On 2006-02-18 14:42:12 +0100 Chris Vetter <address@hidden> wrote:
>> I meant that whether you set --disable-glitz or not, back-cairo won't
>> work (or to be more exact: I can't really say) because...
> 
> As a side node, I use a self-made script that iterates through all the
> core- directories, configures, compiles and installs all components. For
> backends, --disable-glitz is NOT used, only --enable-graphics and
> --with-name.
> However, it doesn't matter whether glitz is disabled or not, back-xlib
> and -art compile fine in both cases, -cairo stops.
> See below.
> 

The other backends are not effected by the --disable-glitz option. Just
use it for the cairo backend. You will get other errors later on, if you
don't set this option.

If this makes it easier for you, we could remove the glitz support from
the configuration for now. But what is so bad about using the option?

>> ... with back-cairo compilation will always fail due to an error message
>>  similar to
>> "you need to specify #include "FILENAME" or #include <FILENAME>"
>> when trying to include any freetype related headers.
>> I'll send a more detailed error message when I next update -back.
>> Right now I'm not going to update because the latest changes to base
>> in SVN will break GNUMail. I almost lost two years worth of mail to
>> that, which I cannot afford.
> 
>   [...]
>   Making all for subproject cairo...
>   Compiling file CairoSurface.m ...
>   CairoSurface.m:80: warning: '_OBJC_INSTANCE_0' defined but not used
>   Compiling file CairoFontInfo.m ...
>   In file included from ../../Headers/cairo/CairoFaceInfo.h:29,
>                  from ../../Headers/cairo/CairoFontInfo.h:27,
>                  from CairoFontInfo.m:25:
>   /usr/local/include/cairo/cairo-ft.h:48:10: error: #include expects
> "FILENAME" or <FILENAME>
>   In file included from ../../Headers/cairo/CairoFaceInfo.h:29,
>                  from ../../Headers/cairo/CairoFontInfo.h:27,
>                  from CairoFontInfo.m:25:
>   /usr/local/include/cairo/cairo-ft.h:60: error: expected ')' before 'face'
>   /usr/local/include/cairo/cairo-ft.h:64: error: expected '=', ',', ';',
> 'asm' or '__attribute__' before 'cairo_ft_scaled_font_lock_face'
>   CairoFontInfo.m: In function '_cairo_extents_for_NSGlyph':
>   CairoFontInfo.m:180: warning: implicit declaration of function
> 'cairo_scaled_font_text_extents'
>   gmake[3]: *** [shared_obj/CairoFontInfo.o] Error 1
>   gmake[2]: *** [cairo.all.subproject.variables] Error 2
>   gmake[1]: *** [libgnustep-cairo-010.all.bundle.variables] Error 2
>   gmake: *** [internal-all] Error 2
> 
> Line 48 of cairo-ft.h reads
>   #include FT_FREETYPE_H
> 

Now here we got two independent errors. One is about the missing
function cairo_scaled_font_text_extents, of which I have already
explained  that it was only added in January. If you cannot upgrade to a
current cairo version, the GNUstep code wont compile.
The other problem is about the freetype configuration on your machine,
which seems to be broken. A few lines above the cited one cairo-ft.h
includes ft2build.h, which is some clever redirect to the actual
freetype2 header file ftheader.h. In there you will find a line saying:

#define FT_FREETYPE_H  <freetype/freetype.h>

Now one step in this row must be broken on your machine. Perhaps there
is no development environment for freetype installed? Or more likely
there are two of them and they are mixed? Or it somehow did get broken?







reply via email to

[Prev in Thread] Current Thread [Next in Thread]