For Programmers: Free Programming Magazines  


Home > Archive > Tcl > October 2006 > New FreeWrap 6.2 + BWidget issue









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author New FreeWrap 6.2 + BWidget issue
sbaret@gmail.com

2006-10-21, 10:02 pm

I'm using FreeWrap 6.2 on Windows 2000. In my .tcl file, I am using
BWidget. So I have added these two lines in the .tcl file:
lappend auto_path /tcl/lib/bwidget1.7
package require BWidget

I have created an index file, like that:
/Tcl/lib/bwidget1.7
/Tcl/lib/bwidget1.7/arrow.Tcl
/Tcl/lib/bwidget1.7/bitmap.Tcl
/Tcl/lib/bwidget1.7/button.Tcl
/Tcl/lib/bwidget1.7/buttonbox.Tcl
/Tcl/lib/bwidget1.7/bwidget.tap
/Tcl/lib/bwidget1.7/color.Tcl
/Tcl/lib/bwidget1.7/combobox.Tcl
/Tcl/lib/bwidget1.7/dialog.Tcl
/Tcl/lib/bwidget1.7/dragsite.Tcl
/Tcl/lib/bwidget1.7/dropsite.Tcl
/Tcl/lib/bwidget1.7/dynhelp.Tcl
/Tcl/lib/bwidget1.7/entry.Tcl
/Tcl/lib/bwidget1.7/font.Tcl
/Tcl/lib/bwidget1.7/images
..=2E...

And I wraped the file with the fooling command:
Freewrap myfile.tcl -f myindexfile.txt
C:\Tcl\lib\bwidget1.7\pkgIndex.tcl

I can run the generated .exe file on the hard drive I have generated it
without any problem. But when I copy the file on one another hard
drive, I have the following message on the console: " Error sourcing
/freewrap/myfile.tcl: couldn't read file
"/tcl/lib/bwidget1.7/widget.tcl": no such file or directory

I have checked:
=B7 The Bwidget package is well included in the liste of packages of my
wrapped application.
=B7 When I change the .exe to .zip in the wrapped application, I can
confirm that the file "application/tcl/lib/bwidget1.7/widget.tcl"
is well included in the wrapped file

I do not know what I have done wrong. Does someone can help me?

Many thanks in advance.

Robert Heller

2006-10-22, 8:02 am

At 21 Oct 2006 21:07:24 -0700 sbaret@gmail.com wrote:

>
> I'm using FreeWrap 6.2 on Windows 2000. In my .tcl file, I am using
> BWidget. So I have added these two lines in the .tcl file:
> lappend auto_path /tcl/lib/bwidget1.7
> package require BWidget
>
> I have created an index file, like that:
> /Tcl/lib/bwidget1.7


Do you know the differrence between uppercase and lowercase letters?
You *have* to match the case!!! You are not matching the case of the
letters. "/Tcl/lib/bwidget1.7" is NOT the same as
"/tcl/lib/bwidget1.7". You need to fix this. Repeating your question
won't make it work.

> /Tcl/lib/bwidget1.7/arrow.Tcl
> /Tcl/lib/bwidget1.7/bitmap.Tcl
> /Tcl/lib/bwidget1.7/button.Tcl
> /Tcl/lib/bwidget1.7/buttonbox.Tcl
> /Tcl/lib/bwidget1.7/bwidget.tap
> /Tcl/lib/bwidget1.7/color.Tcl
> /Tcl/lib/bwidget1.7/combobox.Tcl
> /Tcl/lib/bwidget1.7/dialog.Tcl
> /Tcl/lib/bwidget1.7/dragsite.Tcl
> /Tcl/lib/bwidget1.7/dropsite.Tcl
> /Tcl/lib/bwidget1.7/dynhelp.Tcl
> /Tcl/lib/bwidget1.7/entry.Tcl
> /Tcl/lib/bwidget1.7/font.Tcl
> /Tcl/lib/bwidget1.7/images
> .=2E...
>
> And I wraped the file with the fooling command:
> Freewrap myfile.tcl -f myindexfile.txt
> C:\Tcl\lib\bwidget1.7\pkgIndex.tcl
>
> I can run the generated .exe file on the hard drive I have generated it
> without any problem. But when I copy the file on one another hard
> drive, I have the following message on the console: " Error sourcing
> /freewrap/myfile.tcl: couldn't read file
> "/tcl/lib/bwidget1.7/widget.tcl": no such file or directory
>
> I have checked:
> =B7 The Bwidget package is well included in the liste of packages of my
> wrapped application.
> =B7 When I change the .exe to .zip in the wrapped application, I can
> confirm that the file "application/tcl/lib/bwidget1.7/widget.tcl"
> is well included in the wrapped file
>
> I do not know what I have done wrong. Does someone can help me?
>
> Many thanks in advance.
>
>


