|
From: Alan W. I. <ir...@be...> - 2002-08-05 19:12:55
|
First, thanks for the plplotter.c changes. It now compiles without the fatal
error (but with the warnings as you suggested would occur for tcl8.3). I
did the usual wish test in the plplot/tmp area, and it worked fine.
Second, I then installed everything. Also I created a symbolic link so that
ls -l /usr/local/plplot/lib/libtkwind.so
lrwxrwxrwx 1 software software 55 Aug 5 11:27 /usr/local/plplot/lib/libtkwind.so -> /usr/local/plplot/lib/plplot5.1.0/drivers/tkwind_drv.so
I then changed your latest pkgIndex.tcl so the two relevant lines read
grep libtkwin /usr/local/plplot/lib/plplot5.1.0/tcl/pkgIndex.tcl
set file [file join $dir ../.. libtkwind[info sharedlibextension]]
set file [file join $dir ../.. libtkwind[info sharedlibextension]]
(Note the "d" suffix has nothing to do with debugging so more changes are
required in this file. Instead it marks the libraries and drivers as
double-precision versions (which is the case for me. Nevertheless, let's
not worry about it for now. I can just hack this to do what I want locally
for now, and we can figure out the configuration issues later.) For example,
I added an extra "../" and dropped drivers from the list of joined symbols
because I wanted to point to the symlink above in /usr/local/plplot/lib.
However, no matter how I fiddle with these two lines, I always get
the following error message:
wish
% set autopath /usr/local/plplot/lib/plplot5.1.0/tcl
/usr/local/plplot/lib/plplot5.1.0/tcl
% package require Plplotter
can't find package Plplotter
As far as I can see the above set file command should work (and many other
variants I tried), but I think it is never being executed. As an experiment
I put in a puts $file command in
/usr/local/plplot/lib/plplot5.1.0/tcl/pkgIndex.tcl, but package require
PLplotter never output that value of the file variable.
Perhaps autopath does not work like you thought? If I attempt to puts
$autopath from wish before I define it above it tells me it is undefined.
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 Mon, 5 Aug 2002, Vince Darley wrote:
> On Mon, 5 Aug 2002, Alan W. Irwin wrote:
> > >From what you say below, it seems to me you could just tell the user
> > (or configure the examples) to set autopath
> > to
> >
> > set autopath $prefix/lib/plplot5.1.0/tcl
>
> Yes, not the most helpful to the user but it would work. Perhaps we can
> add to the plplot documentation that users can add the above to their
> .wishrc file.
>
> I've checked in a version of pkgIndex.tcl which, if installed in the above
> location, will try to load ../drivers/libtkwin[d].so -- please give it a
> test.
>
> cheers,
>
> Vince.
>
>
>
|