[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Take a look of my problem in runing mash.exe, I am almost mad!
Hello,everyone,
Althoug I did all my effort and succeeded in compiling MASH source,
there still has some problem while ran mash.exe.The error information
is stored in the attachment.
According to Paul's advice, I have set TCL_LIBRARY and
TK_LIBRARY to point to the path containing init.tcl and tk.tcl.Butt the problem still exists,
so I want to get more advices and more help.
The directory arrangement of my compiling environment is:
f:\mash_compile
\dali
\tcl8.0
\win
tclsh80.exe
tchsl80.dll
....
\library
....
\tk8.0
\win
wish80.exe
tk80.dll
\libray
....
\tclcl
\otcl
\mash-5.0b2-current
\bin
tcl80.dll
tk80.dll
mash.exe
smash.exe
makefile.vc
...
As I have no problem in compiling, so I focus on the error information. After search the entire directory (f:\mash_compile),
I find that only in initSript.h located in f:\mash_compile\tk8.0\generic directory has the string "tcl_findLibray"
which emerged in the error message.the initScript.h file is very simple, which only defines a char array:
-----------------
static char initScript[] = "if {[info proc tkInit]==\"\"} {\n\
proc tkInit {} {\n\
global tk_library tk_version tk_patchLevel\n\
rename tkInit {}\n\
tcl_findLibrary tk $tk_version $tk_patchLevel tk.tcl TK_LIBRARY tk_library\n\
}\n\
}\n\
tkInit";
-------------------
According to the error message, it shows that tclsh can not interpret the 4th line of tkInit proc.
In order to find why this proc failed while ran mash.exe, I did some test.
First, I test this procedure using wish80.exe which is located in f:\mash_complie\tk8.0\win directory,
I found that tkInit proc can run correctly.
Sencond, I tried to test it using smash.exe, it failed. the erro message is :
% tcl_findLibrary tk $tk_version $tk_patchLevel tk.tcl TK_LIBRARY tk_library
can't read "tk_version": no such variable
I think this is the reason why I can not run mash.exe.
In addtion, I also install tcl-tk8.0 release version and mash5.0 binary release version in my computer, they all work correctly, which means my hardware and software has no problem. I also compare the file size of my mash.exe with that in the binary version, my mash.exe is only about 2.8M, whiel binary release mash.exe has about 4.2M.
As this problem has troubled me for weeks and it almost let me mad, so if anyone of you can give some advice, it will be a great favour for me!
Li xue ming
Beijing University of Posts and Telecommunications
Nov, 16, 2000