Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem using freewrap

Status
Not open for further replies.

sbeazzle

Technical User
Mar 3, 2002
4
US
Has anyone used freeWrap to make an executable of
Tcl/tk and a "c" .dll ?? After I wrap the files,
if I remove the Tcl dir, I get the following
error:

>>Error sourcing /MISC-PROJs/01-ATS/code9/junk5/ats.tcl: couldn't load library "C:\MISC-PROJs\01-ATS\code9\junk5\ats.dll": this library or a dependent library could not be found in library path

It appears like it can't find the ats.dll in the
wrapped file, Any help would be apprecaited.
An example with a *.dll (for c) would be great!!

Thanks :-(
 
Here is an example on using freeWrap. This is a good
tool to make your TCL scripts into an EXE, and deliver
to your customers without having to install Tcl/Tk on
their systems. This example was forwarded to me by
freeWrap program manager (thanks!!):

Take a look at the example I provide at

Remember that the "package require" procedure uses TCL's glob command
and
will not automatically descend directories in the auto_path. Therefore,
all
library subdirectories you wrap into your application that contain a
pkgIndex.tcl file must be added to auto_path.

Hope this helps.
 
Wrapping dynamically shared libraries is very tricky under both freeWrap and TclPro Wrapper. This is because the operating systems aren't able to dynamically load the library from the wrapped archive; it has to be residing on disk as a separate file.

There is a workaround that involves having your wrapped script copy the library from the archive to disk and then loading the library. It's described in the freeWrap How-To, available at Look at the "Wrapping and using TCL/TK extensions (packages)" section, and more specifically, the "Extensions containing binary files" subsection. - Ken Jones, President
Avia Training and Consulting
866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top