Building the freetype DLL & LIB Windows 32 version for the Windows OpenJDK Compiling.
- Download it from https://www.freetype.org/
- Or sourceforge http://sourceforge.net/projects/freetype/files/
- freetype-2.3.5 at least
- The default Windows building VS solution is "/builds/windows/vc2010/freetype.sln" (I built it via VS 2015)
- The default VS solution and source code are created for static library.
We need update below 2 items for change it to .DLL:
The project config and the General tab, change configuration type to "Dynamic Library (.dll)".
NOTES: Select your configuration to "Release Multithread" + "Windows 32" first. The default freetype Windows code is created for static library. We need change the dll export declare macro in the .h file.
For freetype-2.3.5: The file is "ftconfig.h". Below items need to update: *** ChangeFT_EXPORTto#define FT_EXPORT(x) __declspec(dllexport) x*** ChangeFT_BASEto#define FT_BASE(x) __declspec(dllexport) x
- Select the "Release Multithread" + "Windows 32" configuration and build it.
- The default output folder is "/objs/win32/vc2010"
thank