Re: is there an image package that doesn't require Tk ?

Liste des GroupesRevenir à cl tcl 
Sujet : Re: is there an image package that doesn't require Tk ?
De : auriocus (at) *nospam* gmx.de (Christian Gollwitzer)
Groupes : comp.lang.tcl
Date : 01. Jul 2024, 13:19:28
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v5u6sh$12nou$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
Am 30.06.24 um 21:05 schrieb Andreas Leitgeb:
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.
 
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.

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
%
Expected
 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.
You can force-add a linker line to configure, usually like this:
LIBS="-ltclstub8.5" LDFLAGS="-L<path_to_tclstub>" ./configure ...yourotheroptions....
If you need to tweak the LIBS and LDFLAGS this should bail out early when trying to compile test programs.
           Christian

Date Sujet#  Auteur
27 Jun 24 * is there an image package that doesn't require Tk ?17Andreas Leitgeb
27 Jun 24 +- Re: is there an image package that doesn't require Tk ?1ted@loft.tnolan.com (Ted Nolan
27 Jun 24 +- Re: is there an image package that doesn't require Tk ?1Harald Oehlmann
27 Jun 24 +- Re: is there an image package that doesn't require Tk ?1Paul Obermeier
27 Jun 24 +* Re: is there an image package that doesn't require Tk ?3greg
28 Jun 24 i+- Re: is there an image package that doesn't require Tk ?1Harald Oehlmann
28 Jun 24 i`- Re: is there an image package that doesn't require Tk ?1greg
28 Jun 24 `* Re: is there an image package that doesn't require Tk ?10Andreas Leitgeb
29 Jun 24  +- Re: is there an image package that doesn't require Tk ?1ted@loft.tnolan.com (Ted Nolan
29 Jun 24  +* Re: is there an image package that doesn't require Tk ?7greg
30 Jun 24  i`* Re: is there an image package that doesn't require Tk ?6Andreas Leitgeb
30 Jun 24  i +* Re: is there an image package that doesn't require Tk ?4greg
1 Jul 24  i i`* Re: is there an image package that doesn't require Tk ?3Andreas Leitgeb
2 Jul 24  i i `* Re: is there an image package that doesn't require Tk ?2greg
3 Jul 24  i i  `- Re: is there an image package that doesn't require Tk ?1Andreas Leitgeb
1 Jul 24  i `- Re: is there an image package that doesn't require Tk ?1Christian Gollwitzer
30 Jun 24  `- Re: is there an image package that doesn't require Tk ?1Andreas Leitgeb

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal