From: Vince D. <vi...@sa...> - 2002-07-11 15:08:26
|
What you need to do to make this all seamless now is install everything that Plplot wants in a place where Tcl can see it through its normal package mechanism. This means you want to install a bunch of stuff into the directory returned by: wish % file join [file dirname [info library]] plplot5.1.0 perhaps /usr/local/tcl/lib/plplot5.1.0 or something like that? Anyway, the stuff that goes in there is: (see sys/win-tk/makefile.vc's 'install' target for details): *.map *.fnt tk/plcolor.tcl tk/plplot.tcl tk/pldefaults.tcl tk/pltools.tcl tk/plwidget.tcl tk-x-plat/*.tcl tk-x-plat/tclIndex as well as the shared library you have created. You may also need to edit 'pkgIndex.tcl' so that this stuff: if {[info exists tcl_platform(debug)]} { set file [file join $dir plplot510d[info sharedlibextension]] } else { set file [file join $dir plplot510[info sharedlibextension]] } Assuming you install all of this, then you should just be able to do: wish % package require Plplotter 5.1.0 % plframe .p .p % pack .p or simply: wish runAllDemos.tcl cheers, Vince. |