For the Silicon Graphics, I have built these packages (using Irix 6.5)
and stuck the files into a single tar file that should make installation
easy:
unpack in a directory of your choice: cd /usr/local/nist98 gunzip < /tmp/tcltk803_blt24_tix41.tar.gz | tar xvf -
cd /usr/tcltkin the above, you will need to add the following to your .cshrc:
setenv TCLLIBPATH /usr/tcltk/lib setenv BLT_LIBRARY /usr/tcltk/lib/blt2.4(It is possible that other environment variables could be needed:
setenv TK_LIBRARY /usr/tcltk/lib/tk8.0 setenv TCL_LIBRARY /usr/tcltk/lib/tcl8.0but to date, I have not seen a need for this).
ln -s /usr/local/nist98/bin/wish /usr/local/bin/Example 2:
set path = ( /usr/local/nist98/bin $path )Example 3:
#!/usr/local/nist98/bin/wishExample 4:
cat > ~/bin/cmpr setenv TCLLIBPATH /usr/tcltk/lib /usr/tcltk/bin/wish /usr/tcltk/cmpr/cmpr.tcl ^D
chmod +x ~/bin/cmprwhere I have assumed that ~/bin is a directory in your path. I tend to prefer this latter option myself.
In the examples below, I have downloaded the files in section 1. to /tmp/ and I am building the source in /usr/tcltk and will install the files in /usr/local/nist98
cd /usr/temp/tcltk gunzip < /tmp/tcl8.0.3.tar.gz | tar xvf - cd tcl8.0.3/unix ./configure --prefix=/usr/local/nist98 make make install
cd /usr/temp/tcltk gunzip < tk8.0p2.tar.gz | tar xvf - cd tk8.0.3/unix ./configure --prefix=/usr/local/nist98 make make install
cd /usr/temp/tcltk ln -s tcl8.0.3/ tcl8.0 ln -s tk8.0.3/ tk8.0 gunzip < /tmp/Tix4.1.0.006.tar.gz | tar xvf - cd Tix4.1.0/unix ./configure --prefix=/usr/local/nist98 --enable-shared make cd tk8.0/ ./configure --prefix=/usr/local/nist98 --enable-shared make cd .. make install cd ../..
SGI notes: I needed 3 changes: add 2 casts to generic/tixHList.c and generic/tixOption.c and remove -32 from unix/tk8.0/Makefile
*** Tix4.1.0/generic/tixHList.c Mon Oct 19 15:40:29 1998 --- Tix4.1.0/generic/tixHList.c~ Thu Jun 26 22:10:45 1997 *************** *** 1349,1355 **** if (wPtr->elmToSee) { ckfree(wPtr->elmToSee); } ! wPtr->elmToSee = (char *) strdup(argv[0]); return TCL_OK; } else { Tix_HLSeeElement(wPtr, chPtr, 1); --- 1349,1355 ---- if (wPtr->elmToSee) { ckfree(wPtr->elmToSee); } ! wPtr->elmToSee = strdup(argv[0]); return TCL_OK; } else { Tix_HLSeeElement(wPtr, chPtr, 1);*** Tix4.1.0/generic/tixOption.c Mon Oct 19 15:39:08 1998 --- Tix4.1.0/generic/tixOption.c~ Fri Jan 17 22:57:31 1997 *************** *** 315,321 **** code = TCL_ERROR; goto done; } else { ! newValue = value = (char *) strdup(interp->result); } } --- 315,321 ---- code = TCL_ERROR; goto done; } else { ! newValue = value = strdup(interp->result); } }*** Tix4.1.0/unix/tk8.0/Makefile Mon Oct 19 15:43:16 1998 --- Tix4.1.0/unix/tk8.0/Makefile~ Mon Oct 19 15:32:01 1998 *************** *** 92,98 **** CC = cc SHLIB_CFLAGS = ! SHLIB_LD = ld -shared -rdata_shared -rpath /usr/local/lib SHLIB_SUFFIX = .so SHLIB_VERSION = TIX_SHLIB_CFLAGS = --- 92,98 ---- CC = cc SHLIB_CFLAGS = ! SHLIB_LD = ld -32 -shared -rdata_shared -rpath /usr/local/lib SHLIB_SUFFIX = .so SHLIB_VERSION = TIX_SHLIB_CFLAGS =
cd /usr/temp/tcltk gunzip < /tmp/BLT2.4g.tar.gz | tar xvf - cd blt2.4g/ ./configure --prefix=/usr --enable-shared make cd src/shared/ make cd ../.. make install cd ..
SGI notes: I needed to change the ld command in shared/Makefile to remove -32
*** Makefile Mon Oct 19 17:42:16 1998 --- Makefile~ Mon Oct 19 15:47:56 1998 *************** *** 16,22 **** DEF_BLTINIT = -DBLT_LIBRARY=\"$(scriptdir)\" SHLIB_LD_FLAGS = SHLIB_LD_LIBS = ! SHLIB_LD = ld -shared -rdata_shared -rpath /usr/local/lib prefix = /usr/local/nist98 exec_prefix = /usr/local/nist98 --- 16,22 ---- DEF_BLTINIT = -DBLT_LIBRARY=\"$(scriptdir)\" SHLIB_LD_FLAGS = SHLIB_LD_LIBS = ! SHLIB_LD = ld -32 -shared -rdata_shared -rpath /usr/local/lib prefix = /usr/local/nist98 exec_prefix = /usr/local/nist98Also, I replaced the pkgIndex.tcl file:% cat pkgIndex.tcl# Tcl package index file, version 1.0 package ifneeded BLT 2.4 [list tclPkgSetup $dir BLT 2.4 { {../libBLT.so.2 load {blt::barchart blt::beep blt::bgexec \ blt::bitmap blt::bltdebug blt::busy blt::cutbuffer \ blt::drag&drop blt::graph blt::htext blt::spline \ blt::stripchart blt::table blt::vector blt::watch \ blt::winop}} { bltGraph.tcl source {Blt_ActiveLegend Blt_ClosestPoint Blt_Crosshairs \ Blt_PrintKey Blt_ZoomStack \ blt::ActiveLegend blt::ClosestPoint blt::Crosshairs \ blt::PrintKey blt::ZoomStack}}}]