Figured it out.
Installing cl-freetype2 via quicklisp requires fully functional installation of MinGW.
- Ensure that mingw-gmp is installed. (
mingw-get install gmp
) - Ensure that mingw/bin directory is within system path (right click on "My Computer"->Properties->Advanced->Environment Variables). Is Set. Should be something like "D:/development/MinGW/bin " (assuming MinGW is installed in "d:/development").
- Locate "grovel.lisp" within your ccl installation, and replace ""c:/msys/1.0/bin/gcc.exe" with "gcc". You don't have to do that if gcc is installed at this location.
- Launch mingw shell.
- download unpack and install latest Freetype2 tarball using ".configure && make && make install", similarly to unix enviornment.
- Locate
freetype-6.dll
copy it intofreetype.dll
and movefreetype.dll
into location within system path. - (Assuming that MinGW is installed in "d:/development/MinGW"), create CPATH user environment variable with following context:
D:\development\MinGW\msys\1.0\local\include\freetype2;D:\development\MinGW\msys\1.0\local\include
. That is - if you didn't specify "/usr" prefix during freetype2 compilation. - From within mingw shell, launch wx86cl and try
(ql:quickload "cl-freetype2")
. It should work properly. - If it still doesn't work, in all your root drives create directory junctions to directory in which mingw is installed. (i.e. "c:/development" linking to "d:/development", etc).
I must admit that this was much hassle, so I still think that it'll be a better idea to make a small dll that provides minimal set of functions I need while using freetype internally, then load this dll using cffi. This should be much easier.