Sujet : Re: is there an image package that doesn't require Tk ?
De : avl (at) *nospam* logic.at (Andreas Leitgeb)
Groupes : comp.lang.tclDate : 30. Jun 2024, 20:05:02
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <slrnv83b2u.3gvbf.avl@logic.at>
References : 1 2 3
User-Agent : slrn/1.0.3 (Linux)
greg <
gregor.ebbing@gmx.de> wrote:
Am 29.06.24 um 00:07 schrieb Andreas Leitgeb:
http://www.graphicsmagick.org/TclMagick/doc/TclMagick.html
https://wiki.tcl-lang.org/page/TclMagick
I got it to configure it
(--with-magick=/usr/lib/x86_64-linux-gnu/ImageMagick-6.9.11/bin-q16/MagickWand-config)
compile and install "apparently" successfully, but "package require TclMagick"
spews out:
couldn't load file "/usr/local/lib/TclMagick0.45/libTclMagick.so":
/usr/local/lib/TclMagick0.45/libTclMagick.so: undefined symbol:
tclStubsPtr
I gave it another try afterall - with graphicsmagick.
I switched to graphicsmagick.
(This also removes imagemagick)
#tcl-dev and tk-dev are already installed
apt install graphicsmagick-imagemagick-compat
apt install graphicsmagick-libmagick-dev-compat
Ok, did that, too...
Downloaded the graphicsmagick source and created the TclMagick
subdirectory from it
You seem to have found a version 0.46 ...
The link to sourceforge seems to offer only 0.40 to 0.45 (all
from year 2005) and their cvs servers seem no longer active
(connection timeout after about 2 minutes)
So, please, let me know where you got 0.46 from.
With 0.45, this is what I get (now with graphicsmagick):
./configure
With those graphicsmagick packages installed, there existed now
an executable /usr/bin/Wand-config which I had to pass to configure
as: --with-magick=/usr/bin/Wand-config
(otherwise, configure would abort with "configure: error: You must
specify the Graphics/ImageMagick-config script with --with-magick!")
make install
build-process emits a big number of warnings, about sign-conversions...
but it seems to end with success.
This is the line that creates the dynamic lib:
gcc -shared .libs/libTclMagick_la-TclMagick.o -L/usr/lib -ldl
-lGraphicsMagickWand -lGraphicsMagick -ljbig -lwebp -lwebpmux -lheif
-lde265 -llcms2 -ltiff -lfreetype -ljpeg -lpng16 -lwmflite -lXext -lSM
-lICE -lX11 -llzma -lbz2 -lxml2 -lz -lzstd -lm -lpthread -lgomp
-Wl,-Bsymbolic-functions -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-soname
-Wl,libTclMagick.so.0 -o .libs/libTclMagick.so.0.0.0
To my surprise, this neither links to stubs nor to any -ltcl at all.
But still:
$ tclsh
% package require TclMagick
couldn't load file "/usr/local/lib/TclMagick0.45/libTclMagick.so":
/usr/local/lib/TclMagick0.45/libTclMagick.so: undefined symbol:
tclStubsPtr
%
I don't see how I could change any linking to stubs...
Adding --with-tcl=/path/to/tcl8.6.14/unix to configure also didn't
change anything.
#a example
#http://www.neatware.com/myrmecox/studio/ex_tclmagick.html