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.
Input the directory where source files of FreeType are located (<FREETYPE_SRC_DIR>).
cd <FREETYPE_SRC_DIR>
Run configure command.
./configure --enable-shared=no --prefix=<FREETYPE_INSTALL_DIR>
If configure command is finished successfully, perform building process.
make
If building is finished successfully, perform installation of FreeType. All binary and other files of FreeType product will be put into the directory specified by <FREETYPE_INSTALL_DIR>.
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