[SDL] Compiling SDL_ttf

Nuno Santos developer at imaginando.net
Mon Nov 27 05:12:01 PST 2006


Hi,

I'm trying to compile SDL_ttf. For that i have first compiled  
freetype and sdl.

Now that i'm building SDL_ttf i have the following error which i dont  
understand why is happening. I have tried to force configure to find  
freetype but without sucess.

Where can i be failing?

MACKIE:~/Desktop/SDL_ttf-2.0.8 lpx$ make
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"\" - 
DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" - 
DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL_ttf\" -DVERSION=\"2.0.8\" - 
DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 - 
DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 - 
DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 - 
DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1  - 
I. -I.     -g -O2 -I/usr/local/include/freetype2 -I/usr/local/include  
-I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -DHAVE_OPENGL  
-MT SDL_ttf.lo -MD -MP -MF ".deps/SDL_ttf.Tpo" -c -o SDL_ttf.lo  
SDL_ttf.c; \
then mv -f ".deps/SDL_ttf.Tpo" ".deps/SDL_ttf.Plo"; else rm -f ".deps/ 
SDL_ttf.Tpo"; exit 1; fi
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"  
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL_ttf\" - 
DVERSION=\"2.0.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 - 
DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 - 
DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 - 
DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1  
-DHAVE_ALLOCA=1 -I. -I. -g -O2 -I/usr/local/include/freetype2 -I/usr/ 
local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE  
-DHAVE_OPENGL -MT SDL_ttf.lo -MD -MP -MF .deps/SDL_ttf.Tpo -c  
SDL_ttf.c  -fno-common -DPIC -o .libs/SDL_ttf.o
In file included from SDL_ttf.c:51:
/usr/local/include/freetype2/freetype/internal/ftobjs.h:32:10: error:  
#include expects "FILENAME" or <FILENAME>
/usr/local/include/freetype2/freetype/internal/ftobjs.h:33:10: error:  
#include expects "FILENAME" or <FILENAME>
/usr/local/include/freetype2/freetype/internal/ftobjs.h:34:10: error:  
#include expects "FILENAME" or <FILENAME>
/usr/local/include/freetype2/freetype/internal/ftobjs.h:35:10: error:  
#include expects "FILENAME" or <FILENAME>
/usr/local/include/freetype2/freetype/internal/ftobjs.h:36:10: error:  
#include expects "FILENAME" or <FILENAME>
In file included from SDL_ttf.c:51:
/usr/local/include/freetype2/freetype/internal/ftobjs.h:224: error:  
parse error before 'FT_ServiceCacheRec'
/usr/local/include/freetype2/freetype/internal/ftobjs.h:224: warning:  
no semicolon at end of struct or union
/usr/local/include/freetype2/freetype/internal/ftobjs.h:230: warning:  
data definition has no type or storage class
/usr/local/include/freetype2/freetype/internal/ftobjs.h:271: error:  
parse error before 'FT_GlyphLoader'
/usr/local/include/freetype2/freetype/internal/ftobjs.h:271: warning:  
no semicolon at end of struct or union
/usr/local/include/freetype2/freetype/internal/ftobjs.h:278: error:  
parse error before '}' token
/usr/local/include/freetype2/freetype/internal/ftobjs.h:278: warning:  
data definition has no type or storage class
/usr/local/include/freetype2/freetype/internal/ftobjs.h:595: error:  
parse error before 'FT_Driver_Class'
/usr/local/include/freetype2/freetype/internal/ftobjs.h:595: warning:  
no semicolon at end of struct or union
/usr/local/include/freetype2/freetype/internal/ftobjs.h:600: error:  
parse error before 'glyph_loader'
/usr/local/include/freetype2/freetype/internal/ftobjs.h:600: warning:  
data definition has no type or storage class
/usr/local/include/freetype2/freetype/internal/ftobjs.h:602: warning:  
data definition has no type or storage class
make: *** [SDL_ttf.lo] Error 1
MACKIE:~/Desktop/SDL_ttf-2.0.8 lpx$

Thx

Best regards,

Nuno Santos




More information about the SDL mailing list