Version 16 of TclMagick binaries

Updated 2004-12-24 11:41:13 by kroc

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

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?


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).


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.