--
Robert Heller -- 978-544-6933
Deepwoods Software -- Linux Installation and Administration
http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
heller@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk

sbaret@gmail.com

2006-10-22, 8:02 am

Following you advice, I have changed the index:
/tcl/lib/bwidget1.7
/tcl/lib/bwidget1.7/arrow.Tcl
/tcl/lib/bwidget1.7/bitmap.Tcl
/tcl/lib/bwidget1.7/button.Tcl
/tcl/lib/bwidget1.7/buttonbox.Tcl
..=2E.

And now the BWidget package is not included in the list of package of
my wrapped application. Now I have the following error message:
"can't find package BWidget"

What can I do?

Robert Heller a =E9crit :

> At 21 Oct 2006 21:07:24 -0700 sbaret@gmail.com wrote:
>
>
> Do you know the differrence between uppercase and lowercase letters?
> You *have* to match the case!!! You are not matching the case of the
> letters. "/Tcl/lib/bwidget1.7" is NOT the same as
> "/tcl/lib/bwidget1.7". You need to fix this. Repeating your question
> won't make it work.
>
my[color=darkred]
>
> --
> Robert Heller -- 978-544-6933
> Deepwoods Software -- Linux Installation and Administration
> http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
> heller@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk


Robert Heller

2006-10-22, 7:05 pm

At 22 Oct 2006 07:15:43 -0700 sbaret@gmail.com wrote:

>
> Following you advice, I have changed the index:
> /tcl/lib/bwidget1.7
> /tcl/lib/bwidget1.7/arrow.Tcl
> /tcl/lib/bwidget1.7/bitmap.Tcl
> /tcl/lib/bwidget1.7/button.Tcl
> /tcl/lib/bwidget1.7/buttonbox.Tcl
> .=2E.
>
> And now the BWidget package is not included in the list of package of
> my wrapped application. Now I have the following error message:
> "can't find package BWidget"
>
> What can I do?


OK, Obviously freewrap is NOT including the files if the C:\Tcl
directory is specificed in lowercase. That means you need to change the
index file to use it capitalized:

/Tcl/lib/bwidget1.7/arrow.Tcl
/Tcl/lib/bwidget1.7/bitmap.Tcl
/Tcl/lib/bwidget1.7/button.Tcl
/Tcl/lib/bwidget1.7/buttonbox.Tcl
/Tcl/lib/bwidget1.7/bwidget.tap
/Tcl/lib/bwidget1.7/color.Tcl
/Tcl/lib/bwidget1.7/combobox.Tcl
/Tcl/lib/bwidget1.7/dialog.Tcl
/Tcl/lib/bwidget1.7/dragsite.Tcl
/Tcl/lib/bwidget1.7/dropsite.Tcl
/Tcl/lib/bwidget1.7/dynhelp.Tcl
/Tcl/lib/bwidget1.7/entry.Tcl
/Tcl/lib/bwidget1.7/font.Tcl
/Tcl/lib/bwidget1.7/images
...

*Then* you need to change your lappend line to:

lappend auto_path /Tcl/lib/bwidget1.7

to match.

The path in the index file and the auto_path have to match. They don't
have to be lower case, just the *same* case/capitalization, whatever
works.

*I* don't understand why freewrap is treating a *MS-Windows* *file
system* in a case sensitive manor, since MS-Windows file systems are not
normally case sensitive. The internally created virtual file system IS
case sensitive (UNIX-like).

