Compiling FreeType to DLL (as opposed to static library)
See the question and my original answer on StackOverflowIf you're ok with an old version (march 2008), you can go to FreeType for Windows page, download the latest Binaries package, open the .ZIP, and extract FreeType6.dll from the bin directory. Just rename it appropriately.
If you need a more recent version, here is how you can compile the latest:
download the latest source (2.4.6 as of today) from http://sourceforge.net/projects/freetype/files/freetype2/
open Visual Studio 2010, and load
freetype.slnfrom thebuilds\win32\vc2010directory.open the project config, and in the
Generaltab, changeConfiguration TypetoDynamic Library (.dll)open the
ftoption.hfile, and add these lines (near the "DLL export compilation" remarks section for example):#define FT_EXPORT(x) __declspec(dllexport) x #define FT_BASE(x) __declspec(dllexport) xchange the project compilation configuration to "Release".
compile the project. You should now have a
freetype246.dllin theobjs\win32\vc2010directory.