I'm working on windows 7 64bit system using clozure cl (version 1.8-r15286m) with quicklisp installed.
I need some freetype2 bindings for common lisp. (map characters to glyphs + kerning info)
I've tried to install "cl-freetype2" using
(ql:quickload "cl-freetype")
from 32bit clozure cl, and I've run into several problems.
quicklisp/software/cffi_0.11.1/grovel/grovel.lisp
) assumes that I have gcc installed at "c:/msys/1.0/bin/gcc.exe" (I have mingw-gcc in path, but not there). Fixed by replacing "c:/msys/1.0/bin/gcc.exe" with "gcc" in "grovel.lisp".-i"d:/somedir"
it passes -i"/somedir"
to gcc`).I cannot fix #2 myself. I found this discussions, tried both listed patches, and neither of them worked. (first one breaks cffi, because ccl can't find neither "namestring-prefix" function nor "pathname-prefix" function), second one does not fix the problem.
What can I do in this situation? I'd prefer to avoid fixing "groveller" myself, I simply need some bindings for freetype2. Basically, I need to be able to
Any ideas?
Figured it out.
Installing cl-freetype2 via quicklisp requires fully functional installation of MinGW.
mingw-get install gmp
)freetype-6.dll
copy it into freetype.dll
and move freetype.dll
into location within system path.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.(ql:quickload "cl-freetype2")
. It should work properly.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.