|
From: Alan W. I. <ir...@be...> - 2002-07-11 17:56:16
|
On my current system under wish and after
load libplplotd.so.5.1.0 Plplotter
% file join [file dirname [info library]] plplot5.1.0
/usr/lib/plplot5.1.0
Later, we install many of our files including the tk/tcl ones into the
$prefix/lib/plplot5.1.0 tree. In my case prefix is /usr/local/plplot so
that is not compatible with the above result. But that is a separate issue
which we will have to sort out eventually.
For now, the question is how to get everything to work in plplot/tmp. If
wish is looking for stuff in /usr/lib/plplot5.1.0, then it is not going to
find anything. Like before, I believe it is a question of somehow putting
the current directory "." on the list of directories that it searches.
Alan
email: ir...@be...
phone: 250-727-2902 FAX: 250-721-7715
snail-mail:
Dr. Alan W. Irwin
Department of Physics and Astronomy,
University of Victoria, P.O. Box 3055,
Victoria, British Columbia, Canada, V8W 3P6
__________________________
Linux-powered astrophysics
__________________________
On Thu, 11 Jul 2002, Vince Darley wrote:
> 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.
>
>
>
>
>
>
|