I've been looking at several packages such as TclFltk. I've decided that
one is not for me, but as part of that exploration I looked at some
other graphics extensions. I re-discovered TclMagick at the
GraphicsMagic site.
The last time I played with it was for v0.45 in 2006. I built it on
FreeBSD at the time. It's since been moved to the GraphicsMagick site
and the version bumped to 0.46. I suspect that not much has been done
with it and the documentation is pretty sparse. GraphicsMagick (and
ImageMagick) are very capable though so I thought TclMagick would be a
very useful Tcl extension.
I could not find a binary distribution...
So I've managed to compile TclMagick for Tcl 8.6.6 on win7x64 using
Msys2's 64-bit MinGw gcc tool chain. It was a pain -- TclMagick does not
come with the GraphicsMagick windows installer and I suspect that not
much work has gone into maintaining the extension. I had to replace the
tcl.m4 and regenerate the autoconf stuff for TclMagick. At least with
this, libtool (how I hate libtool!) managed to compile but cannot create
the DLL's and issues a nonsense error. At least it does not terminate
the build.
For the build, I've got the following 64-bit libraries installed:
mingw-w64-x86_64-freetype (needed to build but final DLLs use
included version)
mingw-w64-x86_64-libjpeg-turbo
mingw-w64-x86_64-libpng
mingw-w64-x86_64-libtiff
mingw-w64-x86_64-zlib
As I wanted DLLs that do not depend on and Msys2's DLLs, I built
statically linked versions. That required a build of freetype (which is
supplied in the source tree).
Anyway, I'm certainly willing to share my script that builds the whole
thing. I noticed the wiki page
http://wiki.tcl.tk/9775 but it seems
rather obsolete -- for instance, I had to redo the first example. I've
got a resource file and made an .ICO from one of the images in the
GraphicsMagick distribution so I cannot just put them on a wiki page.
--
computerjock AT mail DOT com