[tcltk-perl] Tcl::Tk and Tcl/Tk files within Perl installation
Brought to you by:
hobbs
From: Konovalov, V. <vko...@sp...> - 2004-10-12 15:09:42
|
While playing with Perl and Tcl::Tk module on Win32, I discovered that it is relatively easy to build Tcl.dll (derived from Tcl.xs) that contains entire Tcl/Tk binaries. (all my experiments are on Win32 for now) I built tcl and tk statically, and then specified those libraries in Makefile.PL, so I got large Tcl.dll and it worked. It was easy to arrange so that Tcl/Tk gets all scripts from zipped archive "tcltk.zip" So I ended with about 3 or 4 files for entire Perl + Tk. Adding Tix makes only one file more (tix8184.dll) and tcltk.zip becomes a bit larger. All pure-Tcl extension go to that "tcltk.zip" I did it further: after few touches in Perl's makefile it is possible to embed extension into perl.dll (it was possible earlier, and I mostly restored and extended such a possibility) So I have 2Mbyte perl58.dll that contains Perl itself, Tcl/Tk, and some Perl extensions (Compress::Zlib for example). I'll perform many cleanup and will describe in manual pages somehow. Why do I write all this? 1. to let you know it is available. Will share any knowledge on this on request. 2. it could be reasonable to decide what "official" way of doing things is. Having only limited set of files in module's distribution is a great plus. 3. Besides Win32, there are many other platforms to do. Although I can do some minimal testing and development on Linux and FreeBSD, I will need advices from experts for sure. Timeline for completing this on Win32 (including description/documentation) is few weeks or several weeks (as usual). Best regards, Vadim. |