From: Maurice L. <mj...@ga...> - 2002-08-05 23:34:36
|
Can someone tell me how to run the tkwin driver under Linux? I did the following: $ ./configure --enable-dyndrivers --enable-tkwin $ make $ cd tmp $ export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH $ wish % source pldefaults.tcl % load libplplottcltk.so Plplotter couldn't find procedure Plplotter_Init % $ ll libplplottcltk.* -rw-r--r-- 1 mjl users 920156 Aug 5 18:24 libplplottcltk.a lrwxrwxrwx 1 mjl users 19 Aug 5 18:24 libplplottcltk.so -> libplplottcltk.so.5* lrwxrwxrwx 1 mjl users 23 Aug 5 18:24 libplplottcltk.so.5 -> libplplottcltk.so.5.1.0* -rwxr-xr-x 1 mjl users 372429 Aug 5 18:24 libplplottcltk.so.5.1.0* $ ll drivers/tkw* -rwxr-xr-x 1 mjl users 207773 Aug 5 18:25 drivers/tkwin_drv.so* So it seems like it should be working according to what I've read here. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |
From: Alan W. I. <ir...@be...> - 2002-08-06 00:03:09
|
Use load drivers/tkwin[d]_drv.so Plplotter_Init instead since everything immediately related to tkwin has been moved to that shared object. All other instructions in examples/tk/README.tkdemos should be right for plplot/tmp. You shouldn't have to even set LD_LIBRARY_PATH. For the installed version I have had some troubles so that is why I have been bugging Vince about autopath, package require Plplotter, etc. If runAllDemos.tcl works in plplot/tmp, then it has gotta work eventually for the installed version with judicious use of package require Plplotter and the appropriate configuration, but we are certainly not there yet. 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, Maurice LeBrun wrote: > Can someone tell me how to run the tkwin driver under Linux? > I did the following: > > $ ./configure --enable-dyndrivers --enable-tkwin > $ make > $ cd tmp > $ export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH > $ wish > % source pldefaults.tcl > % load libplplottcltk.so Plplotter > couldn't find procedure Plplotter_Init > % > > $ ll libplplottcltk.* > -rw-r--r-- 1 mjl users 920156 Aug 5 18:24 libplplottcltk.a > lrwxrwxrwx 1 mjl users 19 Aug 5 18:24 libplplottcltk.so -> libplplottcltk.so.5* > lrwxrwxrwx 1 mjl users 23 Aug 5 18:24 libplplottcltk.so.5 -> libplplottcltk.so.5.1.0* > -rwxr-xr-x 1 mjl users 372429 Aug 5 18:24 libplplottcltk.so.5.1.0* > > $ ll drivers/tkw* > -rwxr-xr-x 1 mjl users 207773 Aug 5 18:25 drivers/tkwin_drv.so* > > So it seems like it should be working according to what I've read here. > > -- > Maurice LeBrun mj...@ga... > Research Organization for Information Science and Technology of Japan (RIST) > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Plplot-devel mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-devel > |
From: Maurice L. <mj...@ga...> - 2002-08-06 00:50:53
|
Alan W. Irwin writes: > Use > > load drivers/tkwin[d]_drv.so Plplotter_Init > > instead since everything immediately related to tkwin has been moved to that > shared object. Thanks, that worked, except it should read: load drivers/tkwin[d]_drv.so Plplotter > All other instructions in examples/tk/README.tkdemos should be right for > plplot/tmp. You shouldn't have to even set LD_LIBRARY_PATH. > > For the installed version I have had some troubles so that is why I have > been bugging Vince about autopath, package require Plplotter, etc. If > runAllDemos.tcl works in plplot/tmp, then it has gotta work eventually for > the installed version with judicious use of package require Plplotter > and the appropriate configuration, but we are certainly not there yet. Unfortunately there are still problems, i.e. from the tmp directory: $ wish % source pldefaults.tcl % load drivers/tkwin_drv.so Plplotter % package provide Plplotter 5.1.0 % source runAllDemos.tcl % couldn't read file "/home/mjl/gts/lib/plplot5.1.0/tcl/x01.tcl": no such file or directory (note that $prefix=/home/mjl/gts in this case) so clearly the demo is looking in the wrong place for the example programs. Not even the right place under $prefix (should be $prefix/lib/plplot5.1.0/examples/tcl). But at least this is enough to get started with it. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |
From: Alan W. I. <ir...@be...> - 2002-08-06 01:21:40
|
I have gotten that error before, but not now. It may have something to do with the rpath link option used for the lastest link of drivers/tkwin_drv.so, and that depends on whether plplot has been installed or not. What does ldd say about drivers/tkwin[d]_drv.so? In my case: ldd drivers/tkwind_drv.so libtcl8.3.so.1 => /usr/lib/libtcl8.3.so.1 (0x4001a000) libtk8.3.so.1 => /usr/lib/libtk8.3.so.1 (0x4009f000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40152000) libplplottcltkd.so.5 => /home/software/plplot_cvs/HEAD/plplot_working5/tmp/libplplottcltkd.so.5 (0x4022c000) libc.so.6 => /lib/libc.so.6 (0x4024a000) libdl.so.2 => /lib/libdl.so.2 (0x40367000) libm.so.6 => /lib/libm.so.6 (0x4036a000) libplplotd.so.5 => /usr/local/plplot/lib/libplplotd.so.5 (0x4038b000) libtclmatrixd.so.5 => /usr/local/plplot/lib/libtclmatrixd.so.5 (0x403cc000) libitcl3.1.so.1 => /usr/lib/libitcl3.1.so.1 (0x403d0000) libitk3.1.so.1 => /usr/lib/libitk3.1.so.1 (0x403eb000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) Note it is picking up the plplot/tmp versions of the libraries. To get back to this pre-install state, rm plplot/tmp/drivers/tkwin_drv.so and run make to recreate it with the correct (plplot/tmp) rpath. I hope that fixes the problem on your system. Sorry this is so iffy right now, but I am sure it will get much better as soon as we know how to inform the installed version where to find things. 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, Maurice LeBrun wrote: > Alan W. Irwin writes: > > Use > > > > load drivers/tkwin[d]_drv.so Plplotter_Init > > > > instead since everything immediately related to tkwin has been moved to that > > shared object. > > Thanks, that worked, except it should read: > > load drivers/tkwin[d]_drv.so Plplotter > > > All other instructions in examples/tk/README.tkdemos should be right for > > plplot/tmp. You shouldn't have to even set LD_LIBRARY_PATH. > > > > For the installed version I have had some troubles so that is why I have > > been bugging Vince about autopath, package require Plplotter, etc. If > > runAllDemos.tcl works in plplot/tmp, then it has gotta work eventually for > > the installed version with judicious use of package require Plplotter > > and the appropriate configuration, but we are certainly not there yet. > > Unfortunately there are still problems, i.e. from the tmp directory: > > $ wish > % source pldefaults.tcl > % load drivers/tkwin_drv.so Plplotter > % package provide Plplotter 5.1.0 > % source runAllDemos.tcl > % couldn't read file "/home/mjl/gts/lib/plplot5.1.0/tcl/x01.tcl": no such file or directory > > (note that $prefix=/home/mjl/gts in this case) > > so clearly the demo is looking in the wrong place for the example programs. > Not even the right place under $prefix (should be > $prefix/lib/plplot5.1.0/examples/tcl). > > But at least this is enough to get started with it. > > -- > Maurice LeBrun mj...@ga... > Research Organization for Information Science and Technology of Japan (RIST) > |
From: Maurice L. <mj...@ga...> - 2002-08-06 01:03:56
|
Maurice LeBrun writes: > Unfortunately there are still problems, i.e. from the tmp directory: > > $ wish > % source pldefaults.tcl > % load drivers/tkwin_drv.so Plplotter > % package provide Plplotter 5.1.0 > % source runAllDemos.tcl > % couldn't read file "/home/mjl/gts/lib/plplot5.1.0/tcl/x01.tcl": no such file or directory > > (note that $prefix=/home/mjl/gts in this case) > > so clearly the demo is looking in the wrong place for the example programs. > Not even the right place under $prefix (should be > $prefix/lib/plplot5.1.0/examples/tcl). I traced this back to $prefix/lib/plplot5.1.0/tcl/tclIndex being basically the same one as in the tmp dir, which is wrong. I'll check into why this is occuring. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |
From: Maurice L. <mj...@ga...> - 2002-08-06 01:30:03
|
Maurice LeBrun writes: > Maurice LeBrun writes: > > Unfortunately there are still problems, i.e. from the tmp directory: > > > > $ wish > > % source pldefaults.tcl > > % load drivers/tkwin_drv.so Plplotter > > % package provide Plplotter 5.1.0 > > % source runAllDemos.tcl > > % couldn't read file "/home/mjl/gts/lib/plplot5.1.0/tcl/x01.tcl": no such file or directory > > > > (note that $prefix=/home/mjl/gts in this case) > > > > so clearly the demo is looking in the wrong place for the example programs. > > Not even the right place under $prefix (should be > > $prefix/lib/plplot5.1.0/examples/tcl). > > I traced this back to $prefix/lib/plplot5.1.0/tcl/tclIndex being basically the > same one as in the tmp dir, which is wrong. I'll check into why this is > occuring. More info. From the tmp dir: $ wish % puts $auto_path /usr/lib/tcl8.3 /usr/lib /home/mjl/gts/lib /usr/lib/tk8.3 % source pldefaults.tcl % puts $auto_path /usr/lib/tcl8.3 /usr/lib /home/mjl/gts/lib /usr/lib/tk8.3 % load drivers/tkwin_drv.so Plplotter % puts $auto_path /usr/lib/tcl8.3 /usr/lib /home/mjl/gts/lib /usr/lib/tk8.3 /home/mjl/gts/lib/plplot5.1.0/tcl So it's the pkg load that modifies auto_path, adding $prefix/lib/plplot5.1.0/tcl. So far so good. The problem is then that the tmp/tclIndex file is copied to that location. Since tmp/ has access to all the *.tcl files, tclIndex contains references to all of them. But then it is not correct for the install dir. A proper tclIndex file needs to be made-in / copied-to that dir. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |
From: Maurice L. <mj...@ga...> - 2002-08-06 04:10:32
|
Maurice LeBrun writes: > The problem is then that the tmp/tclIndex file is copied to that location. > Since tmp/ has access to all the *.tcl files, tclIndex contains references > to all of them. But then it is not correct for the install dir. A proper > tclIndex file needs to be made-in / copied-to that dir. Easy enough, done. An even stranger problem turned up in testing of this however. After fixing $(TCL_DIR)/tclIndex, I was able to eventually the tkwin stuff successfully: $ wish % source pldefaults.tcl % load drivers/tkwin_drv.so Plplotter % package provide Plplotter 5.1.0 % source runAllDemos.tcl ... If I then install it: $ make install gcc -shared -fPIC -o drivers/xwin_drv.so \ -L/home/mjl/gts/lib -ltcl8.3 -ltk8.3 -L/usr/X11R6/lib -lX11 -L. -lplplottcltk -Wl,-rpath,/home/mjl/gts/lib gcc -shared -fPIC -o drivers/tkwin_drv.so \ shared/Plplotter_Init.o shared/plplotter.o shared/tkwin_common.o \ -L/home/mjl/gts/lib -ltcl8.3 -ltk8.3 -L/usr/X11R6/lib -lX11 -L. -lplplottcltk -Wl,-rpath,/home/mjl/gts/lib gcc -shared -fPIC -o drivers/tk_drv.so \ -L/home/mjl/gts/lib -ltcl8.3 -ltk8.3 -L/usr/X11R6/lib -lX11 -L. -lplplottcltk -Wl,-rpath,/home/mjl/gts/lib and try again, still in tmp/, I get: ged$ wish % source pldefaults.tcl % load drivers/tkwin_drv.so Plplotter % package provide Plplotter 5.1.0 % source runAllDemos.tcl Unable to locate dispatch table initialization function for driver: tkwin_drv.so. Segmentation fault This is 100% reproducible on my machine. The install evidently modifies the contents of the tmp directory so that this procedure no longer works.. I guess through the rebuild of the drivers. To test this, I did: $ rm drivers/* $ make gcc -shared -fPIC -o drivers/plmeta_drv.so shared/plmeta.o -L. -lplplot gcc -shared -fPIC -o drivers/null_drv.so shared/null.o -L. -lplplot gcc -shared -fPIC -o drivers/ps_drv.so shared/ps.o shared/pstex.o -L. -lplplot gcc -shared -fPIC -o drivers/xwin_drv.so shared/xwin.o -L/home/mjl/gts/lib -ltcl8.3 -ltk8.3 -L/usr/X11R6/lib -lX11 -L. -lplplottcltk -Wl,-rpath -Wl,/home/mjl/dev/plplot/head1/tmp gcc -shared -fPIC -o drivers/tk_drv.so shared/tk.o -L/home/mjl/gts/lib -ltcl8.3 -ltk8.3 -L/usr/X11R6/lib -lX11 -L. -lplplottcltk -Wl,-rpath -Wl,/home/mjl/dev/plplot/head1/tmp gcc -shared -fPIC -o drivers/pbm_drv.so shared/pbm.o -L. -lplplot gcc -shared -fPIC -o drivers/tkwin_drv.so shared/Plplotter_Init.o shared/plplotter.o shared/tkwin_common.o shared/tkwin.o -L/home/mjl/gts/lib -ltcl8.3 -ltk8.3 -L/usr/X11R6/lib -lX11 -L. -lplplottcltk \ -Wl,-rpath -Wl,/home/mjl/dev/plplot/head1/tmp ..and then tried again, whereupon it worked. This is also bad. The install should either relink the drivers to a temporary location (preferably the final location) or destroy the now-bogus drivers under tmp/drivers. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |
From: Maurice L. <mj...@ga...> - 2002-08-06 04:37:34
|
Maurice LeBrun writes: > This is also bad. The install should either relink the drivers to a temporary > location (preferably the final location) or destroy the now-bogus drivers > under tmp/drivers. OK, changed to go directly to the install drivers dir, whereupon the post-install weirdness goes away. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |
From: Alan W. I. <ir...@be...> - 2002-08-06 06:14:51
|
Maurice, Thanks very much for fixing these problems with the installed tkwin. BTW, I did the same relink with different rpath for libplplottcltk[d].so. Please change that as well if you think it will make a difference. For that (and tkwin, tk, and xwin) I was naively following exactly what was done before for the executables such as plserver, and the plplotc python extension module, plplotcmodule.so, but for those examples it doesn't seem to matter so much that after install ldd in plplot/tmp indicates they are finding the libraries in the install location rather than plplot/tmp. I guess with tcl/tk the rpath the library is linked with is more important than with the usual executable or shared object. Anyhow, it looks like you cracked it, and much thanks for that. 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. But you are much better at tcl than me so if you have time tonight I invite you (;-)) to please see what you can do yourself to get package require Plplotter working like Vince said was possible for the installed version. 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, Maurice LeBrun wrote: > Maurice LeBrun writes: > > This is also bad. The install should either relink the drivers to a temporary > > location (preferably the final location) or destroy the now-bogus drivers > > under tmp/drivers. > > OK, changed to go directly to the install drivers dir, whereupon the > post-install weirdness goes away. > > -- > Maurice LeBrun mj...@ga... > Research Organization for Information Science and Technology of Japan (RIST) > |
From: Maurice L. <mj...@ga...> - 2002-08-06 06:34:11
|
Alan W. Irwin writes: > BTW, I did the same relink with different rpath for libplplottcltk[d].so. > Please change that as well if you think it will make a difference. For that > (and tkwin, tk, and xwin) I was naively following exactly what was done > before for the executables such as plserver, and the plplotc python > extension module, plplotcmodule.so, but for those examples it doesn't seem > to matter so much that after install ldd in plplot/tmp indicates they are > finding the libraries in the install location rather than plplot/tmp. Right, probably it doesn't matter, but I'll think about it. Originally it was kind of a tossup as to which way to go. Since the first change you make will result in a library rebuild and therefore executable relink, there is little danger. One reason to prefer having the relinked executables in tmp/ is that you can rename them e.g. plserver -> plserver.old, make some change to the library and then compare plserver to plserver.old, since the latter will still be linked to the installed libraries and thus make a good reference copy. > 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.) D'oh! Been there. :) > 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. > > But you are much better at tcl than me so if you have time tonight I invite > you (;-)) to please see what you can do yourself to get > > package require Plplotter > > working like Vince said was possible for the installed version. Cool, I may have time to look into it. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |
From: Vince D. <vi...@sa...> - 2002-08-06 08:08:17
|
You don't want: lappend auto_path /usr/local/plplot/lib/plplot5.1.0/tcl but lappend auto_path /usr/local/plplot/lib/plplot5.1.0 sorry I wasn't more explicit. -- Vince <http://www.santafe.edu/~vince> |
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) |
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) > |
From: Alan W. I. <ir...@be...> - 2002-08-06 18:14:05
|
On Tue, 6 Aug 2002, Alan W. Irwin wrote: > 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. Actually, I now see the problem. In an earlier set of changes you removed all dependencies for the installed drivers and that messed up the use of $< later on in the rule so, e.g., xwin.o wasn't being put into xwin_drv.so (which caused something of a problem...;-)) I have just reinstated the first dependency shared/xwin$O, etc., for each of the drivers in CVS, and now ./x01c -dev xwin, -dev tkwin, and -dev tk works fine for the installed drivers (so long as your PATH points to $prefix/bin). In general, I would like to keep dependencies in, if it doesn't mess up the RH version of make. Maurice, I don't think it was these first dependencies that were giving you trouble with RH make. However, please test this out, and if you are still having trouble we can do it without the dependency by replacing $< in the rule by the appropriate value. I haven't done any deep testing, yet, but I believe the installed version should now be good to go. Alan |
From: Maurice L. <mj...@ga...> - 2002-08-06 20:54:23
|
Alan W. Irwin writes: > On Tue, 6 Aug 2002, Alan W. Irwin wrote: > > > 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. > > Actually, I now see the problem. In an earlier set of changes you removed > all dependencies for the installed drivers and that messed up the use of $< > later on in the rule so, e.g., xwin.o wasn't being put into xwin_drv.so > (which caused something of a problem...;-)) I have just reinstated the first > dependency shared/xwin$O, etc., for each of the drivers in CVS, and now > ./x01c -dev xwin, -dev tkwin, and -dev tk works fine for the installed > drivers (so long as your PATH points to $prefix/bin). > > In general, I would like to keep dependencies in, if it doesn't mess up the > RH version of make. Maurice, I don't think it was these first dependencies > that were giving you trouble with RH make. However, please test this out, > and if you are still having trouble we can do it without the dependency by > replacing $< in the rule by the appropriate value. Whoops. Thanks for catching that one.. so much for being fast & loose. :) I'll give the Plplotter package another try. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |
From: Alan W. I. <ir...@be...> - 2002-08-06 21:05:46
|
Here is the revised wish recipe that works for me in plplot/tmp wish % lappend auto_path [pwd] /usr/lib/tcl8.3 /usr/lib /usr/lib/tk8.3 /home/software/plplot_cvs/HEAD/plplot_working5/tmp % package require Plplotter 5.1.0 % source runAllDemos.tcl I can click any example button in the GUI that comes up, and the appropriate example is plotted (with the correct black background so the defaults are working right without having to explicitly source anything). I have just changed examples/tk/README.tkdemos accordingly. Note that the plplot/tmp pkgIndex.tcl has been revised so that set file [file join $dir drivers tkwind_drv[info sharedlibextension]] for both instances. If I go to the installed examples directory, it is a different story. cd /usr/local/plplot/lib/plplot5.1.0/examples/tk wish % lappend auto_path /usr/local/plplot/lib/plplot5.1.0 /usr/lib/tcl8.3 /usr/lib /usr/lib/tk8.3 /usr/local/plplot/lib/plplot5.1.0 % package require Plplotter Can't find a usable plplot.tcl in the following directories: /usr/lib/plplot5.1.0/tcl /usr/lib/plplot5.1.0/tcl /lib/plplot5.1.0/tcl /usr/library /library /plplot5.1.0/tcl/library /plplot5.1.0/tcl/library This probably means that plplot wasn't installed properly. If I do the same thing with wish_private, where wish_private is a symlink to fool tcl into looking in the /usr/local/plplot tree, i.e., ls -l /usr/local/plplot/bin/wish_private lrwxrwxrwx 1 software software 13 Aug 6 12:28 /usr/local/plplot/bin/wish_private -> /usr/bin/wish* then: wish_private % lappend auto_path /usr/local/plplot/lib/plplot5.1.0 /usr/lib/tcl8.3 /usr/lib /usr/local/plplot/lib /usr/lib/tk8.3 /usr/local/plplot/lib/plplot5.1.0 % package require Plplotter 5.1.0 % source runAllDemos.tcl % invalid command name "x03" That last error message was generated when I clicked the 3rd example button on the GUI that came up. BTW, I followed Vince's instructions and for this test I put pkgIndex.tcl into /usr/local/plplot/lib/plplot5.1.0 (not the tcl subdirectory). For that version I had grep tkwin /usr/local/plplot/lib/plplot5.1.0/pkgIndex.tcl set file [file join $dir ../ libtkwind[info sharedlibextension]] set file [file join $dir ../ libtkwind[info sharedlibextension]] and of course the symlink: ls -l /usr/local/plplot/lib/libtkwind.so lrwxrwxrwx 1 software software 55 Aug 6 12:14 /usr/local/plplot/lib/libtkwind.so -> /usr/local/plplot/lib/plplot5.1.0/drivers/tkwind_drv.so* Time for me to bow out of these tcl install problems associated with wish, and let the experts take over. Maurice, can you verify the problem above and would you be willing to follow up? I would ask Vince, but he doesn't have access to a Linux box. 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 __________________________ |