I basically stopped using freewrap after V4.4. The 5.x series does not
work properly when used to cross build MS-Windows EXEs under Linux. I
have not even looked at the 6.x versions of freewrap (and probably
won't bother). Most likely I'll use a 'startkit' instead.


>
> Robert Heller a =E9crit :
>
> my
>
>


--
Robert Heller -- 978-544-6933
Deepwoods Software -- Linux Installation and Administration
http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
heller@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk

sbaret@gmail.com

2006-10-22, 7:05 pm

Now, it is OK. The package Bwidget is well included in the package list
but I have the following error: "Error sourcing /freewrap/myfile.tcl:
missing newline on line 52". This error occurred also when I run the
..exe on the Hard Drive where I have generated it.

I do know which "line 52" it is talking about because when I add
lines before the line 52 in my file .tcl the error is still on line
52....

Any idea?

Could you tell me which 'startkit' you are using, I will us it?


Robert Heller a =E9crit :

> At 22 Oct 2006 07:15:43 -0700 sbaret@gmail.com wrote:
>
>
> OK, Obviously freewrap is NOT including the files if the C:\Tcl
> directory is specificed in lowercase. That means you need to change the
> index file to use it capitalized:
>
> /Tcl/lib/bwidget1.7/arrow.Tcl
> /Tcl/lib/bwidget1.7/bitmap.Tcl
> /Tcl/lib/bwidget1.7/button.Tcl
> /Tcl/lib/bwidget1.7/buttonbox.Tcl
> /Tcl/lib/bwidget1.7/bwidget.tap
> /Tcl/lib/bwidget1.7/color.Tcl
> /Tcl/lib/bwidget1.7/combobox.Tcl
> /Tcl/lib/bwidget1.7/dialog.Tcl
> /Tcl/lib/bwidget1.7/dragsite.Tcl
> /Tcl/lib/bwidget1.7/dropsite.Tcl
> /Tcl/lib/bwidget1.7/dynhelp.Tcl
> /Tcl/lib/bwidget1.7/entry.Tcl
> /Tcl/lib/bwidget1.7/font.Tcl
> /Tcl/lib/bwidget1.7/images
> ..
>
> *Then* you need to change your lappend line to:
>
> lappend auto_path /Tcl/lib/bwidget1.7
>
> to match.
>
> The path in the index file and the auto_path have to match. They don't
> have to be lower case, just the *same* case/capitalization, whatever
> works.
>
> *I* don't understand why freewrap is treating a *MS-Windows* *file
> system* in a case sensitive manor, since MS-Windows file systems are not
> normally case sensitive. The internally created virtual file system IS
> case sensitive (UNIX-like).
>
> I basically stopped using freewrap after V4.4. The 5.x series does not
> work properly when used to cross build MS-Windows EXEs under Linux. I
> have not even looked at the 6.x versions of freewrap (and probably
> won't bother). Most likely I'll use a 'startkit' instead.
>
>
d it[color=darkred]
es of =3D[color=darkred]
I can[color=darkred]
>
> --
> Robert Heller -- 978-544-6933
> Deepwoods Software -- Linux Installation and Administration
> http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
> heller@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk


Robert Heller

2006-10-22, 7:05 pm

At 22 Oct 2006 11:01:28 -0700 sbaret@gmail.com wrote:

>
> Now, it is OK. The package Bwidget is well included in the package list
> but I have the following error: "Error sourcing /freewrap/myfile.tcl:
> missing newline on line 52". This error occurred also when I run the
> .exe on the Hard Drive where I have generated it.
>
> I do know which "line 52" it is talking about because when I add
> lines before the line 52 in my file .tcl the error is still on line
> 52....
>
> Any idea?


Nope. Maybe you should contact the freewrap author (check at
freewrap.sourceforge.net) -- I doubt anyone on this newsgroup has any
clue (including me, probably the only person here who has used any
version of freewrap, and the last *working* version I used was 4.4).

>
> Could you tell me which 'startkit' you are using, I will us it?
>


I havn't gotten to the point of actually building a startkit. You can
check on the Tcl wiki for information (http://wiki.tcl.tk/).

>
> Robert Heller a =E9crit :
>
> d it
> es of =3D
> I can
>
>


--
Robert Heller -- 978-544-6933
Deepwoods Software -- Linux Installation and Administration
http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
heller@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk

Dennis LaBelle

2006-10-22, 10:02 pm

sbaret@gmail.com wrote:
> Now, it is OK. The package Bwidget is well included in the package list
> but I have the following error: "Error sourcing /freewrap/myfile.tcl:
> missing newline on line 52". This error occurred also when I run the
> .exe on the Hard Drive where I have generated it.
>
> I do know which "line 52" it is talking about because when I add
> lines before the line 52 in my file .tcl the error is still on line
> 52....
>
> Any idea?
>


Hi, I'm the author of freeWrap.

I experienced the same error message when trying to wrap a BWidget
application. The error occurs when the [package require BWidget] statement
is executed in a wrapped application. At this point I'm not sure whether
the problem is with the pkgIndex.tcl file or one of the files that
pkgIndex.tcl sources.

Unfortunately, I am on business travel this w and won't be able to get
back to the problem until next w.

Dennis LaBelle
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com