Menu

Freetype

Gianmaria
2002-09-10
2012-09-26
  • Gianmaria

    Gianmaria - 2002-09-10

    Hi, someone knows how to compile the FreeType 2 library on MingW? I havent found any tutorial, i've included in my project the ft2build.h header but i don't know what to include for linking.. i 've to compile the library to have a compatible lib?

     
    • Nobody/Anonymous

      You should not use a devc++ project to build the import library. If i remember correctly, the file INSTALL tells exactly what to do for mingw. Something like "make setup" and then "make".....and that's it. You should type this in the dos console when you are in the directory where you unzipped your download. You will end up with a blabla.a file which you should rename to libfreetype.a. Then you can place this file in the lib directory and use it iin other project by linking with -lfreetype.

      stephan

       
    • Gianmaria

      Gianmaria - 2002-09-10

      I've installed the sources, go on the main freetype2 directory and made "make setup mingw32" to set the correct configuration.
      After that i entered "make" but failed with:
      C:\Dev-Cpp\src\freetype2>make
      gcc -ansi -pedantic -I./objs -I./builds/win32 -I./include -c -g -O6 -Wall -o obj
      s/ftsystem.o src/base/ftsystem.c
      In file included from include/freetype/config/ftstdlib.h:94,
                       from include/freetype/config/ftconfig.h:44,
                       from src/base/ftsystem.c:29:
      c:/dev-cpp/bin/../lib/gcc-lib/mingw32/2.95.3-6/../../../../include/stdio.h:221:
      syntax error before `int'
      c:/dev-cpp/bin/../lib/gcc-lib/mingw32/2.95.3-6/../../../../include/stdio.h:375:
      syntax error before `int'
      make: *** [objs/ftsystem.o] Error 1

      Is some kind of directory configuration or what?

       
    • Anonymous

      Anonymous - 2002-09-10

      Weird, it was one of the few things that compiled at once for me, without any additional tweaking. I can mail it to you, but the lib is a wopping 1.4 MB and i didn't test is very much (i wanted to get SDL_ttf working, but found an easier way using pexports and dlltool instead of compiling the source).
      So i you want it i'll mail my libfreetype.a....

      stephan

       
    • Gianmaria

      Gianmaria - 2002-09-10

      oh, thanks, my mail is saviour@libero.it
      do you use the same releases of mine (Dev-C++ 4.9.5.2, mingw/gcc 2.95.3-6, make 3.79.1, freetype 2.1.2-1.

      i need freetype 2 to compile the library GLGooey (http://nwaldren.bei.t-online.de/glgooey.htm) which i want to use on my game (http://uranus.sourceforge.net)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.