Hi Sylvain,
Sylvain Thibault wrote:
I am using Tkx with ActivePerl 5.10 and tkkit.dll on Windows XP. I
want to use the package img::jpeg but tkkit only has PNG, ICO and XPM
support. How do I add the Img package (or any package) so that it is
accessible to Tkx. The Img package is in Tk85.dll. I have tried
Tkx::lappend('::auto_path', 'C:/Tcl/bin') C:/Tcl/bin/tk85.dll and
quite a few other combination with no success.
auto_path points to tkkit by default:
C:/Perl10/lib/auto/Tcl/tkkit.dll/lib/tcl8.5
C:/Perl10/lib/auto/Tcl/tkkit.dll/lib
C:/Perl10/lib/auto/Tcl/tkkit.dll/lib/tk8.5
C:/Perl10/lib/auto/Tcl/tkkit.dll/lib/tk8.5/ttk
I do not want to use PERL_TCL_DL_PATH as I still want to have access
to the tkkit packages.
You want to lappend to ::auto_path as shown above, but 'C:/Tcl/lib' is the
place to add. There is a way to extend the tkkit with additional modules
as well if you are familiar with Tcl's core virtual file system APIs
(needs to be done from a Tcl interpreter). I should add this info to the
tkkit docs.
Jeff
Thanks for your response Jeff,
I must be missing something.
Tkx::lappend('::auto_path', 'C:/Tcl/lib/');
DB<2> print join "\n", (Tkx::SplitList(Tkx::set('auto_path')));
C:/Perl10/lib/auto/Tcl/tkkit.dll/lib/tcl8.5
C:/Perl10/lib/auto/Tcl/tkkit.dll/lib
C:/Perl10/lib/auto/Tcl/tkkit.dll/lib/tk8.5
C:/Perl10/lib/auto/Tcl/tkkit.dll/lib/tk8.5/ttk
C:/Tcl/lib/
Tkx::package_require('img::png');
Tkx::package_require('img::jpeg');
can't find package img::jpeg at test.pl line 61.
at c:/Perl10/lib/Tkx.pm line 330
Tkx::i::call('package', 'require', 'img::jpeg') called at
c:/Perl10/lib/Tkx.pm line 51
Tkx::AUTOLOAD('img::jpeg') called at test.pl line 61
Tkx::package_require('Img") fails also.
C:/Tcl is the ActiveTcl 8.5.4 install directory.
Sylvain