From: Alan W. I. <ir...@be...> - 2002-01-29 21:52:22
|
On Tue, 29 Jan 2002, Joao Cardoso wrote: > On Tuesday 29 January 2002 7:24 pm, Alan W. Irwin wrote: > > More information (hot off the presses). I hope you read all your mail > > before responding to the previous messages in this thread. > > > > > > Have you cross-platform guys tried all the examples? I wonder how many > > other platforms demand the -ltclmatrixd link line? I wonder how Debian > > woody works fine without requiring it? > > [...]If I add -ltclmatrixd to the link lines in the examples Makefile, > > all C and Tk build and run without problems. So problem solved, and > > thanks for listening as I worked through this. > > I don't understand, as I get -ltclmatrixd in the link automatically: > > [jcard@feup] make tkdemos > gcc -c -O -I. -I/usr/lib/java//include xtk01.c > gcc xtk01.o \ > -L. -lplplotd -ltclmatrixd -o xtk01 -litk3.2 -ltk8.3 -litcl3.2 > -ltcl8.3 -L/usr/X11R6/lib -lX11 -ldl -lm -lg2c -Wl,-rpath > -Wl,/home/jcard/plplot-devel/tmp I wasn't clear. Everything is fine in the tmp location. It is the installed location ($prefix/lib/plplot5.1.0/examples/c, for example) where the make cdemos fails on RH 7.1 (but not on Debian/woody). The tmp Makefile has the -ltclmatrixd, but the installed examples one does not, and I am about to fix that since it does make a difference for RH 7.1. > > even if I remove the tcllibrary, it links OK; > [jcard@feup] gcc xtk01.o -L. -lplplotd -o xtk01 -litk3.2 -ltk8.3 -litcl3.2 > -ltcl8.3 -L/usr/X11R6/lib -lX11 -ldl -lm -lg2c -Wl,-rpath > -Wl,/home/jcard/plplot-devel/tmp Yep, that works on Debian/woody as well, but not RH 7.1. > > But, with a standard make, "xtk01"f ails: > > [jcard@feup] ./xtk01 > % myplot > Segmentation fault > > [jcard@feup] ./xtk01 > % myplot 1 > > *** PLPLOT ERROR *** > plcol0: Please call plinit first, aborting operation > ... > and so on. > > The README.tkdemos does not provides accurate instrutions on runing this > component of the demos, so I don't know if this is the correct way--I had to > read the xtk01.c code. Actually, the test_tk.sh script I shared with the list before is an excellent guide, but it needs a slight generalization so it can work from both the tmp and installed locations. Here is the modified script (it is set up for the installed examples location, but set the first 4 export lines to . to work from the tmp location.) *********************** #!/bin/sh #test suite of all interactive tk stuff that cannot be done by file. #tk driver (x14c), tcldemos, tkdemos. export cdir=c export tcldir=tcl export tkdir=tk export plplotbindir=/usr/local/plplot/bin $cdir/x14c $cdir/x17c -dev tk $tkdir/xtk01 -f $tkdir/tk01 $tkdir/xtk02 -f $tkdir/tk02 $plplotbindir/plserver -f $tkdir/tk03 $tkdir/xtk04 -f $tkdir/tk04 cd $tcldir $plplotbindir/plserver <<EOF plstdwin . plxframe .plw pack append . .plw {left expand fill} source plgrid.tcl proc 1 {} "plgrid .plw.plwin" 1 exit EOF cd ../$tkdir pwd $plplotbindir/plserver <<EOF source tkdemos.tcl 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 exit EOF *********************** Also, you must execute the following before this script if you want to exercise the installed examples. pushd /usr/local/plplot/lib/plplot5.1.0/examples/ cd c; make cdemos >&! make_cdemos.out; cd .. cd f77 ; make fdemos > & ! make_fdemos.out ; cd .. cd c++ ; make cxxdemos > & ! make_cxxdemos.out ; cd .. cd tk ; make tkdemos > & ! make_tkdemos.out ; cd .. Let me know whether the above works (once I make the commit of my configuration change). > > I have further tested: > > cdemos-OK > fdemos-OK > cxxdemos-OK > jdemos-OK > pythondemos-OK > tcldemos-OK > octave demos-OK > tkdemos-half OK, the "start plserver, source tkdemos etc" worked, the xtk?? > demos didn't. Thanks, Joao. Please try this from the installed examples location as well, once I get the configuration change out so the demo Makefile there is correct for RH 7.1. Alan |