From: Alan W. I. <ir...@be...> - 2002-08-06 16:34:05
|
I was pleased to see you have gotten package require Plplotter to work. It's amazing how the machine couldn't figure out what I meant by autopath....;-) I was able to do ./x01c -dev xwin with the installed libraries a few days ago, but I also confirm it no longer works now with -dev xwin. I have looked at your changes and see nothing to disagree with. So it is a puzzle. But I believe I can figure out what is going on since that error message comes from just one part of the plplot core code. As far as the static drivers are concerned, the xwin, tk, and tkwin drivers should all be merged into libplplottcltk (I think that is already taken care of with the present configuration), and the rest merged into libplplot (I suspect the current configuration would merge all drivers there which would be a mistake). The linking of libplplottcltk and libplplot would also have to be changed to accommodate the special libraries required by the various drivers. So it shouldn't be that bad (he says...;-)), and I encourage you to give it a try. 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 Tue, 6 Aug 2002, Maurice LeBrun wrote: > 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) > |