Compiling SDL_ttf

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
/usr/local/include/freetype2/freetype/internal/ftobjs.h:33:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:34:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:35:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:36:10: error:
#include expects “FILENAME” or
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

Hi i had the same problem

go in to the srccode of SDL_ttf and open
SDL_ttf.c and then go to line 51 an delete the include ftobjs.h

2006/11/27, Nuno Santos :>

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
/usr/local/include/freetype2/freetype/internal/ftobjs.h:33:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:34:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:35:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:36:10: error:
#include expects “FILENAME” or
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


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

Hi,

Didn’t work! Even after cleaning and configuring again… :frowning:

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
mkdir .libs
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
SDL_ttf.c: In function ‘TTF_OpenFontIndexRW’:
SDL_ttf.c:280: error: dereferencing pointer to incomplete type
make: *** [SDL_ttf.lo] Error 1Em Nov 27, 2006, ?s 6:34 PM, Vardar Sahin escreveu:

Hi i had the same problem

go in to the srccode of SDL_ttf and open
SDL_ttf.c and then go to line 51 an delete the include ftobjs.h

2006/11/27, Nuno Santos < @Nuno_Santos>:
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
/usr/local/include/freetype2/freetype/internal/ftobjs.h:33:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:34:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:35:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:36:10: error:
#include expects “FILENAME” or
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


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


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

I could use the compiled framework but i dont know what i need to do
more than included in my xcode project… Any tips?Em Nov 27, 2006, ?s 7:35 PM, Nuno Santos escreveu:

Hi,

Didn’t work! Even after cleaning and configuring again… :frowning:

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
mkdir .libs
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
SDL_ttf.c: In function ‘TTF_OpenFontIndexRW’:
SDL_ttf.c:280: error: dereferencing pointer to incomplete type
make: *** [SDL_ttf.lo] Error 1

Em Nov 27, 2006, ?s 6:34 PM, Vardar Sahin escreveu:

Hi i had the same problem

go in to the srccode of SDL_ttf and open
SDL_ttf.c and then go to line 51 an delete the include ftobjs.h

2006/11/27, Nuno Santos < @Nuno_Santos>:
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
/usr/local/include/freetype2/freetype/internal/ftobjs.h:33:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:34:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:35:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:36:10: error:
#include expects “FILENAME” or
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


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


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


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

ahh ok open the SDL_ttf.c file and go to line 280
and delete this line
stream->memory = library->memory;

now iz should compile just fine

2006/11/27, Nuno Santos :>

Hi,
Didn’t work! Even after cleaning and configuring again… :frowning:

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
mkdir .libs
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
SDL_ttf.c: In function ‘TTF_OpenFontIndexRW’:
SDL_ttf.c:280: error: dereferencing pointer to incomplete type
make: *** [SDL_ttf.lo] Error 1

Em Nov 27, 2006, ?s 6:34 PM, Vardar Sahin escreveu:

Hi i had the same problem

go in to the srccode of SDL_ttf and open
SDL_ttf.c and then go to line 51 an delete the include ftobjs.h

2006/11/27, Nuno Santos < developer at imaginando.net>:

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
/usr/local/include/freetype2/freetype/internal/ftobjs.h:33:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:34:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:35:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:36:10: error:
#include expects “FILENAME” or
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


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


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


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

Hi,

It’s working!

Thx!Em Nov 27, 2006, ?s 8:25 PM, Vardar Sahin escreveu:

ahh ok open the SDL_ttf.c file and go to line 280
and delete this line
stream->memory = library->memory;

now iz should compile just fine

2006/11/27, Nuno Santos < @Nuno_Santos>:
Hi,

Didn’t work! Even after cleaning and configuring again… :frowning:

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
mkdir .libs
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
SDL_ttf.c: In function ‘TTF_OpenFontIndexRW’:
SDL_ttf.c:280: error: dereferencing pointer to incomplete type
make: *** [SDL_ttf.lo] Error 1

Em Nov 27, 2006, ?s 6:34 PM, Vardar Sahin escreveu:

Hi i had the same problem

go in to the srccode of SDL_ttf and open
SDL_ttf.c and then go to line 51 an delete the include ftobjs.h

2006/11/27, Nuno Santos < @Nuno_Santos>:
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
/usr/local/include/freetype2/freetype/internal/ftobjs.h:33:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:34:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:35:10: error:
#include expects “FILENAME” or
/usr/local/include/freetype2/freetype/internal/ftobjs.h:36:10: error:
#include expects “FILENAME” or
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


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


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


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


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