1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>TkStep issues</title>
</head>
<body>
<h1>TkStep issues</h1>
<a name="tkstep">
<h2>
"I'm having problems with tkstep..."
</h2>
</p></a>
<p>
Stop! Before you go any further, think about upgrading your TkStep to release 8.0p2, as listed above. It solves almost all of the problems with the earlier versions and adds some great new features.
</p>
<p>
Next! Have you used RPM distributions of TkStep? If so, please try to build your own. 90% of the problems peaople encounter with TkStep can be traced to incorrect or incompatible RPMs. It really is easy to build your own, so please try it.
</p>
<p>
If you are unable to get Postilion to work with TkStep, see if it will work with plain Tk. If it will work with Tk but not with TkStep, then your TkStep is broken.
</p>
<p><a href="../Postilion.html#contents">Return to table of contents</a></p>
<hr>
<a name="install">
<h2>
How do I install TkStep?
</h2></a>
<p>
Here are full instructions to getting and installing TkStep4.2-5:<br>
<h4>Note: TkStep has been upgraded to 8.0, and I have not yet had time to write updated instructions.</h4>
</p>
<blockquote>
Get the new distribution from <a href="http://www.fga.de/~ograf/TkStep.shtml">Oliver Graff's page,</a> <br>
I got the <a href="http://rhein-zeitung.de/~ograf/files/tk4.2-5-step.patch">"patch to tk4.2p2"</a><br>
and the <a href="http://rhein-zeitung.de/~ograf/files/tk4.2-5-step-extras.tar.gz">"extra files for tk4.2p2"</a><br>
You will also need the <a href="http://sunsite.unc.edu/pub/Linux/libs/graphics/libjpeg-6a.tar.gz">JPEG</a> and <a href="ftp://ftp.sgi.com/graphics/tiff/tiff-v3.4-tar.gz">TIFF</a> and <a href="http://sunsite.unc.edu/pub/Linux/libs/zlib-1.0.4.tar.gz">Zlib</a> libraries.<br>
If you don't already have it, get the <a href="http://sunsite.unc.edu/pub/Linux/libs/X/libXpm-4.7.tar.gz">XPM library</a>.<br>
Get the standard <a href="ftp://ftp.sunlabs.com/pub/tcl/tcl7.6p2.tar.gz">tcl7.6</a>/<a href="ftp://ftp.sunlabs.com/pub/tcl/tk4.2p2.tar.gz">tk4.2</a> distribution.<br>
<p>
Install the JPEG, TIFF, ZLIB and XPM stuff according to their instructions,
they are really straightforward, so I won't repeat them here.
The rest of the process is,</p>
<ol>
<li>Make a directory to untar the packages into, I used ~/src/tcltk<br>
<code>mkdir ~/src/tcltk</code></li>
<li>Copy all of the tcl/tk and tkstep files into this new directory, and cd to it.<br>
<code>cp tk4.2-5-step.patch tk4.2-5-step-extras.tar.gz tcl7.6p2.tar.gz tk4.2p2.tar.gz ~/src/tcltk ; cd ~src/tcltk</code></li>
<li>Extract the tar files for tcl and tk<br>
<code>tar -zxvf tcl7.6p2.tar.gz</code><br>
<code>tar -zxvf tk4.2p2.tar.gz</code></li>
<li>Install tcl7.6p2:<br>
<code> cd tcl7.6/unix; configure --enable-shared ; make ; make install</code><br>
(or just read and follow the instructions)</li>
<li>Install tk4.2p2:<br>
<code> cd tk4.2/unix; configure --enable-shared ; make ; make install </code><br>
(or just read the instructions)</li>
<li>Run the test programs that come with tk</li>
<li>For tk4.2, do a <code>make clean</code> from <code>~/src/tcltk/tk4.2</code></li>
<li>Apply the tk4.2-5-step.patch like this;<br>
from the ~/src/tcltk directory run <code>patch -p <tk4.2-5-step.patch</code></li>
<li>Extract the step-extra files:<br>
<code>tar -zxvf tk4.2-5-step-extras.tar.gz</code></li>
<li>Install tkstep:<br>
<code> cd tk4.2/unix; configure --enable-xpm --enable-tiff --enable-dnd --enable-fullstep --enable-shared ; make ; make install </code></li>
<li>Copy the tkstepConfig.sh from whatever directory you installed it into (like /usr/local/lib) into the tkstep4.2 subdirectory as tkConfig.sh.<br>
<code>cp /usr/local/lib/tkstepConfig.sh /usr/local/lib/tkstep4.2/tkConfig.sh</code></li>
<li>cd to the postilion directory</li>
<li>Install postilion:<br>
<code>configure; make ; make install</code></li>
</ol>
</blockquote>
<p>If you must use an older version of TkStep, read on...</p>
<p>
From an e-mail I recently sent out:</p>
<blockquote>
To all of you having TkStep problems, or problems compiling Postilion, help
is on the way! If you are having problems like this:
</p>
On 17 Jul, Clarence Washington Jr. wrote:<br>
> Sorry to bug ya but.... I couldn't get it compiled<br>
> <code><br>
> ratAppInit.o: In function `RatAppInit':<br>
> /home/test/postilion/lib/ratAppInit.c:291: undefined reference to `tkImgFmtXPM'<br>
> make[1]: *** [postilion.exec] Error 1<br>
> make[1]: Leaving directory `/home/test/postilion/lib'<br>
> make: *** [install] Error 2<br>
</code><br>
<p>
This is problem with TkStep and Tk (no step) both living on the same
system. I didn't notice this problem at first because when I first
started the Postilion project I ended up linking libtkstep4.2.so to
libtk4.2.so, and linking wishstep4.2 to wish4.2. :<( My apologies!!
</p>
The fixes:
<br>
<dl>
1) if you are getting this message:
</dl>
<code>
"/usr/local/lib/libtkstep4.2.so: undefined reference to XpmCreateXpm"
</code><br>
<p>
There is a problem with the tkConfig.sh file from TkStep 4.2. I've
notified Oliver Graf, and he will change it in his next release. It's
a fairly simple fix, find your tkConfig.sh file (mine is in
/usr/local/lib) and look for the line that says:
</p>
<code> TK_LIBS='-L/usr/X11R6/lib -lX11 -ldl -lm'</code><br>
and change it to:<br>
<code> TK_LIBS='-L/usr/X11R6/lib -lX11 -ldl -lm -lXpm'</code><br>
<p></p><p>
While you're in there, look for the line that says:
</p>
<code> TK_LIB_FILE=libtk4.2.so <code><br>
and change it to:<br>
<code> TK_LIB_FILE=libtkstep4.2.so</code><br></code></code>
<p>
and look for the line that says:
</p>
<code> TK_LIB_SPEC='-L/usr/lib -ltk4.2' </code><br>
and change it to:<br>
<code> TK_LIB_SPEC='-L/usr/lib -ltkstep4.2'</code><br>
<p>
Then, save this file as
<code>/usr/local/lib/tkstep4.2/tkConfig.sh</code>, (or /usr/lib, or whatever
it is on your system) just to keep some sanity. <em>Re-run configure</em> after doing this, or the changes will not take effect!
</p>
<dl>
2) If you're getting this message:</dl><br>
<code>home/test/postilion/lib/ratAppInit.c:291: undefined reference to
`tkImgFmtXPM'"</code><br>
<p>
This means that configure is using the wrong tkConfig.sh file, or that
you compiled TkStep without the <code>--ENABLE_XPM</code> switch.
</p>
<p>
Put the tkConfig.sh file from TkStep somewhere other than
in the same directory as the standard tkConfig.sh, and use the
<code>--with-tk-config=DIR</code> switch with configure.
</p>
<center>-AND/OR-
</center>
<p>
If your tkConfig.sh file is from the original tk installation, rename
that to something else, and link your tkConfig.sh file from TkStep
to tkConfig.sh.
</p>
<center>
-AND/OR-
</center>
<p>
Recompile TkStep using <code>--ENABLE_XPM</code>
</p>
<p></p>
<dl>
3) PRIOR to running configure, set an environment variable "wish"
to point to the wishstep binary, such as:<br>
<code> (bash) # export wish="/usr/local/bin/wishstep4.2"</code><br>
this tells configure to use wishstep4.2, and not the one named
wish4.2.
</dl></p>
<p>
This should help with most problems. I intend to alter the configure
scripts for Postilion (as soon as I figure out how!) but this should help
until then. This is a generic TkStep vs Tk thing, it should work with
other problem compilations people have been experiencing.
</p>
</blockquote>
<p>
I will be providing links and installation intructions for all needed support libraries in due time.
</p>
<p><a href="../Postilion.html#contents">Return to table of contents</a></p>
<hr>
<address><a href="mailto:nic@turing.postilion.org">Nic Bernstein</a></address>
<!-- Created: Sat Feb 21 18:56:44 CST 1998 -->
<!-- hhmts start -->
Last modified: Sat Feb 21 19:10:49 CST 1998
<!-- hhmts end -->
</body>
</html>
|