free Wrap

How to build freeWrap version 5.5

  1. Compile static libraries for TCL and for TK

    Windows 95/98/NT/2000/XP

    Static TCL and TK libraries can be built using the OPTS=static option with makefile.vc.

    Example:   nmake makefile.vc OPTS=static

    Linux

    Static TCL/TK libraries can be built under UNIX by using the --disable-shared option of the configure script.

  2. Compile the zlib general purpose data compression library

    Source code for this library is available from the zlib home page: http://www.gzip.org/zlib/

  3. Use the main.c and other source code files provided by freeWrap.

    Use the generic/main.c file provided with the freeWrap source code distribution to build any version of freeWrap. This file has been written to use the ZIP Virtual File System and perform initializations normally done by the standard TCL/TK distribution. The freeWrap Makefile has been designed to use main.c.

    The main.c source code is also the location in which any statically linked TCL/TK extensions should be initilized. The file currently contains exafmples of source code for initilizing several common extensions.

    The generic/freelib.c and generic/freeCmds.tcl files implement some TCL commands added by freeWrap.

    The generic/setinfo.tcl and generic/shrink.tcl scripts are used by the freeWrap Makefile in the creation of the freeWrap program.

    The generic/freewrap.tcl script is the portion of freeWrap that controls the wrapping process.

    The generic/zvfs.c file implements the ZIP Virtual File System used by freeWrap.

  4. Obtain the ZIP program from Info-Zip, http://www.info-zip.org/ , for your computer platform. Place the ZIP program in the UNIX or WIN subdirectory (as appropriate) of the freeWrap build tree. The building of freeWrap embeds this program into the freeWrap executable. The embedded ZIP program performs the necessary compression of files when freeWrap wraps an application.

  5. If you wish to compress the freeWrap executable program under Linux do the following:

    Obtain the UPX executable file compressor from http://upx.sourceforge.net/download/ , for your platform. Place the UPX program in the UNIX of the freeWrap build tree. Under Linux, the makefile for building freeWrap uses this program to compress the freeWrap executable.

  6. Use the Makefile that comes with the freeWrap source code distribution to build freeWrap. You will need to modify the Makefile to reflect the file paths for your computer system.

    Click here to see the Makefile for compiling under Windows 95/98/NT (Visual C++ 6.0)

    Click here to see the Makefile for compiling under Linux .

 


Back to freeWrap home page.