|
From: Maurice L. <mj...@ga...> - 2002-08-06 08:50:00
|
Alan W. Irwin writes:
> I will do a complete test of everything tomorrow to verify your changes work
> here. Also, I will try once again to get auto_path to work (this time
> spelled correctly! Last time I was using autopath which is why nothing
> worked.) Basically I am thinking of
>
> lappend auto_path /usr/local/plplot/lib/plplot5.1.0/tcl
>
> the symlink I discussed before, and a modified pkgIndex.tcl
>
> to see if the wish recipe can be simplified when plplot is installed.
My first attempt went pretty straightforward. Note everything I'm talking
about here is in the install tree.
First, pkgIndex.tcl wasn't being installed, so I copied it to
$prefix/lib/plplot5.1.0/ by hand.
pkgIndex.tcl then needed updating.. I changed the first few lines to:
if {$tcl_platform(platform) == "unix"} {
if {[info exists tcl_platform(debug)]} {
set file [file join $dir drivers tkwind_drv[info sharedlibextension]]
} else {
set file [file join $dir drivers tkwin_drv[info sharedlibextension]]
}
Then I did:
wish
% package require Plplotter
5.1.0
so all appears well so far. Note I didn't have to add anything to auto_path
b/c I have wish installed in the same local dir tree as plplot.
But then unfortunately in trying to run the demos I get:
% source runAllDemos.tcl
Unable to locate dispatch table initialization function for driver:
tkwin_drv.so.
Segmentation fault
So then I tried:
$ cd $prefix/lib/plplot5.1.0/examples/c
$ make x01c
$ x01c -dev xwin
Plplot library version: 5.1.0
Unable to locate dispatch table initialization function for driver:
xwin_drv.so.
Segmentation fault
Also using the tk driver segfaults as well. So all is not well in
install-land.
I have no idea what's going on, and didn't write the dynload code (in fact
have been using static drivers up to now), so that's probably all I will
do on this for now. I may take a look at getting the static drivers
working again (broken pretty badly now from the looks of it).
--
Maurice LeBrun mj...@ga...
Research Organization for Information Science and Technology of Japan (RIST)
|