Re: Packaging Tcl/Tk Application on Windows: Single File Executable



"Andy" <kaleanand@xxxxxxxxx> wrote in message
news:1133259597.958835.100610@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I tried the steps you gave. But when I run the exe, I get the console
> window. It doesnot show the UI of my application.
In the console window type
puts $errorInfo

Copy all the contents of the console
window and post it back to this thread.
That should reveal the (1st) problem.

In the mean time you might also
consider:
1. Are you telling freewrap explictly to load
your image files?
2. When you refer to wrapped files
you will need absolute paths - but *not*
drive letters.
So if you're using a file
c:/projects/prog1/star.jpeg
then refer to it as
/projects/prog1/star.jpeg

3. Also, files are found by searching a
zip archive and I believe that search is
case sensitive (was in the past) you can
simply use a zip utility to
look at the file names in the archive
and see if the case of the archive
matches the case you're using in
code to reference the files.

4. re images, do you require the
Img extension? Native Tcl/Tk only
supports the GIF and PPM/PGM
image types. If you are using Img you
will need to wrap up its whole directory,
unwrap it onto the local disk and then
lappend the unwrap directory to auto_path.

This doesn't take much code at all. See the
freewrap page
http://freewrap.sourceforge.net/freewrap_howto.html#5

HTH,
Roy

Note to Dennis laBelle:
A freewrap feature to wrap and
unwrap Img in a couple of procs
would be a super enhancement for freewrap.

>
> Here are few clarifications sought
>
> 1) I am looking at exe which has bundled the image files and which
> shall not on the disk. Hope freewrap takes care of that
> 2) Do i need to package any tcl/tk dlls/libs or freewrap takes care of
> that ..
> 3) the filelist file generated for the images has absolute path for
> each image name. Is this causing problem to run the app ?
>
> Please revert as i cannot get the executable to run
>
> Thx
> Andy
>
>
> slebetman@xxxxxxxxx wrote:
> > Andy wrote:
> > > Hi all,
> > >
> > > I need to package application developed in Tcl/Tk on Windows. It
should
> > > be a single file executable with all data files (gifs), dependency
> > > packages such as winico bundled into a single executable.
> > >
> > > There should be not reference to external data files such as images ..
> > > All should be bundled as a single file on desktop.
> > >
> > > I have used mktclapp and also freewrap but one needs to keep the image
> > > files separate.
> > >
> >
> > Freewrap can include image file. Either simply:
> >
> > freewrap my_main.tcl some_image.gif some_image.jpg
> >
> > or include a list of images & dependency packages in a file and use the
> > -f option:
> >
> > freewrap another_of_my_main.tcl -f includes.txt
> >
> > A quick way to generate the includes file is:
> >
> > dir /s /b c:\path\to\my\images\ > includes.txt
> >
> > then simply edit the generated file to remove unused images. This can
> > also be done for including packages. For example, to include tcllib:
> >
> > dir /s /b c:\tcl\lib\tcllib1.7\ > tcllib_includes.txt
> >
> > This works with all pure tcl packages including bwidget and tcllib.
> > Packages with dlls can't be included this way. But your winico package
> > is already compiled into freewrap so you don't have to include it.
> >
> > > Do I have to change code to include the image files data ?
> > >
> >
> > with freewrap you don't have to. It automagically looks for the wrapped
> > images if it can't find it on disk.
>


.



Relevant Pages

  • Re: Packaging Tcl/Tk Application on Windows: Single File Executable
    ... Roy Terry wrote: ... But when I run the exe, I get the console ... > In the console window type ... Are you telling freewrap explictly to load ...
    (comp.lang.tcl)
  • Re: Packaging Tcl/Tk Application on Windows: Single File Executable
    ... But when I run the exe, ... window. ... Do i need to package any tcl/tk dlls/libs or freewrap takes care of ... >> packages such as winico bundled into a single executable. ...
    (comp.lang.tcl)
  • Re: Packaging Tcl/Tk Application on Windows: Single File Executable
    ... > packages such as winico bundled into a single executable. ... > There should be not reference to external data files such as images .. ... > All should be bundled as a single file on desktop. ... Freewrap can include image file. ...
    (comp.lang.tcl)
  • freewrap helper
    ... It is always pain to determine what files and packages are used by a ... And almost impossilbe to break into application's internal logic to ... fix path names as required by freewrap. ...
    (comp.lang.tcl)
  • freewrap helper
    ... It is always pain to determine what files and packages are used by a ... And almost impossilbe to break into application's internal logic to ... fix path names as required by freewrap. ...
    (comp.lang.tcl)