Error in SDL_ttf2 when compiled it

Today I download CVS SDL_ttf2, I got an error when compiled it.
that is my output:

/bin/sh ./libtool --mode=compile gcc -DPACKAGE=“SDL_ttf”
-DVERSION=“2.0.7” -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -I. -g
-O2 -I/usr/include/freetype2 -I/usr/local/include/SDL -D_REENTRANT
-I/usr/X11R6/include -c SDL_ttf.c
mkdir .libs
gcc -DPACKAGE=“SDL_ttf” -DVERSION=“2.0.7” -DHAVE_ALLOCA_H=1
-DHAVE_ALLOCA=1 -I. -I. -g -O2 -I/usr/include/freetype2
-I/usr/local/include/SDL -D_REENTRANT -I/usr/X11R6/include -c SDL_ttf.c
-fPIC -DPIC -o .libs/SDL_ttf.lo
SDL_ttf.c: In function TTF_OpenFontIndexRW': SDL_ttf.c:276:ft_open_stream’ undeclared (first use in this function)
SDL_ttf.c:276: (Each undeclared identifier is reported only once
SDL_ttf.c:276: for each function it appears in.)
make: *** [SDL_ttf.lo] Error 1

I installed SDL from cvs and freetype2.
My distribution is Mandrake 9.1 with all updates
What do I need to install?

thanks.

Antonio Hernandez
Augen

Hi Antonio,

I had this problem and simply edited the SDL_ttf.c file and changed it to FT_OPEN_STREAM (in caps instead), and it compiled ok. I thought this was only something to do with the version distributed with Redhat, but this looks exactly the same to me. I guess they changed the type in a release and didn’t make it backward compatible.

Hope this helps.

Lee-----Original Message-----
From: Antonio Hernandez [mailto:ahernandez at augenopticos.com]
Sent: Wed 02/07/2003 21:37
To: sdl at libsdl.org
Cc:
Subject: [SDL] error in SDL_ttf2 when compiled it

Today I download CVS SDL_ttf2, I got an error when compiled it.
that is my output:

/bin/sh ./libtool --mode=compile gcc -DPACKAGE=\"SDL_ttf\"
-DVERSION=\"2.0.7\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1  -I. -I.      -g
-O2 -I/usr/include/freetype2 -I/usr/local/include/SDL -D_REENTRANT 
-I/usr/X11R6/include -c SDL_ttf.c
mkdir .libs
gcc -DPACKAGE=\"SDL_ttf\" -DVERSION=\"2.0.7\" -DHAVE_ALLOCA_H=1
-DHAVE_ALLOCA=1 -I. -I. -g -O2 -I/usr/include/freetype2
-I/usr/local/include/SDL -D_REENTRANT -I/usr/X11R6/include -c SDL_ttf.c 
-fPIC -DPIC -o .libs/SDL_ttf.lo
SDL_ttf.c: In function `TTF_OpenFontIndexRW':
SDL_ttf.c:276: `ft_open_stream' undeclared (first use in this function)
SDL_ttf.c:276: (Each undeclared identifier is reported only once
SDL_ttf.c:276: for each function it appears in.)
make: *** [SDL_ttf.lo] Error 1

I installed SDL from cvs and freetype2.
My distribution is Mandrake 9.1 with all updates
What do I need to install?

thanks.

Antonio Hernandez
Augen


_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/ms-tnef
Size: 5110 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20030702/5d3e4d97/attachment.bin

Lee,
Yes it works, thanks

Lee Weekes wrote:>Hi Antonio,

I had this problem and simply edited the SDL_ttf.c file and changed it to FT_OPEN_STREAM (in caps instead), and it compiled ok. I thought this was only something to do with the version distributed with Redhat, but this looks exactly the same to me. I guess they changed the type in a release and didn’t make it backward compatible.

Hope this helps.

Lee

-----Original Message-----
From: Antonio Hernandez [mailto:@Antonio_Hernandez]
Sent: Wed 02/07/2003 21:37
To: sdl at libsdl.org
Cc:
Subject: [SDL] error in SDL_ttf2 when compiled it

Today I download CVS SDL_ttf2, I got an error when compiled it.
that is my output:

/bin/sh ./libtool --mode=compile gcc -DPACKAGE=“SDL_ttf”
-DVERSION=“2.0.7” -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -I. -g
-O2 -I/usr/include/freetype2 -I/usr/local/include/SDL -D_REENTRANT
-I/usr/X11R6/include -c SDL_ttf.c
mkdir .libs
gcc -DPACKAGE=“SDL_ttf” -DVERSION=“2.0.7” -DHAVE_ALLOCA_H=1
-DHAVE_ALLOCA=1 -I. -I. -g -O2 -I/usr/include/freetype2
-I/usr/local/include/SDL -D_REENTRANT -I/usr/X11R6/include -c SDL_ttf.c
-fPIC -DPIC -o .libs/SDL_ttf.lo
SDL_ttf.c: In function TTF_OpenFontIndexRW': SDL_ttf.c:276:ft_open_stream’ undeclared (first use in this function)
SDL_ttf.c:276: (Each undeclared identifier is reported only once
SDL_ttf.c:276: for each function it appears in.)
make: *** [SDL_ttf.lo] Error 1

I installed SDL from cvs and freetype2.
My distribution is Mandrake 9.1 with all updates
What do I need to install?

thanks.

Antonio Hernandez
Augen


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl