Version 19 of TclMagick binaries

Updated 2004-12-27 15:28:10

kroc - 17 dec 2004 : I've done TclMagick 0.43 binary package for linux x86 using Tcl/Tk 8.5.a2 headers and ImageMagick-6.1.6.

ImageMagick-6.1.6

ImageMagick-6.1.6 was built with official sources using this command:

 ./configure --prefix=/usr/local --without-perl --with-quantum-depth=8 --disable-installed --disable-shared 
 --with-gslib -without-magick-plus-plus --disable-largefile

TclMagick

TclMagick0.43 was built using this command:

 ./configure --prefix=/usr/local --with-magick=/usr/local/bin/Wand-config --with-tcl=/usr/local/lib
 -with-tk=/usr/local/lib --with-tclinclude=/usr/local/include --with-tkinclude=/usr/local/include

TclMagick sources were modified by GPS and davidw, you can download them here:

http://www.kroc.tk/TclMagick/TclMagick-0.43-static-src.tar.gz

Check do_static.sh file to see how static build was done.

Download

Binary package for linux x86: http://www.kroc.tk/TclMagick/TclMagick-0.43-linux-x86.tar.gz

Compatibility

I tried this binary package with Tclkit 8.4.8, 8.4.9 and 8.5.a2 and the only problem I've found was that TclMagick doesn't work if you load TkImg too!

2004/12/17 sheila Which platforms did you check Img compatibility on? It works for me.

2004/12/17 kroc the test was made on linux. TclMagick fails on [magicktophoto $wand $tkimage] if TkImg 1.3 is loaded with TclMagick and TkMagick (it returns an empty image).


1) Would you be willing to put these on the sourceforge TclMagick download site now and in the future if we give you access?

2) Are you able to distill a test case that demonstrates the interaction problems between TclMagick and Img? I am not sure we will be able to fix it soon, but at least we will have a record of it.

Thanks, davidw

Kroc - 2004/12/24

1) Of course, with pleasure.

2) I'll post something on TclMagick mailing list ASAP. I warned Jeff about this too.


Simple compilation Here's how I compile tclmagick to avoid a lot of problems:

    gcc -shared -DUSE_TCL_STUBS -fPIC -DUSE_TK_STUBS -DUSE_TK_STUBS -I. \
        -I/usr/local/include -L/usr/local/lib -L/usr/lib -lWand \
        -o tclmagick.so -O2 -DNDEBUG -Wl,-s TclMagick.c

It works fine with the Img extension, of course.

If you want pre-compiled binaries and examples to avoid tkmagick (which isn't needed anyway), see http://pragana.net -- Rildo Pragana

davidw - Rildo, I see on your web page that you mention some problems and bugfixes. Rolf and I do our best to make the package work as best as possible on as many platforms as possible, but we can't improve it if you don't file problem reports on sourceforge, or at least send mail to the list explaining what's wrong. I would be "muito obrigado" if you were to do so:-)

aricb writes: Rildo, in the above call to gcc, is the "-DUSE_TK_STUBS -DUSE_TK_STUBS" intentional, and if so, can you explain what it does that plain old "-DUSE_TK_STUBS" doesn't do?

Rildo Pragana - Sorry, I din't intended to start a flame war... The duplicate use of USE-TK_STUBS is just because of my lazyness. About the "simple compilation", I just found that the configure script is generating too much dependencies (more that really needed) on the library, so it is less portable that way. You notice I only link against libWand (-lWand) and that way the tclmagick extension will be able to run in systems with older glibc versions, for instance. David, I suggest you review the autoconf generating procedure, though I'm no expert in such things. Sorry for any loud noise I made...


Providing binaries is great, but let's try and find a way to get them on the official site so that there is some degree of reliability and continuity associated with them.

TkMagick isn't needed, that's one of the advantages of TclMagick over Img. However, it is convenient if you use Tk with your images!

2004/12/20 sheila I'm curious about how people handle the use of TclMagick without TkMagick. I find TkMagick to be useful because it allows me to use the results of TclMagick without requiring the intermediate step of writing to a file and then using it with an image create command. Is there another way to get around this? I preferred not to have the overhead of worrying about where I should write an intermediary file, and then cleaning it up afterwards (have to include a lot more error handling).

Rildo Pragana - You may use readblob and writeblob functions to convert magick wand images into strings suitable to use with tk image put subcommand. Please see example I included in the binaries cited above. The examples use Img because tk core only support gif and pnm image formats, and I wanted to do the same with jpegs.


One of the principle reasons I got involved with TclMagick is because of Rivet. I needed something that didn't require an X connection to function, and TclMagick was perfect because of that. I can create images for the web on the fly.