Thanks for the pointer Brian - I think you're right as manually trying the following works:
gcc -c -DFT2_BUILD_LIBRARY -Isrc\autofit -Iinclude -oobjs\autofit.o src\autofit\autofit.c I guess my next question is how to get FTJam to include this define itself. The Jamfile has "DEFINES += FT2_BUILD_LIBRARY ;" in it but it looks like it's not having the right effect. I've never used Jam before so if anyone can shed any more light on this then that would be great. Simon. On 5/22/06, Brian Weed <[EMAIL PROTECTED]> wrote:
Off the top of my head, it sounds like its missing compiler define (probably FT2_BUILD_LIBRARY, which will cause the ones you need to be defined) Brian Simon Watson wrote: > I'm trying to build Freetype 2.2.1 on Win32 (XP SP2) with MinGW. I > thought that using Jam would be the easiest way but I'm not getting > very far. > > I've unzipped ft221.zip, installed jam.exe in my path (from > ftjam-2.3.5-win32.zip), and installed MinGW 3.1.0-1. From the command > prompt, I've set MINGW to be the correct install path and set > JAM_TOOLSET=MINGW. > > When I run jam from the freetype-2.2.1 directory I get a mass of > errors, the first of which are: > > Compiler is GCC with Mingw > warning: unknown rule Glob > ...found 411 targets... > ...updating 39 targets... > Cc objs\autofit.o > In file included from src/autofit/afangles.c:20, > from src/autofit/autofit.c:21: > src/autofit/aftypes.h:42:10: #include expects "FILENAME" or <FILENAME> > src/autofit/aftypes.h:43:10: #include expects "FILENAME" or <FILENAME> > In file included from src/autofit/afloader.c:19, > from src/autofit/autofit.c:27: > src/autofit/afloader.h:32: parse error before "FT_GlyphLoader" > src/autofit/afloader.h:32: warning: no semicolon at end of struct or > union > src/autofit/afloader.h:42: parse error before '}' token > src/autofit/afloader.h:42: warning: data definition has no type or > storage class > > So, I'm thinking there's something basic that I've missed but, after > searching the archives and Googling, I'm none the wiser. It's driving > me mad so any help/suggestions would be much appreciated! > > Simon. > > > _______________________________________________ > Freetype mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/freetype >
_______________________________________________ Freetype mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/freetype
