| 1 |
Specific problems: |
| 2 |
|
| 3 |
1. I've built BLT, but when I run "bltwish", it doesn't know about any |
| 4 |
of the BLT commands. |
| 5 |
|
| 6 |
% graph .g |
| 7 |
invalid command name "graph" |
| 8 |
|
| 9 |
Starting with Tcl 8.x, the BLT commands are stored in their own |
| 10 |
namespace called "blt". The idea is to prevent name clashes with Tcl |
| 11 |
commands and variables from other packages, such as a "table" command |
| 12 |
in two different packages. |
| 13 |
|
| 14 |
You can access the BLT commands in a couple of ways. |
| 15 |
|
| 16 |
Prefix the BLT commands with the namespace qualifier "blt::" |
| 17 |
|
| 18 |
% blt::graph .g |
| 19 |
% blt::table . .g -resize both |
| 20 |
|
| 21 |
or import the BLT commands into the global namespace. |
| 22 |
|
| 23 |
% namespace import blt::* |
| 24 |
% graph .g |
| 25 |
% table . .g -resize both |
| 26 |
|
| 27 |
2. I'm try to compile BLT with ActiveState's Tcl/Tk distribution, |
| 28 |
but all the demos core dump. |
| 29 |
|
| 30 |
Look in the "include" directory where you installed ActiveState. |
| 31 |
Is there an "X11" directory? Remove it and recompile BLT. |
| 32 |
It contains all the fake X11 headers needed for Windows builds. |
| 33 |
So it's okay to remove it for Solaris and Linux. |
| 34 |
|
| 35 |
3. Under Windows the "drag&drop" command doesn't work for me. |
| 36 |
|
| 37 |
The "drag&drop" command uses the "send" command to communicate |
| 38 |
between Tk applications and under Windows Tk has no built-in |
| 39 |
"send" command. In ./demos/scripts/send.tcl there is a "send" |
| 40 |
look-a-like that uses the DDE package. Source this first and |
| 41 |
make sure you invoke the procedures "SendInit" and "SendVerify" |
| 42 |
*before* you create and drag-and-drop targets. |
| 43 |
|
| 44 |
4. I'm using Windows 95/98 and the -stipple option doesn't seem to work. |
| 45 |
|
| 46 |
Under Windows 95/98, your bitmap must be exactly 8x8. If you use |
| 47 |
a bigger or smaller bitmap, Windows won't stipple the pattern correctly. |
| 48 |
For bitmaps larger than 8x8, only the upper-left 8x8 corner of the |
| 49 |
bitmap is used. For smaller bitmaps, the bitmap is extended to 8x8 |
| 50 |
with the new bits 0 (blank). This is a limitation of Windows 95/98, |
| 51 |
not Tk. |
| 52 |
|
| 53 |
5. I can't run bltwish.exe under Windows with Tcl/Tk version 8.0. |
| 54 |
|
| 55 |
Did you compile and install Tcl/Tk yourself? Tcl is expecting a |
| 56 |
registry key to be set. The installer normally does that for you. |
| 57 |
The key tells Tcl where to find the Tcl library scripts. Setting |
| 58 |
the TCL_LIBRARY environment variable to the location of the Tcl |
| 59 |
script directory (where init.tcl is located) will fix things. |
| 60 |
Dynamic loading (package require BLT) of BLT should also work. |
| 61 |
This problem is fixed in later versions of Tcl. |
| 62 |
|
| 63 |
6. I'm on a DEC Alpha running the graph widget. I don't see any ticks |
| 64 |
or lines. |
| 65 |
|
| 66 |
There's a problem with code generated by the GNU C compiler |
| 67 |
2.8.[0-1] for bltGrAxis.c and bltGrLine.c (I think it's just |
| 68 |
these two files). |
| 69 |
|
| 70 |
Try compiling with either the native "cc" compiler or compile |
| 71 |
the two modules with -O0. |
| 72 |
|
| 73 |
7. When I compile BLT on Solaris (maybe others?), I get lots of error |
| 74 |
messages in the form: |
| 75 |
|
| 76 |
<unknown> 0xf44 /usr/local/lib/libtcl7.6.a(tclCmdIL.o) |
| 77 |
<unknown> 0xf3c /usr/local/lib/libtcl7.6.a(tclCmdIL.o) |
| 78 |
<unknown> 0x628 /usr/local/lib/libtcl7.6.a(tclCmdIL.o) |
| 79 |
|
| 80 |
This is because Tcl and Tk have been installed only as static libraries, |
| 81 |
not shared libraries. The ./src/shared/Makefile creates the shared BLT |
| 82 |
library with a back-link to these libraries. The advantage of this link |
| 83 |
is that when you dynamically load BLT, the correct Tcl/Tk libraries are |
| 84 |
automatically searched for any unresolved references. |
| 85 |
|
| 86 |
You can fix this in one of two ways. |
| 87 |
|
| 88 |
o Remove the back-link. Edit ./src/shared/Makefile and cut the |
| 89 |
"-ltcl* -ltk*" references from the SHLIB_LD_LIBS macro. |
| 90 |
|
| 91 |
o Create shared libraries for Tcl and Tk. Re-configure, compile, |
| 92 |
and install Tcl/Tk from their sources. Make sure you add the |
| 93 |
"--enable-shared" switch to "configure". |
| 94 |
|
| 95 |
./configure --enable-shared |
| 96 |
|
| 97 |
8. How do I create a shared library of BLT under AIX? |
| 98 |
|
| 99 |
Check that Tcl and Tk were both configured with the --enable-shared flag. |
| 100 |
When you compile each of them, a "lib.exp" file is created in their |
| 101 |
respective "unix" subdirectories. The lib.exp files are removed when |
| 102 |
you do a "make clean", so you may need to recompile. |
| 103 |
|
| 104 |
The BLT Makefile uses the TCL_SRC_DIR and TK_SRC_DIR values in the |
| 105 |
tclConfig.sh and tkConfig.sh files to find these lib.exp files. You |
| 106 |
may need to edit ./src/Makefile/shared to reflect the real paths of |
| 107 |
the Tcl and Tk source distributions. |
| 108 |
|
| 109 |
General Problems: |
| 110 |
|
| 111 |
1. I can't compile BLT. |
| 112 |
|
| 113 |
Send the output of both "./configure" and "make" to me at |
| 114 |
|
| 115 |
[email protected] |
| 116 |
[email protected] |
| 117 |
|
| 118 |
This will make it easier to track down the exact problem. |
| 119 |
|
| 120 |
2. I get a segfault when running BLT in my application. |
| 121 |
|
| 122 |
The best method is to send a Tcl script that I can run to |
| 123 |
demonstrate the problem. The hard work you do pruning |
| 124 |
down the problem into a small script will greatly help solve |
| 125 |
it. Once I see what the problem is, I can usually fix it right |
| 126 |
away. |
| 127 |
|
| 128 |
Make sure you include all the necessary pieces to make it |
| 129 |
run (e.g. data file). If it's needed, also include directions |
| 130 |
how to make the problem occur (e.g. "double click on the left |
| 131 |
mouse button"). |
| 132 |
|
| 133 |
3. The manual page lies. |
| 134 |
|
| 135 |
I appreciate any help in pointing out errors, omissions, or lies |
| 136 |
in the manuals. If you have ideas how they might be improved, |
| 137 |
I'd love to hear them. |
| 138 |
|