1
2To build the freetype library, follow these steps:
3
41) Download the FreeType source code from the following link:
5
6https://sourceforge.net/projects/freetype/files/freetype2/
7
82) Build FreeType using Microsoft Visual C++:
9Navigate to the "build/windows/vc2010" directory, which contains a Microsoft Visual C++ (MSVC) workspace for constructing the FreeType library.
10
113) Within the FreeType library, a customized version of the zlib library is present. To prevent compatibility issues with the separately included zlib library in GUIX Studio, it's better to rename all types and functions associated with the zlib library. The file "ftzconf.h" in the FreeType library facilitates this process by enabling the redefinition of types and library functions using a unique prefix, achieved through the Z_PREFIX configuration.
12
13Despite implementing these changes, certain link errors may persist. To mitigate this, additional defines are necessary:
14
15#define crc32_combine_gen     z_crc32_combine_gen
16#define crc32_combine_gen64   z_crc32_combine_gen64
17#define crc32_combine_op      z_crc32_combine_op
18#define zcalloc               z_zcalloc
19#define zcfree                z_zcfree
20#define z_errmsg              z_z_errmsg
21
224) Following these steps, you should have successfully built the FreeType library.