This was covered recently in the list.
Messages 187-202.
tcltk-get.187_...@perl.org
Basically, Tkx uses tkkit.dll by default. tkkit only has PNG, ICO and XPM
img support.
So you have 2 choices:
-Link to your TCL 8.5 dlls which have the entire Img package
-Activate the package you want img::gif which is already in tkkit.dll but
not accessible.
Solution 2 is done by a script included in the thread, it creates a new
tkkit.dll
Solution 2 is the "clean" solution.
Sylvain
----- Original Message -----
From: "E.R. Uber" <eru...@gmail.com>
To: <tcltk@perl.org>
Sent: Tuesday, December 16, 2008 10:56 PM
Subject: Tkx Cannot Find Various img Packages
I am using Tkx and doing a
Tkx::package_require('img::gif')
which yields a "can't find package" error.
The same is true for 'img::jpeg' and 'img::bmp', in fact the ONLY img
packages that are successful found are 'img::png', 'img::ico' and
'img::xpm'
I am using ActivePerl 5.10 and ActiveTcl 8.5 on XP, but I get the same
errors under Fedora 9.
I see all the img packages in the tcl installation but I am wondering why
via Perl/Tkx I am only able to find some of them but not all of them.
Thanks,
E.R.