rubberscissors
Technical User
I've come up with a little Tcl script, and it runs fine if you have Tcl 8.3.4.2 installed on your machine...however, I'd like to use Freewrap to distribute it. When the wrapped program is used on a station which doesn't have Tcl installed, however, people get the error:
Error: can't find package Iwidgets 4.0
I used a .txt file which includes the path to all the files in the Iwidgets package, and included the following line in the script:
lappend auto_path /tcl/lib/iwidgets4.0.0
package require Iwidgets 4.0
Then used the command freewrap <script>.tcl -f <txtfile>.txt
The file gets much larger, so it seems the package was wrapped, but I still get the same error.
So, I upgraded Freewrap to 5.1; now, when I try and wrap the script and the package, it works, but I get this error in the WISH console when I launch the executable:
Error sourcing /TCL/lib/mine/pop.tcl: Can't find a usable itcl.tcl in the following directories:
/itcl3.2 C:/Tcl/lib/mine/../lib/itcl3.2 C:/Tcl/lib/mine/../library C:/Tcl/lib/mine/../../library C:/Tcl/lib/mine/../../itcl/library C:/Tcl/lib/mine/../../../itcl/library
This probably means that Itcl/Tcl weren't installed properly.
If you know where the Itcl library directory was installed,
you can set the environment variable ITCL_LIBRARY to point
to the library directory.
I tried including the itcl files in the text file along with their paths, but no matter what I do, I keep getting this error.
Anyone have any experiences like this?
Error: can't find package Iwidgets 4.0
I used a .txt file which includes the path to all the files in the Iwidgets package, and included the following line in the script:
lappend auto_path /tcl/lib/iwidgets4.0.0
package require Iwidgets 4.0
Then used the command freewrap <script>.tcl -f <txtfile>.txt
The file gets much larger, so it seems the package was wrapped, but I still get the same error.
So, I upgraded Freewrap to 5.1; now, when I try and wrap the script and the package, it works, but I get this error in the WISH console when I launch the executable:
Error sourcing /TCL/lib/mine/pop.tcl: Can't find a usable itcl.tcl in the following directories:
/itcl3.2 C:/Tcl/lib/mine/../lib/itcl3.2 C:/Tcl/lib/mine/../library C:/Tcl/lib/mine/../../library C:/Tcl/lib/mine/../../itcl/library C:/Tcl/lib/mine/../../../itcl/library
This probably means that Itcl/Tcl weren't installed properly.
If you know where the Itcl library directory was installed,
you can set the environment variable ITCL_LIBRARY to point
to the library directory.
I tried including the itcl files in the text file along with their paths, but no matter what I do, I keep getting this error.
Anyone have any experiences like this?