RE: [tcltk-perl] RE: Tcl-Tk-0.77
Brought to you by:
hobbs
From: Jeff H. <je...@Ac...> - 2004-04-19 18:15:49
|
> BTW it would be good to develope a feature when Tcl/Tk=20 > binaries, that Tcl::Tk use, could live in any directories, so=20 > to ease creating of distributions that could be moved and=20 > executed without requiring TCL to be installed (it is really=20 > easy and I use this at work). Can you elaborate on what you mean here? I think I understand it to mean relocatable shared libs on any platform, but I'm not quite sure. I've thought about having an optional configuration option for Tcl::Tk that uses the stubs libraries. It is a bit tricky, but then it would operate like the Tcl browser plugin. There would be no implicit dependencies on a particular set of Tcl/Tk dlls. Instead you would start up and then try to load the Tcl and Tk dlls based on a set of heuristics. This frees you from a) implicit dll tiedown b) version dependency (can use Tcl 8.5 even if compiled for 8.4) c) location dependency (see the npWin.c to see how I allow for several locations) NpCreateMainInterp: http://cvs.sourceforge.net/viewcvs.py/*checkout*/tclplugin/tclplugin/gene= ric/ npInterp.c?content-type=3Dtext%2Fplain&rev=3D1.6 NpLoadLibrary: http://cvs.sourceforge.net/viewcvs.py/*checkout*/tclplugin/tclplugin/win/= npWi n.c?content-type=3Dtext%2Fplain&rev=3D1.7 This would go in Tcl.xs:BOOT Jeff |