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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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
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?
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
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)