INSTALL SDL_ttf

Hi Everyone,

I’m new to SDL and am trying to install it on linux. I have installed SDL
1.2.5 after fixing one compiler error, and also installed freetype 2.1.2.
Now I am trying to install SDL_ttf 2.0.6 and it won’t compile, it’s
complaining that ft_open_stream in method TTF_OpenFontIndexRW of class
SDL_ttf.c is not instantiated. Am I installing it wrong or if not, does
anyone know what type this is supposed to be? It seems to be coming from
TTF_Font FT_Open_Args struct???

Would appreciate any tips,
Julie.

Try replace it with FT_OPEN_STREAM

RafalOn 2003.08.05 08:02, Julie Russell wrote:

Hi Everyone,

I’m new to SDL and am trying to install it on linux. I have installed
SDL
1.2.5 after fixing one compiler error, and also installed freetype
2.1.2.
Now I am trying to install SDL_ttf 2.0.6 and it won’t compile, it’s
complaining that ft_open_stream in method TTF_OpenFontIndexRW of class
SDL_ttf.c is not instantiated. Am I installing it wrong or if not,
does
anyone know what type this is supposed to be? It seems to be coming
from
TTF_Font FT_Open_Args struct???

Would appreciate any tips,
Julie.

Hi,

Thanks for your response. Do you mean replace the FT_Open_Args in the
TTF_Font struct with FT_OPEN_STREAM? I tried it and it won’t compile
either. I thought that the ft_open_stream variable in the
TTF_OpenFontIndexRW would just have to be declared as some type, but I can’t
work out what. The row that is accessing it is:

font->args.flags = ft_open_stream;

ft_open_stream is not declared.

font->args is from FT_Open_Args but I can find what type flags is…

Thanks again,
Julie.

Hi,

Thanks for your response. Do you mean replace the FT_Open_Args in the
TTF_Font struct with FT_OPEN_STREAM? I tried it and it won’t compile
either. I thought that the ft_open_stream variable in the
TTF_OpenFontIndexRW would just have to be declared as some type, but I can’t
work out what. The row that is accessing it is:

font->args.flags = ft_open_stream;

Change this to:
font->args.flags = FT_OPEN_STREAM;

I’ll fix it in CVS as soon as I can figure out how to make it work with
FreeType 2.0 as well as 2.1

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

#ifndef FT_OPEN_STREAM
#define FT_OPEN_STREAM ft_open_stream
#endif

RafalOn 2003.08.06 22:48, Sam Lantinga wrote:

Hi,

Thanks for your response. Do you mean replace the FT_Open_Args in
the TTF_Font struct with FT_OPEN_STREAM? I tried it and it won’t
compile either. I thought that the ft_open_stream variable in the
TTF_OpenFontIndexRW would just have to be declared as some type,
but I can’t work out what. The row that is accessing it is:

font->args.flags = ft_open_stream;

Change this to:
font->args.flags = FT_OPEN_STREAM;

I’ll fix it in CVS as soon as I can figure out how to make it work
with FreeType 2.0 as well as 2.1

#ifndef FT_OPEN_STREAM
#define FT_OPEN_STREAM ft_open_stream
#endif

Good idea. It doesn’t work the other way, but that’s fine.

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

El mi?, 06 de 08 de 2003 a las 17:48, Sam Lantinga escribi?:

Hi,

Thanks for your response. Do you mean replace the FT_Open_Args in the
TTF_Font struct with FT_OPEN_STREAM? I tried it and it won’t compile
either. I thought that the ft_open_stream variable in the
TTF_OpenFontIndexRW would just have to be declared as some type, but I can’t
work out what. The row that is accessing it is:

font->args.flags = ft_open_stream;

Change this to:
font->args.flags = FT_OPEN_STREAM;

I’ll fix it in CVS as soon as I can figure out how to make it work with
FreeType 2.0 as well as 2.1

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

#ifdef FT_OPEN_STREAM
font->args.flags = FT_OPEN_STREAM;
#else
font->args.flags = ft_open_stream;
#endif
pirata <@pirata>

El mi?, 06 de 08 de 2003 a las 19:00, Sam Lantinga escribi?:

#ifndef FT_OPEN_STREAM
#define FT_OPEN_STREAM ft_open_stream
#endif

Good idea. It doesn’t work the other way, but that’s fine.

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Oops, I just come too late :p–
pirata <@pirata>