Liste des Groupes | Revenir à cl tcl |
greg <gregor.ebbing@gmx.de> wrote:that seems to be the issue. Te good news is that if tclStubsPtr is undefined, it is indeed compiled against the stubs version. SO simply relinking with the stubs linb should do.Am 29.06.24 um 00:07 schrieb Andreas Leitgeb:I gave it another try afterall - with graphicsmagick.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 switched to graphicsmagick.Ok, did that, too...
(This also removes imagemagick)
#tcl-dev and tk-dev are already installed
apt install graphicsmagick-imagemagick-compat
apt install graphicsmagick-libmagick-dev-compat
Downloaded the graphicsmagick source and created the TclMagickYou seem to have found a version 0.46 ...
subdirectory from it
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):
./configureWith 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 installbuild-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:Expected
$ 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...You can force-add a linker line to configure, usually like this:
Adding --with-tcl=/path/to/tcl8.6.14/unix to configure also didn't
change anything.
Les messages affichés proviennent d'usenet.