[squeak-dev] Re: How to compile FreeType Plugin (FT2Plugin)?

Takashi Yamamiya tak at metatoys.org
Sun Mar 16 07:48:37 UTC 2008

Hi Bert,

Bert Freudenberg wrote:
>> (I'm curious why RomePlugin is here in olpc branch, but
>> this is a different topic).
> Because it has the Pango primitives, which we actually wanted to use. 
> Maybe one day Yoshiki finishes the image-side of things.

That's interesting.

>> But "[FREETYPE_CFLAGS]" was just copied to bld/FT2Plugin/Makefile
>> without substitution. I'm completely a beginner of autoconf, so could
>> give me a start point to learn about that? where did $FREETYPE_CFLAGS
>> come from, and how can I make it work?
> Did you remake the autoconf files? Type "make" in platforms/unix/config.

Aha, It works. Thanks!

>>> Also, why does the "freetype" subdirectory have to be listed explicitly?
>> Because freetype-config --cflags answers -I/usr/include/freetype2 but
>> tttables.h is /usr/include/freetype2/freetype.
>> FT2Plugin class >> declareCVarsIn:
>> cg addHeaderFile: '<ft2build.h>'.
>> cg addHeaderFile: '<tttables.h>'.
>> cg addHeaderFile: 'FT_FREETYPE_H'.
>> cg addHeaderFile: 'FT_OUTLINE_H'.
>> cg var: 'library' declareC: 'FT_Library library'.
>> cg var: 'errorCode' type: 'int'.
> Then I guess this should be changed to
> cg addHeaderFile: '<freetype/tttables.h>'.

Yes, It is a good idea.

- Takashi

More information about the Squeak-dev mailing list