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!

Freewrap: 1st Time User Of Freewrap on Windows

Status
Not open for further replies.

cptk

Technical User
Mar 18, 2003
305
US
I've downloaded the latest Freewrap version (v 5.6), but I'm having a little trouble. I've never dealt with running/creating tcl/tk code within Windows - I'm home and not in my natural UNIX environment!

What do I need to do to get this to work in a Windows environment as far as compiling [nmake makefile.vc OPTS=static didn't work!]?

I need the basics please. (I'm trying to build something for my kids while on Xmas vacation).

...thanks!!!


 
Sorry, I didn't make myself clear.

I already have tcl/tk and been running with it in windows 98 for some time. But now I want to set-up Freewrap (since a lot of you appear to work with Freewrap).

Doesn't sound like I need to compile anything - just use Freewrap "right-out-of-the-box" ... is this true? If not, what is it exactly I need to do to get Freewrap to work? If I need a windows compiler, what do I use?

...thanks!
 
yes, FreeWrap is a "right-out-of-the-box" tool. I was wrong y'day when I said that u need Tcl/Tk to use freewrap. u can use it even with the normal windows console.

u can get the freewrap at...

u don't have to compile it... u can find the following explanation at the above link

"Easy, one-step wrapping:
FreeWrap consists of a single executable file. There is no setup required. Wrapping is accomplished with a single command."

u can find the help abt the syntax of commands in the docs folder that comes along with freewrap.

for example, if u want to wrap a single tcl file, then the command would be...

freewrap myfile.tcl myfile.tcl

if u want to wrap some n files, then the command would be...

freewrap mainfile.tcl file1.tcl ... filen.tcl

but all these files should be in the same directory.

hth,
Rak.
 
It's not working for me! I unzipped the freewrap download, and simply ran the following at a DOS window:

> c:\tcl\freewrap\freewrap newfile plain.tcl

It doesn't give me any errors, but a "newfile" never gets created! ...and yes, the plain.tcl script does work.

 
FYY -
I got tclpro to work instead (always been a big fan of this due to it containing a wrapper utility). I needed to locate a license key though to use tclpro1.4.

But, I'd like to know why freewrap doesn't work!
 
the command that u have given is not correct I suppose. In the command "freewrap newfile plain.tcl", the position of 'newfile' should be the name of the main file of your tcl script, and the position of the 'plain.tcl' should be the name of sub file that u want to include for wrapping.

In the case of wrapping a single script, these two names should be the same. That means ur command should look like...

> c:\tcl\freewrap\freewrap plain.tcl plain.tcl

This is b'cos the main file and additional wrapping files are one and the same.

Raj.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top