• Freewrap: Windows, Linux, MacOS, Android etc.

    From snosniv@21:1/5 to All on Thu Nov 24 07:31:27 2022
    I've successfully converted my 3 Tcl/Tk files (GUI, Tooltips & Calcs) into a Windows exe file for my own use; however, I'd like to share it with some cycling friends, some of which use an OS other than Windows, primarily Android &/or iPad OS.

    Is it possible to create a suitable file that can be used on these alternate OS's, and can it be done on my Windows PC? (Some of the people I'd like to share with are less computer conversant than me, hard to believe I know)! :-)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Oehlmann@21:1/5 to All on Thu Nov 24 16:40:24 2022
    Am 24.11.2022 um 16:31 schrieb snosniv:
    I've successfully converted my 3 Tcl/Tk files (GUI, Tooltips & Calcs) into a Windows exe file for my own use; however, I'd like to share it with some cycling friends, some of which use an OS other than Windows, primarily Android &/or iPad OS.

    Is it possible to create a suitable file that can be used on these alternate OS's, and can it be done on my Windows PC? (Some of the people I'd like to share with are less computer conversant than me, hard to believe I know)! :-)

    Yes, it can. Use the -w option of freewrap.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luc@21:1/5 to snosniv on Thu Nov 24 16:07:45 2022
    On Thu, 24 Nov 2022 07:31:27 -0800 (PST), snosniv wrote:

    I've successfully converted my 3 Tcl/Tk files (GUI, Tooltips & Calcs)
    into a Windows exe file for my own use; however, I'd like to share it
    with some cycling friends, some of which use an OS other than Windows, primarily Android &/or iPad OS.

    Is it possible to create a suitable file that can be used on these
    alternate OS's, and can it be done on my Windows PC? (Some of the people
    I'd like to share with are less computer conversant than me, hard to
    believe I know)! :-)


    I don't think so, no.

    https://freewrap.dengensys.com/wp-content/uploads/2021/04/freeWrapDocs.pdf

    You can generate a Windows executable in Linux and vice-versa, but you
    have to point to a Freewrap executable with the -w option.

    Given that Freewrap only exists in Linux and Windows versions, I am pretty convinced that you can only generate executables for those two platforms.
    I don't see any Mac/iOS version in the downloads section and I really
    doubt any of the existing versions will run on Android. You would have to
    make an Androwish application for Android.

    --
    Luc


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Niehren@21:1/5 to snosniv on Fri Nov 25 21:14:17 2022
    snosniv wrote:

    I've successfully converted my 3 Tcl/Tk files (GUI, Tooltips & Calcs) into
    a Windows exe file for my own use; however, I'd like to share it with some cycling friends, some of which use an OS other than Windows, primarily Android &/or iPad OS.

    Is it possible to create a suitable file that can be used on these
    alternate OS's, and can it be done on my Windows PC? (Some of the people
    I'd like to share with are less computer conversant than me, hard to
    believe I know)! :-)

    you can use tclexecomp to create binaries for Windows, Linux and MacOS (but currently not for the M1). It is based on Freewrap. For Android binaries
    you can use Androwisth, but for iPad OS, i don't know a tool.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Torsten Berg@21:1/5 to Michael Niehren on Sat Nov 26 15:53:17 2022
    That's interesting. Can tclexecomp actually "cross-compile"? With freewrap I can make a Linux exe from Windows as far as I remember (log time ago I did this). Can tclexecomp produce Linux and Windows executables when operated from macOS, or does it need
    to run on the platform for which the code is?

    On Friday, November 25, 2022 at 9:14:24 PM UTC+1, Michael Niehren wrote:
    snosniv wrote:

    I've successfully converted my 3 Tcl/Tk files (GUI, Tooltips & Calcs) into a Windows exe file for my own use; however, I'd like to share it with some cycling friends, some of which use an OS other than Windows, primarily Android &/or iPad OS.

    Is it possible to create a suitable file that can be used on these alternate OS's, and can it be done on my Windows PC? (Some of the people I'd like to share with are less computer conversant than me, hard to believe I know)! :-)
    you can use tclexecomp to create binaries for Windows, Linux and MacOS (but currently not for the M1). It is based on Freewrap. For Android binaries
    you can use Androwisth, but for iPad OS, i don't know a tool.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Niehren@21:1/5 to Torsten Berg on Sun Nov 27 01:53:11 2022
    Torsten Berg wrote:

    That's interesting. Can tclexecomp actually "cross-compile"? With freewrap
    I can make a Linux exe from Windows as far as I remember (log time ago I
    did this). Can tclexecomp produce Linux and Windows executables when
    operated from macOS, or does it need to run on the platform for which the code is?

    On Friday, November 25, 2022 at 9:14:24 PM UTC+1, Michael Niehren wrote:
    snosniv wrote:

    I've successfully converted my 3 Tcl/Tk files (GUI, Tooltips & Calcs)
    into a Windows exe file for my own use; however, I'd like to share it
    with some cycling friends, some of which use an OS other than Windows,
    primarily Android &/or iPad OS.

    Is it possible to create a suitable file that can be used on these
    alternate OS's, and can it be done on my Windows PC? (Some of the
    people I'd like to share with are less computer conversant than me,
    hard to believe I know)! :-)
    you can use tclexecomp to create binaries for Windows, Linux and MacOS
    (but currently not for the M1). It is based on Freewrap. For Android
    binaries you can use Androwisth, but for iPad OS, i don't know a tool.

    Hi Torsten,

    tclexecomp can "cross-compile". You can use it under Windows and produce Binaries for Linux or MacOS or you can use it under MacOS and produce
    Binaries for Linux and Windows.

    And you can customize your binaries, which means, that you can delete
    unneeded modules in the binariy.

    Take a look at https://tclexecomp.sourceforge.net/

    best regards
    Michael

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From snosniv@21:1/5 to Michael Niehren on Thu Dec 1 01:33:30 2022
    On Sunday, 27 November 2022 at 00:53:17 UTC, Michael Niehren wrote:
    Torsten Berg wrote:

    That's interesting. Can tclexecomp actually "cross-compile"? With freewrap I can make a Linux exe from Windows as far as I remember (log time ago I did this). Can tclexecomp produce Linux and Windows executables when operated from macOS, or does it need to run on the platform for which the code is?

    On Friday, November 25, 2022 at 9:14:24 PM UTC+1, Michael Niehren wrote:
    snosniv wrote:

    I've successfully converted my 3 Tcl/Tk files (GUI, Tooltips & Calcs) >> > into a Windows exe file for my own use; however, I'd like to share it >> > with some cycling friends, some of which use an OS other than Windows, >> > primarily Android &/or iPad OS.

    Is it possible to create a suitable file that can be used on these
    alternate OS's, and can it be done on my Windows PC? (Some of the
    people I'd like to share with are less computer conversant than me,
    hard to believe I know)! :-)
    you can use tclexecomp to create binaries for Windows, Linux and MacOS
    (but currently not for the M1). It is based on Freewrap. For Android
    binaries you can use Androwisth, but for iPad OS, i don't know a tool.
    Hi Torsten,

    tclexecomp can "cross-compile". You can use it under Windows and produce Binaries for Linux or MacOS or you can use it under MacOS and produce Binaries for Linux and Windows.

    And you can customize your binaries, which means, that you can delete unneeded modules in the binariy.

    Take a look at https://tclexecomp.sourceforge.net/

    best regards
    Michael

    I'm getting nowhere with tclexecomp at all.
    So, this is what I did, what am I doing wrong please? (This is all on a Windows 10 PC)
    Downloaded from sourceforge, unzipped to get a bunch of similarly named files in new dir "tclexecomp",
    joined my 3 files together into 1 called ZBUILD.tcl & put in sub-dir wrap as per instructions.

    (Note:- ZBUILD.tcl converted to ZBUILD.exe with just Freewrap & works fine).

    In a command window I did the following:-

    compiled using: tclexecomp64 -compile wrap/Zbuild.tcl to wrap/ZBUILD.tbc Removed the ZBUILD.tcl file & then renamed ZBUILD.tbc to ZBUILD.tcl

    Then tried to build exe with:- tclexecomp64 wrap/ZBUILD.tcl wrap/* -forcewrap -w tclexecomp64.exe (as per instructions)
    This comes back with error saying "Cannot find wrap/* to wrap.

    So then tried without the wrap/* bit which did create ZBUILD.exe in the dir above wrap

    Clicked on this new exe file &just get error:- (Error sourcing /zvfs/wrap/ZBUILD.tcl: expected integer but got "I )

    So, just going round in circles with tclexecomp. :-(
    I'm happy with what Freewrap creates for the windows environment, but if I can't get tclexecomp to work for Windows, I expect the Mac version will not work either (and I have no way to test it myself), which is what I'm trying to create for a few friends
    who use Mac & not Windows.

    Any help much appreciated.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From snosniv@21:1/5 to snosniv on Thu Dec 1 06:25:24 2022
    On Thursday, 1 December 2022 at 09:33:33 UTC, snosniv wrote:
    On Sunday, 27 November 2022 at 00:53:17 UTC, Michael Niehren wrote:
    Torsten Berg wrote:

    That's interesting. Can tclexecomp actually "cross-compile"? With freewrap
    I can make a Linux exe from Windows as far as I remember (log time ago I did this). Can tclexecomp produce Linux and Windows executables when operated from macOS, or does it need to run on the platform for which the
    code is?

    On Friday, November 25, 2022 at 9:14:24 PM UTC+1, Michael Niehren wrote:
    snosniv wrote:

    I've successfully converted my 3 Tcl/Tk files (GUI, Tooltips & Calcs) >> > into a Windows exe file for my own use; however, I'd like to share it >> > with some cycling friends, some of which use an OS other than Windows,
    primarily Android &/or iPad OS.

    Is it possible to create a suitable file that can be used on these
    alternate OS's, and can it be done on my Windows PC? (Some of the
    people I'd like to share with are less computer conversant than me, >> > hard to believe I know)! :-)
    you can use tclexecomp to create binaries for Windows, Linux and MacOS >> (but currently not for the M1). It is based on Freewrap. For Android
    binaries you can use Androwisth, but for iPad OS, i don't know a tool. Hi Torsten,

    tclexecomp can "cross-compile". You can use it under Windows and produce Binaries for Linux or MacOS or you can use it under MacOS and produce Binaries for Linux and Windows.

    And you can customize your binaries, which means, that you can delete unneeded modules in the binariy.

    Take a look at https://tclexecomp.sourceforge.net/

    best regards
    Michael
    I'm getting nowhere with tclexecomp at all.
    So, this is what I did, what am I doing wrong please? (This is all on a Windows 10 PC)
    Downloaded from sourceforge, unzipped to get a bunch of similarly named files in new dir "tclexecomp",
    joined my 3 files together into 1 called ZBUILD.tcl & put in sub-dir wrap as per instructions.

    (Note:- ZBUILD.tcl converted to ZBUILD.exe with just Freewrap & works fine).

    In a command window I did the following:-

    compiled using: tclexecomp64 -compile wrap/Zbuild.tcl to wrap/ZBUILD.tbc Removed the ZBUILD.tcl file & then renamed ZBUILD.tbc to ZBUILD.tcl

    Then tried to build exe with:- tclexecomp64 wrap/ZBUILD.tcl wrap/* -forcewrap -w tclexecomp64.exe (as per instructions)
    This comes back with error saying "Cannot find wrap/* to wrap.

    So then tried without the wrap/* bit which did create ZBUILD.exe in the dir above wrap

    Clicked on this new exe file &just get error:- (Error sourcing /zvfs/wrap/ZBUILD.tcl: expected integer but got "I )

    So, just going round in circles with tclexecomp. :-(
    I'm happy with what Freewrap creates for the windows environment, but if I can't get tclexecomp to work for Windows, I expect the Mac version will not work either (and I have no way to test it myself), which is what I'm trying to create for a few
    friends who use Mac & not Windows.

    Any help much appreciated.

    UPDATE:
    I've now downloaded tclexecomp-V1.2.0 instead of V1.4.0 and behold, we have a working Windows exe file!
    I also created a Mac file, so now need a friend to test that for me somehow.

    When I download V1.4.0 I gat an extra file over the V1.2.0 version called: .tclexecomp.n.swp
    whatever that does?

    Regards, Kev P. (snosniv).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Torsten Berg@21:1/5 to All on Thu Dec 1 13:57:49 2022
    However, I can't find TclApp anywhere to download; is it still available & where from?

    TclApp is a part of the TclDevKit and now on Github: https://github.com/ActiveState/tdk

    It hasn't been updated in quite some time and I have never tried to make it run ... so I cannot help with installation unfortunately. As there doesn't seem to be good documentation either I guess you will have to go with trial and error.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From snosniv@21:1/5 to snosniv on Thu Dec 1 13:32:06 2022
    On Thursday, 1 December 2022 at 14:25:27 UTC, snosniv wrote:
    On Thursday, 1 December 2022 at 09:33:33 UTC, snosniv wrote:
    On Sunday, 27 November 2022 at 00:53:17 UTC, Michael Niehren wrote:
    Torsten Berg wrote:

    That's interesting. Can tclexecomp actually "cross-compile"? With freewrap
    I can make a Linux exe from Windows as far as I remember (log time ago I
    did this). Can tclexecomp produce Linux and Windows executables when operated from macOS, or does it need to run on the platform for which the
    code is?

    On Friday, November 25, 2022 at 9:14:24 PM UTC+1, Michael Niehren wrote:
    snosniv wrote:

    I've successfully converted my 3 Tcl/Tk files (GUI, Tooltips & Calcs)
    into a Windows exe file for my own use; however, I'd like to share it
    with some cycling friends, some of which use an OS other than Windows,
    primarily Android &/or iPad OS.

    Is it possible to create a suitable file that can be used on these >> > alternate OS's, and can it be done on my Windows PC? (Some of the >> > people I'd like to share with are less computer conversant than me, >> > hard to believe I know)! :-)
    you can use tclexecomp to create binaries for Windows, Linux and MacOS
    (but currently not for the M1). It is based on Freewrap. For Android >> binaries you can use Androwisth, but for iPad OS, i don't know a tool.
    Hi Torsten,

    tclexecomp can "cross-compile". You can use it under Windows and produce Binaries for Linux or MacOS or you can use it under MacOS and produce Binaries for Linux and Windows.

    And you can customize your binaries, which means, that you can delete unneeded modules in the binariy.

    Take a look at https://tclexecomp.sourceforge.net/

    best regards
    Michael
    I'm getting nowhere with tclexecomp at all.
    So, this is what I did, what am I doing wrong please? (This is all on a Windows 10 PC)
    Downloaded from sourceforge, unzipped to get a bunch of similarly named files in new dir "tclexecomp",
    joined my 3 files together into 1 called ZBUILD.tcl & put in sub-dir wrap as per instructions.

    (Note:- ZBUILD.tcl converted to ZBUILD.exe with just Freewrap & works fine).

    In a command window I did the following:-

    compiled using: tclexecomp64 -compile wrap/Zbuild.tcl to wrap/ZBUILD.tbc Removed the ZBUILD.tcl file & then renamed ZBUILD.tbc to ZBUILD.tcl

    Then tried to build exe with:- tclexecomp64 wrap/ZBUILD.tcl wrap/* -forcewrap -w tclexecomp64.exe (as per instructions)
    This comes back with error saying "Cannot find wrap/* to wrap.

    So then tried without the wrap/* bit which did create ZBUILD.exe in the dir above wrap

    Clicked on this new exe file &just get error:- (Error sourcing /zvfs/wrap/ZBUILD.tcl: expected integer but got "I )

    So, just going round in circles with tclexecomp. :-(
    I'm happy with what Freewrap creates for the windows environment, but if I can't get tclexecomp to work for Windows, I expect the Mac version will not work either (and I have no way to test it myself), which is what I'm trying to create for a few
    friends who use Mac & not Windows.

    Any help much appreciated.
    UPDATE:
    I've now downloaded tclexecomp-V1.2.0 instead of V1.4.0 and behold, we have a working Windows exe file!
    I also created a Mac file, so now need a friend to test that for me somehow.

    When I download V1.4.0 I gat an extra file over the V1.2.0 version called: .tclexecomp.n.swp
    whatever that does?

    Regards, Kev P. (snosniv).

    I've since read about TclApp, which supposedly can wrap my files AND my image file into one exe file.
    I'd prefer this as the current versions I've built, either Freewrap or tclexecomp, seem to need my image.png file to be in same directory.
    However, I can't find TclApp anywhere to download; is it still available & where from?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From snosniv@21:1/5 to Torsten Berg on Fri Dec 2 04:58:09 2022
    On Thursday, 1 December 2022 at 21:57:52 UTC, Torsten Berg wrote:
    However, I can't find TclApp anywhere to download; is it still available & where from?
    TclApp is a part of the TclDevKit and now on Github: https://github.com/ActiveState/tdk

    It hasn't been updated in quite some time and I have never tried to make it run ... so I cannot help with installation unfortunately. As there doesn't seem to be good documentation either I guess you will have to go with trial and error.

    OK, thanks for that. A pity that tclexecomp doesn't wrap up the image as well, but still needs to have the image in a dir somewhere (I made it same dir to be simple),
    unless anyone can tell me how to wrap my tcl/tk file so the executable includes the image? (Windows & Mac).

    Kev P.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christian Werner@21:1/5 to All on Fri Dec 2 05:30:21 2022
    ...unless anyone can tell me how to wrap my tcl/tk file so the executable includes the image? (Windows & Mac).

    (Shameless plug) Did you try LUCK? Could do the job except for Android and iOS. See https://wiki.tcl-lang.org/page/LUCK for details.

    C.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Manfred Rosenberger@21:1/5 to snosniv on Mon Dec 12 03:20:02 2022
    snosniv schrieb am Donnerstag, 1. Dezember 2022 um 15:25:27 UTC+1:
    On Thursday, 1 December 2022 at 09:33:33 UTC, snosniv wrote:
    Any help much appreciated.
    UPDATE:
    I've now downloaded tclexecomp-V1.2.0 instead of V1.4.0 and behold, we have a working Windows exe file!
    I also created a Mac file, so now need a friend to test that for me somehow.

    When I download V1.4.0 I gat an extra file over the V1.2.0 version called: .tclexecomp.n.swp
    whatever that does?

    Regards, Kev P. (snosniv).

    I can test on linux and mac
    Manfred

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Leitgeb@21:1/5 to snosniv on Tue Dec 13 10:52:03 2022
    snosniv <[email protected]> wrote:
    When I download V1.4.0 I gat an extra file over the V1.2.0 version called: .tclexecomp.n.swp
    whatever that does?

    That is a temporary file, that appears, while tclexecomp.n is edited
    with "vim" editor. You can ignore it, or you could also edit
    tclexecomp.n with vim and get a note, that the file is already
    being edited, and you are asked whether to restore the other edit,
    discard or ignore it.

    In a nutshell:
    Apparently, the package creator created the package, while still in
    the editor for tclexecomp.n .

    PS:
    I saw that post from Dec 1st only now. Since none of the followups
    answered that point, I thought I'd do.

    Even if the package may have since been corrected (dunno),
    it might be good to know what ".*.swp" (sometimes also ".*.swo")
    files mean if they unexpectedly show up somewhere.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis LaBelle@21:1/5 to snosniv on Fri Dec 23 14:48:14 2022
    On 12/1/22 16:32, snosniv wrote:
    On Thursday, 1 December 2022 at 14:25:27 UTC, snosniv wrote:
    On Thursday, 1 December 2022 at 09:33:33 UTC, snosniv wrote:
    On Sunday, 27 November 2022 at 00:53:17 UTC, Michael Niehren wrote:
    Torsten Berg wrote:

    That's interesting. Can tclexecomp actually "cross-compile"? With freewrap
    I can make a Linux exe from Windows as far as I remember (log time ago I >>>>> did this). Can tclexecomp produce Linux and Windows executables when >>>>> operated from macOS, or does it need to run on the platform for which the >>>>> code is?

    On Friday, November 25, 2022 at 9:14:24 PM UTC+1, Michael Niehren wrote: >>>>>> snosniv wrote:

    I've successfully converted my 3 Tcl/Tk files (GUI, Tooltips & Calcs) >>>>>>> into a Windows exe file for my own use; however, I'd like to share it >>>>>>> with some cycling friends, some of which use an OS other than Windows, >>>>>>> primarily Android &/or iPad OS.

    Is it possible to create a suitable file that can be used on these >>>>>>> alternate OS's, and can it be done on my Windows PC? (Some of the >>>>>>> people I'd like to share with are less computer conversant than me, >>>>>>> hard to believe I know)! :-)
    you can use tclexecomp to create binaries for Windows, Linux and MacOS >>>>>> (but currently not for the M1). It is based on Freewrap. For Android >>>>>> binaries you can use Androwisth, but for iPad OS, i don't know a tool. >>>> Hi Torsten,

    tclexecomp can "cross-compile". You can use it under Windows and produce >>>> Binaries for Linux or MacOS or you can use it under MacOS and produce
    Binaries for Linux and Windows.

    And you can customize your binaries, which means, that you can delete
    unneeded modules in the binariy.

    Take a look at https://tclexecomp.sourceforge.net/

    best regards
    Michael
    I'm getting nowhere with tclexecomp at all.
    So, this is what I did, what am I doing wrong please? (This is all on a Windows 10 PC)
    Downloaded from sourceforge, unzipped to get a bunch of similarly named files in new dir "tclexecomp",
    joined my 3 files together into 1 called ZBUILD.tcl & put in sub-dir wrap as per instructions.

    (Note:- ZBUILD.tcl converted to ZBUILD.exe with just Freewrap & works fine).

    In a command window I did the following:-

    compiled using: tclexecomp64 -compile wrap/Zbuild.tcl to wrap/ZBUILD.tbc >>> Removed the ZBUILD.tcl file & then renamed ZBUILD.tbc to ZBUILD.tcl

    Then tried to build exe with:- tclexecomp64 wrap/ZBUILD.tcl wrap/* -forcewrap -w tclexecomp64.exe (as per instructions)
    This comes back with error saying "Cannot find wrap/* to wrap.

    So then tried without the wrap/* bit which did create ZBUILD.exe in the dir above wrap

    Clicked on this new exe file &just get error:- (Error sourcing /zvfs/wrap/ZBUILD.tcl: expected integer but got "I )

    So, just going round in circles with tclexecomp. :-(
    I'm happy with what Freewrap creates for the windows environment, but if I can't get tclexecomp to work for Windows, I expect the Mac version will not work either (and I have no way to test it myself), which is what I'm trying to create for a few
    friends who use Mac & not Windows.

    Any help much appreciated.
    UPDATE:
    I've now downloaded tclexecomp-V1.2.0 instead of V1.4.0 and behold, we have a working Windows exe file!
    I also created a Mac file, so now need a friend to test that for me somehow. >>
    When I download V1.4.0 I gat an extra file over the V1.2.0 version called: .tclexecomp.n.swp
    whatever that does?

    Regards, Kev P. (snosniv).

    I've since read about TclApp, which supposedly can wrap my files AND my image file into one exe file.
    I'd prefer this as the current versions I've built, either Freewrap or tclexecomp, seem to need my image.png file to be in same directory.
    However, I can't find TclApp anywhere to download; is it still available & where from?

    Hello,
    I'm the author of freeWrap upon which tclexecomp is based. Here are a
    few suggestions.

    It appears that tclexecomp does not expand your wrap/* argument into a
    list of files (freeWrap doesn't do that either). Under freeWrap you
    would put a list of all your needed files into a text file and use the
    -f option on the build command line to read your list of files. Perhaps tclexecomp supports the same command line argument.

    You can also include your image data directly into your source code by converting the image to a base64 encoded string and using a command like
    [image create photo -data $base64string] to load/create the image in TK.

    Dennis LaBelle

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Rickster@21:1/5 to snosniv on Sat Dec 24 16:32:46 2022
    On Thursday, November 24, 2022 at 7:31:30 AM UTC-8, snosniv wrote:
    I've successfully converted my 3 Tcl/Tk files (GUI, Tooltips & Calcs) into a Windows exe file for my own use; however, I'd like to share it with some cycling friends, some of which use an OS other than Windows, primarily Android &/or iPad OS.

    Is it possible to create a suitable file that can be used on these alternate OS's, and can it be done on my Windows PC? (Some of the people I'd like to share with are less computer conversant than me, hard to believe I know)! :-)
    I use tclapp to create exes for commercial purposes.
    Install the devkit from the address shown in another reply and you should be good to go.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Niehren@21:1/5 to snosniv on Tue Jan 3 23:14:25 2023
    Hi snosiv,

    which version of tclexecomp did you use ?

    Could you please try to do the following, which run's here.
    - create a file called test.tcl with the following content
    console show
    puts "das ist ein Test"
    - put tclexecomp64 and tclexecomp64.exe into the same directory
    - create an directory called wrap
    - compile the test.tcl with
    ./tclexecomp64 -compile test.tcl
    - copy the test.tbc to the wrap directory
    - call ./tclexecomp64 wrap/test.tcl -forcewrap -w tclexecomp64.exe
    - try out the test.exe
    - call ./tclexecomp64 wrap/test.tcl wrap/* -forcewrap -w tclexecomp64.exe
    - try out again the test.exe

    both of them runs here without any errors on the upcoming tclexecomp V1.5.0, which updates to tcl/tk V8.6.13 and also fixes errors on MacOS > V11.

    you can also open an issue at codeberg, which will be the new location of tclexecomp:
    https://codeberg.org/karl69/tclexecomp

    best regards
    Michael


    snosniv wrote:

    On Sunday, 27 November 2022 at 00:53:17 UTC, Michael Niehren wrote:
    Torsten Berg wrote:

    That's interesting. Can tclexecomp actually "cross-compile"? With
    freewrap I can make a Linux exe from Windows as far as I remember (log
    time ago I did this). Can tclexecomp produce Linux and Windows
    executables when operated from macOS, or does it need to run on the
    platform for which the code is?

    On Friday, November 25, 2022 at 9:14:24 PM UTC+1, Michael Niehren
    wrote:
    snosniv wrote:

    I've successfully converted my 3 Tcl/Tk files (GUI, Tooltips &
    Calcs) into a Windows exe file for my own use; however, I'd like to
    share it with some cycling friends, some of which use an OS other
    than Windows, primarily Android &/or iPad OS.

    Is it possible to create a suitable file that can be used on these
    alternate OS's, and can it be done on my Windows PC? (Some of the
    people I'd like to share with are less computer conversant than me,
    hard to believe I know)! :-)
    you can use tclexecomp to create binaries for Windows, Linux and MacOS
    (but currently not for the M1). It is based on Freewrap. For Android
    binaries you can use Androwisth, but for iPad OS, i don't know a tool.
    Hi Torsten,

    tclexecomp can "cross-compile". You can use it under Windows and produce
    Binaries for Linux or MacOS or you can use it under MacOS and produce
    Binaries for Linux and Windows.

    And you can customize your binaries, which means, that you can delete
    unneeded modules in the binariy.

    Take a look at https://tclexecomp.sourceforge.net/

    best regards
    Michael

    I'm getting nowhere with tclexecomp at all.
    So, this is what I did, what am I doing wrong please? (This is all on a Windows 10 PC) Downloaded from sourceforge, unzipped to get a bunch of similarly named files in new dir "tclexecomp", joined my 3 files together into 1 called ZBUILD.tcl & put in sub-dir wrap as per instructions.

    (Note:- ZBUILD.tcl converted to ZBUILD.exe with just Freewrap & works
    fine).

    In a command window I did the following:-

    compiled using: tclexecomp64 -compile wrap/Zbuild.tcl to wrap/ZBUILD.tbc Removed the ZBUILD.tcl file & then renamed ZBUILD.tbc to ZBUILD.tcl

    Then tried to build exe with:- tclexecomp64 wrap/ZBUILD.tcl wrap/* -forcewrap -w tclexecomp64.exe (as per instructions)
    This comes back with error saying "Cannot find wrap/* to wrap.

    So then tried without the wrap/* bit which did create ZBUILD.exe in the
    dir above wrap

    Clicked on this new exe file &just get error:- (Error sourcing /zvfs/wrap/ZBUILD.tcl: expected integer but got "I )

    So, just going round in circles with tclexecomp. :-(
    I'm happy with what Freewrap creates for the windows environment, but if I can't get tclexecomp to work for Windows, I expect the Mac version will
    not work either (and I have no way to test it myself), which is what I'm trying to create for a few friends who use Mac & not Windows.

    Any help much appreciated.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From snosniv@21:1/5 to Michael Niehren on Thu Jan 19 07:50:32 2023
    On Tuesday, 3 January 2023 at 22:14:31 UTC, Michael Niehren wrote:
    Hi snosiv,

    which version of tclexecomp did you use ?

    Could you please try to do the following, which run's here.
    - create a file called test.tcl with the following content
    console show
    puts "das ist ein Test"
    - put tclexecomp64 and tclexecomp64.exe into the same directory
    - create an directory called wrap
    - compile the test.tcl with
    ./tclexecomp64 -compile test.tcl
    - copy the test.tbc to the wrap directory
    - call ./tclexecomp64 wrap/test.tcl -forcewrap -w tclexecomp64.exe
    - try out the test.exe
    - call ./tclexecomp64 wrap/test.tcl wrap/* -forcewrap -w tclexecomp64.exe
    - try out again the test.exe

    both of them runs here without any errors on the upcoming tclexecomp V1.5.0, which updates to tcl/tk V8.6.13 and also fixes errors on MacOS > V11.

    you can also open an issue at codeberg, which will be the new location of tclexecomp:
    https://codeberg.org/karl69/tclexecomp

    best regards
    Michael
    snosniv wrote:

    On Sunday, 27 November 2022 at 00:53:17 UTC, Michael Niehren wrote:
    Torsten Berg wrote:

    That's interesting. Can tclexecomp actually "cross-compile"? With
    freewrap I can make a Linux exe from Windows as far as I remember (log >> > time ago I did this). Can tclexecomp produce Linux and Windows
    executables when operated from macOS, or does it need to run on the
    platform for which the code is?

    On Friday, November 25, 2022 at 9:14:24 PM UTC+1, Michael Niehren
    wrote:
    snosniv wrote:

    I've successfully converted my 3 Tcl/Tk files (GUI, Tooltips &
    Calcs) into a Windows exe file for my own use; however, I'd like to >> >> > share it with some cycling friends, some of which use an OS other
    than Windows, primarily Android &/or iPad OS.

    Is it possible to create a suitable file that can be used on these
    alternate OS's, and can it be done on my Windows PC? (Some of the
    people I'd like to share with are less computer conversant than me, >> >> > hard to believe I know)! :-)
    you can use tclexecomp to create binaries for Windows, Linux and MacOS >> >> (but currently not for the M1). It is based on Freewrap. For Android
    binaries you can use Androwisth, but for iPad OS, i don't know a tool. >> Hi Torsten,

    tclexecomp can "cross-compile". You can use it under Windows and produce >> Binaries for Linux or MacOS or you can use it under MacOS and produce
    Binaries for Linux and Windows.

    And you can customize your binaries, which means, that you can delete
    unneeded modules in the binariy.

    Take a look at https://tclexecomp.sourceforge.net/

    best regards
    Michael

    I'm getting nowhere with tclexecomp at all.
    So, this is what I did, what am I doing wrong please? (This is all on a Windows 10 PC) Downloaded from sourceforge, unzipped to get a bunch of similarly named files in new dir "tclexecomp", joined my 3 files together into 1 called ZBUILD.tcl & put in sub-dir wrap as per instructions.

    (Note:- ZBUILD.tcl converted to ZBUILD.exe with just Freewrap & works fine).

    In a command window I did the following:-

    compiled using: tclexecomp64 -compile wrap/Zbuild.tcl to wrap/ZBUILD.tbc Removed the ZBUILD.tcl file & then renamed ZBUILD.tbc to ZBUILD.tcl

    Then tried to build exe with:- tclexecomp64 wrap/ZBUILD.tcl wrap/* -forcewrap -w tclexecomp64.exe (as per instructions)
    This comes back with error saying "Cannot find wrap/* to wrap.

    So then tried without the wrap/* bit which did create ZBUILD.exe in the
    dir above wrap

    Clicked on this new exe file &just get error:- (Error sourcing /zvfs/wrap/ZBUILD.tcl: expected integer but got "I )

    So, just going round in circles with tclexecomp. :-(
    I'm happy with what Freewrap creates for the windows environment, but if I can't get tclexecomp to work for Windows, I expect the Mac version will
    not work either (and I have no way to test it myself), which is what I'm trying to create for a few friends who use Mac & not Windows.

    Any help much appreciated.

    I'm now trying to find out if the Mac version works that I created, so far not apparently (a friend is trying to test).
    The conversion worked fine for my Windows PC, so will the tclexecomp conversion actually build a Mac executable if done on a a windows PC,
    or does it have to be on a Mac itself to convert the Tcl files successfully?

    I'd assumed al lwould be well with the PC conversion.

    Kev P.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christian Gollwitzer@21:1/5 to All on Thu Jan 19 21:06:54 2023
    Am 19.01.23 um 16:50 schrieb snosniv:
    I'm now trying to find out if the Mac version works that I created, so far not apparently (a friend is trying to test).
    The conversion worked fine for my Windows PC, so will the tclexecomp conversion actually build a Mac executable if done on a a windows PC,
    or does it have to be on a Mac itself to convert the Tcl files successfully?

    I'd assumed al lwould be well with the PC conversion.


    Hi snosiv,

    I've got no experience with Freewrap, instead I use tclkits, but the
    result should be the same - in general an application can be
    "cross-compiled" if you have the correct Tcl compiled for the other
    platform.

    However, there is an idiosyncracy on the Mac; Apple has activated a Firewall-like thing called "Gatekeeper" in recent versions of the OS
    which prevents the execution of a binary that you download off the
    internet, unless it is signed (costs $$ per year and requires some
    knowledge) and even then, it asks for permission of the downloaded
    software.

    Another thing is that, in order to build a "true" Mac app, one has to
    provide a special folder structure then create a compressed DMG image,
    which only works on the Mac. Otherwise, the executable cannot be run in
    the regular way (dropping it into /Applications etc.) and does not have
    icons, associated files etc.

    Christian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From snosniv@21:1/5 to Christian Gollwitzer on Fri Jan 20 03:59:53 2023
    On Thursday, 19 January 2023 at 20:06:58 UTC, Christian Gollwitzer wrote:
    Am 19.01.23 um 16:50 schrieb snosniv:
    I'm now trying to find out if the Mac version works that I created, so far not apparently (a friend is trying to test).
    The conversion worked fine for my Windows PC, so will the tclexecomp conversion actually build a Mac executable if done on a a windows PC,
    or does it have to be on a Mac itself to convert the Tcl files successfully?

    I'd assumed al lwould be well with the PC conversion.
    Hi snosiv,

    I've got no experience with Freewrap, instead I use tclkits, but the
    result should be the same - in general an application can be "cross-compiled" if you have the correct Tcl compiled for the other platform.

    However, there is an idiosyncracy on the Mac; Apple has activated a Firewall-like thing called "Gatekeeper" in recent versions of the OS
    which prevents the execution of a binary that you download off the
    internet, unless it is signed (costs $$ per year and requires some knowledge) and even then, it asks for permission of the downloaded
    software.

    Another thing is that, in order to build a "true" Mac app, one has to provide a special folder structure then create a compressed DMG image,
    which only works on the Mac. Otherwise, the executable cannot be run in
    the regular way (dropping it into /Applications etc.) and does not have icons, associated files etc.

    Christian

    Thanks for the info Christian, sounds like it's going to be difficult to get my code to run on a Mac. 🙁
    But going to try once more when Mac owning friend gets back from hols.
    Bit of a shame as it was very simple to create the Windows version (which works just fine).
    Kev P.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Torsten Berg@21:1/5 to snosniv on Mon Jan 23 06:09:27 2023
    Hm,

    for a Mac version of my software, I do not use freewrap or other wrapping software. Mac binaries are so-called "bundles" (in fact a special kind of folder with some files inside) and can easily be created starting from an embedded Tcl build. This build
    is a valid Mac bundle itself already and you just need to provide an init script (AppMain.tcl) and your other stuff to it by copying the files into the bundle (it is a simple copy and paste action). Then, only some other customizations are needed if you
    want to. See here for a nice description:

    https://codebykevin.com/tutorial.html



    On Friday, January 20, 2023 at 12:59:56 PM UTC+1, snosniv wrote:
    On Thursday, 19 January 2023 at 20:06:58 UTC, Christian Gollwitzer wrote:
    Am 19.01.23 um 16:50 schrieb snosniv:
    I'm now trying to find out if the Mac version works that I created, so far not apparently (a friend is trying to test).
    The conversion worked fine for my Windows PC, so will the tclexecomp conversion actually build a Mac executable if done on a a windows PC,
    or does it have to be on a Mac itself to convert the Tcl files successfully?

    I'd assumed al lwould be well with the PC conversion.
    Hi snosiv,

    I've got no experience with Freewrap, instead I use tclkits, but the result should be the same - in general an application can be "cross-compiled" if you have the correct Tcl compiled for the other platform.

    However, there is an idiosyncracy on the Mac; Apple has activated a Firewall-like thing called "Gatekeeper" in recent versions of the OS
    which prevents the execution of a binary that you download off the internet, unless it is signed (costs $$ per year and requires some knowledge) and even then, it asks for permission of the downloaded software.

    Another thing is that, in order to build a "true" Mac app, one has to provide a special folder structure then create a compressed DMG image, which only works on the Mac. Otherwise, the executable cannot be run in the regular way (dropping it into /Applications etc.) and does not have icons, associated files etc.

    Christian
    Thanks for the info Christian, sounds like it's going to be difficult to get my code to run on a Mac. 🙁
    But going to try once more when Mac owning friend gets back from hols.
    Bit of a shame as it was very simple to create the Windows version (which works just fine).
    Kev P.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From snosniv@21:1/5 to snosniv on Thu Feb 2 09:53:30 2023
    On Friday, 20 January 2023 at 11:59:56 UTC, snosniv wrote:
    On Thursday, 19 January 2023 at 20:06:58 UTC, Christian Gollwitzer wrote:
    Am 19.01.23 um 16:50 schrieb snosniv:
    I'm now trying to find out if the Mac version works that I created, so far not apparently (a friend is trying to test).
    The conversion worked fine for my Windows PC, so will the tclexecomp conversion actually build a Mac executable if done on a a windows PC,
    or does it have to be on a Mac itself to convert the Tcl files successfully?

    I'd assumed al lwould be well with the PC conversion.
    Hi snosiv,

    I've got no experience with Freewrap, instead I use tclkits, but the result should be the same - in general an application can be "cross-compiled" if you have the correct Tcl compiled for the other platform.

    However, there is an idiosyncracy on the Mac; Apple has activated a Firewall-like thing called "Gatekeeper" in recent versions of the OS
    which prevents the execution of a binary that you download off the internet, unless it is signed (costs $$ per year and requires some knowledge) and even then, it asks for permission of the downloaded software.

    Another thing is that, in order to build a "true" Mac app, one has to provide a special folder structure then create a compressed DMG image, which only works on the Mac. Otherwise, the executable cannot be run in the regular way (dropping it into /Applications etc.) and does not have icons, associated files etc.

    Christian
    Thanks for the info Christian, sounds like it's going to be difficult to get my code to run on a Mac. 🙁
    But going to try once more when Mac owning friend gets back from hols.
    Bit of a shame as it was very simple to create the Windows version (which works just fine).
    Kev P.

    A friend tried the code I compiled on my Win10PC using tclexecomp, but targeting a Mac,
    his Mac recognised it as an app, but it wouldn't open. :-(

    Is there another way to build a Mac app from tcl/tk code on a PC,
    or will I need to use a Mac and something like Aqua, which I've been told about?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)