- Go to
freetype-2.5.3\include\config
folder and openftoption.h
file. - Inside add following lines. You may do it at DLL export compilation section, or anywhere else.
#define FT_EXPORT(x) __declspec(dllexport) x
#define FT_EXPORT_DEF(x) __declspec(dllexport) x
- Open Visual Studio 2010, and load freetype.sln from the
freetype-2.5.3\builds\win32\vc2010
directory. - Open the project config, and in the General tab, change Configuration Type to Dynamic Library (.dll).
- Change the project compilation configuration to Release.
- Add following files to the project (Source Files -> Add existing). Derelict loads FT_Get_BDF_Charset_ID and provided sln file doesn't contain that file, so you need to add it. (Similarly you can add any other file if it will be needed in any more recent version of DerelictFT).
src\base\ftdbf.c
src\bzip2\ftbzip2.c
src\base\ftcid.c
###Links: DerelictFT
thanks MrSmith, as none c++ programmer this was some nice help to make things easy.
btw. it's src\base\ftbdf.c and not ftdbf.c