Freetype 2.3.7

 

Freetype must be built as a static library.

 

Windows

1. Open the freetype-2.3.7\builds\win32\visualc\freetype.sln project in the corresponding version of VS.

2. Select Release Multithreaded solution configuration.

3. Select Project->Properties->General->Configuration Type->Static Library (.lib)

 

 

4. Select Project->Properties->C/C++->Code Generation->Runtime Library-> Multi-threaded DLL (/MD).

 

 

If you need a debug version you can choose Multi-threaded Debug DLL (/MDd).

 

5. Select Project->Properties->Librarian->General->Output File->

 

 

6. Start the compilation.

You have built a static freetype237MT.lib library located in freetype-2.3.7-source\objs.

 

Linux

Note, that FreeType is built and used as a static library in OCCT.

cd <FREETYPE_SRC_DIR>

./configure --enable-shared=no --prefix=<FREETYPE_INSTALL_DIR>

make

make install

 

Remark:

–enable-shared=no means that only a static library will be built.

You will build and then install a static libfreetype.a library located in =/path-you-want-to install-freetype/freetype-2.3.7/lib