Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2003:
[Freeciv-Dev] Re: (PR#4195) new SDL on solaris issues
Home

[Freeciv-Dev] Re: (PR#4195) new SDL on solaris issues

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rt-guest@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#4195) new SDL on solaris issues
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 9 May 2003 15:38:28 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Fri, May 09, 2003 at 02:41:36PM -0700, Rafa? Bursig wrote:
> Dnia 2003.05.09 19:02, Raimar Falke napisa³(a):
> > On Thu, May 08, 2003 at 03:47:27PM -0700, Rafa? Bursig wrote:
> > > > 3. There is no "FT_OPEN_STREAM" defined in the Solaris freetype
> > > > header.  There is however a "ft_open_stream".  This is in
> > > > SDL_ttf.c.
> > > >
> > > And my freetype header has only FT_OPEN_STREAM but IMHO this depend
> > > on freetype version
> > > in :
> > > - 2.1.2 was ft_open_stream
> > > - 2.1.3 is FT_OPEN_STREAM ( I have it )
> > > - 2.1.4 - I don't know but rather is FT_OPEN_STREAM.
> > >
> > > this is problem of freetype libs.
> > 
> > I have here freetype-2.0.9 installed and still get this error with the
> > current CVS:
> > 
> > gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I./../include
> > -I../../common -I../../common/aicore -I../../intl -I./../agents
> > -I/usr/include/SDL -D_REENTRANT -I/usr/include/freetype2  -Wall
> > -Wpointer-arith -Wcast-align -Wmissing-prototypes
> > -Wmissing-declarations -Werror -Wstrict-prototypes -Wnested-externs
> > -g -O2 -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes
> > -Wmissing-declarations -I/usr/include/SDL -D_REENTRANT -c SDL_ttf.c
> > SDL_ttf.c: In function `TTF_OpenFontIndexRW':
> > SDL_ttf.c:281: `FT_OPEN_STREAM' undeclared (first use in this
> > function)
> > SDL_ttf.c:281: (Each undeclared identifier is reported only once
> > SDL_ttf.c:281: for each function it appears in.)
> > make[3]: *** [SDL_ttf.o] Error 1
> 
> And you will get it untill you upgrade your system to freetype >= 2.1.3 
> ( current stable is 2.1.4 )
> but if you still want use old freetype lib then chage FT_OPEN_STREAM -> 
> ft_open_stream.
> I put FT_OPEN_STREAM to code becouse newest freetype libs are better 
> and have many bugs fixed.
> 
> Other problem is that IMHO freetype developers scrue compatibility to 
> older freetype version by changing this parm in headers. If you change  
> FT_OPEN_STREAM -> ft_open_stream you could compile with older ( < 2.1.3 
> ) version but newers give you the same error "`ft_open_stream' 
> undeclared (first use in this function)".

this should be checked for in configure and #defined appropriately.

-mike



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