This post was part of my MPlayer compilation tutorial. However, FreeType 2.3.5 has become outdated, so I moved its information here.
The Freetype library depends on the iconv library, so let's install the iconv library first. Download libiconv from here. Compile libiconv as follows:
cd ~
tar xvzf libiconv-1.13.tar.gz
cd libiconv-1.13
./configure --prefix=/mingw --disable-shared
make
make install
Now that libiconv has been compiled and installed, download the Freetype2 library from here and install it as follows:
cd ~
tar xzvf freetype-2.3.5.tar.gz
cd freetype-2.3.5
./configure --prefix=/mingw --disable-shared
make
make install
If you get the following error:
In file included from C:/MinGW/MSYS/home/Johnny/freetype-2.3.5/include/freetype/config/ftstdlib.h:123,
from ./builds/unix/ftconfig.h:43,
from C:/MinGW/MSYS/home/Johnny/freetype-2.3.5/src/base/ftsystem.c:29:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdlib.h:317: error: syntax error before "double"
make: *** [/home/Johnny/freetype-2.3.5/objs/ftsystem.lo] Error 1
make the following change in line 317 of the file C:\MinGW\include\stdlib.h (change inline to __inline__):
__inline__ double __cdecl __MINGW_NOTHROW strtod (const char* __restrict__ __nptr, char** __restrict__ __endptr)
No comments:
Post a Comment