Ticket Change Details
Overview

Artifact ID: 3caaa16d994487a8c4d228cfc219742b42a2317f
Ticket: f929fddcfc1cced456821d15ac44dcd863b4ff85
Tclkit generation problems
User & Date: rkeene on 2012-09-25 15:29:39
Changes

  1. comment changed to:
    Firstly i'd like to say: Wow, thanks for building KitCreator, it's mega easy to create starkits, even cross compiling them!!<div><br /></div><div>Now my problems so far:</div><div>When compiling everything succeeded (after many tries)</div><div><br /></div><div><div>./kitcreator 8.6b3</div><div>Building tcl ... <strong>done</span>.</div><div>Building tclvfs ... <strong>done</span>.</div><div>Building zlib ... <span style="font-weight: bold;">done</span>.</div><div>Building tk ... <span style="font-weight: bold;">done</span>.</div><div>Building itcl ... <span style="font-weight: bold;">done</span>.</div><div>Building mk4tcl ... <span style="font-weight: bold;">done</span>.</div><div>Building kitsh ... <span style="font-weight: bold;">done</span>.</div></div><div><br /></div><div>When I try to run it i get this:</div><div><div><span style="font-weight: bold;">./tclkit-local&nbsp;</span></div><div>application-specific initialization failed: couldn't read file "/home/lostone/Programare/Tcl/freewrap-starkits/kitcreator/tclkit-local/lib/tcl8.6/init.tcl": invalid seek</div></div><div><br /></div><div>Even if I run ./tclkit-8.6b3</div><div><br /></div><div>When I compile it <span style="text-decoration: underline;">without</span> <span style="text-decoration: underline;">mk4tcl</span>&nbsp;but use&nbsp;<span style="font-weight: bold;">cvfs </span>or <span style="font-weight: bold;">zip</span>&nbsp;instead.. It compiles, when I run it, it WORKS if I source any file. But i have a problem.</div><div><br /></div><div>I can't seem to ever be able to succesfully build a starpack or use sdx.kit:</div><div>(I know it uses &nbsp;vfs:mk4 but wth..?)</div><div><br /></div><div><div>an't find package vfs::mkcl</div><div>&nbsp; &nbsp; while executing</div><div>"package require vfs::mkcl"</div><div>&nbsp; &nbsp; (procedure "::vfs::mk4::Mount" line 4)</div><div>&nbsp; &nbsp; invoked from within</div><div>"::vfs::mk4::Mount /home/lostone/Programare/Tcl/freewrap-starkits/sdx.kit /home/lostone/Programare/Tcl/freewrap-starkits/sdx.kit -readonly"</div><div>&nbsp; &nbsp; ("eval" body line 1)</div><div>&nbsp; &nbsp; invoked from within</div><div>"eval [list ::vfs::${driver}::Mount $self $self] $args"</div></div><div><br /></div><div><span style="text-decoration: underline;">Is there any (other) way I can build "starpacks" of my applications?</span></div><div>Can I just append ZIPS? I'd be glad if anything else works!</div><div><br /></div><div>Also doing a "package names" only gives a few names.. If I append any .tcl file to the executable and then do "package names" i get all the packages..</div><div>95% of them source, some give errors like this:</div><div><div>couldn't read file "/home/lostone/Programare/Tcl/freewrap-starkits/kitcreator/tclkit-8.6b3/lib/vfs/mk4vfs.tcl": no such file or directory</div></div><div><br /></div><div>I tried building starkits with <span style="font-weight: bold;">kitgen</span>, <span style="font-weight: bold;">kbs</strong>&nbsp;and even to compile It myself but I failed miserably every time. I think it either must be a 8.6b bug or something in the settings. The weird thing <span style="font-weight: bold;">YOUR </strong>app was the ONLY one to run the code without coughing anything.. Though no starkit/starpack/zip way to deploy an app.</div><div><br /></div><div>Thanks in advance and keep up the good work!</div><div><br /></div>
    
    <hr /><i>anonymous added on 2012-09-25 07:59:00 UTC:</i><br />
    <pre>
    Firstly i'd like to say: Wow, thanks for building KitCreator, it's mega easy to create starkits, even cross compiling them!!
    
    Now my problems so far:
    When compiling everything succeeded (after many tries)
    
    ./kitcreator 8.6b3
    Building tcl ... done.
    Building tclvfs ... done.
    Building zlib ... done.
    Building tk ... done.
    Building itcl ... done.
    Building mk4tcl ... done.
    Building kitsh ... done.
    
    
    When I try to run it i get this:
    ./tclkit-local 
    application-specific initialization failed: couldn't read file "/home/lostone/Programare/Tcl/freewrap-starkits/kitcreator/tclkit-local/lib/tcl8.6/init.tcl": invalid seek
    
    Even if I run ./tclkit-8.6b3
    
    When I compile it without mk4tcl but use cvfs or zip instead.. It compiles, when I run it, it WORKS if I source any file. But i have a problem.
    
    I can't seem to ever be able to succesfully build a starpack or use sdx.kit:
    (I know it uses  vfs:mk4 but wth..?)
    
    an't find package vfs::mkcl
        while executing
    "package require vfs::mkcl"
        (procedure "::vfs::mk4::Mount" line 4)
        invoked from within
    "::vfs::mk4::Mount /home/lostone/Programare/Tcl/freewrap-starkits/sdx.kit /home/lostone/Programare/Tcl/freewrap-starkits/sdx.kit -readonly"
        ("eval" body line 1)
        invoked from within
    "eval [list ::vfs::${driver}::Mount $self $self] $args"
    
    Is there any (other) way I can build "starpacks" of my applications?
    Can I just append ZIPS? I'd be glad if anything else works!
    
    Also doing a "package names" only gives a few names.. If I append any .tcl file to the executable and then do "package names" i get all the packages..
    95% of them source, some give errors like this:
    couldn't read file "/home/lostone/Programare/Tcl/freewrap-starkits/kitcreator/tclkit-8.6b3/lib/vfs/mk4vfs.tcl": no such file or directory
    
    I tried building starkits with kitgen, kbs and even to compile It myself but I failed miserably every time. I think it either must be a 8.6b bug or something in the settings. The weird thing YOUR app was the ONLY one to run the code without coughing anything.. Though no starkit/starpack/zip way to deploy an app.
    
    Thanks in advance and keep up the good work!
    </pre>
    
    \n<br/>Sorry about the bad editing, i thought it would come out as I typed with bold and stuff.. seems i ought to had used pre
    
    <hr /><i>rkeene added on 2012-09-25 15:28:38 UTC:</i><br />
    To whom it may concern,
    
    There is an issue with Metakit and Tcl trunk (8.6b3 was just 
    released from trunk).  I have not resolved it yet, but it will likely 
    result in a new patch against metakit being added to kitcreator's list of 
    metakit patches.
    
    In the mean-time you can indeed use zip- or cvfs-based storage.
    
    In zip-based storage there is a zip-file already appended to the 
    exectuable that you need to update.  You should be able to extract it 
    using the "unzip" command, or update it using the "zip" command.
    
    For cvfs-based storage the base of the kit is stored in an internal 
    archive that cannot be modified, but if you attach your source code in the 
    form of a zip file appended to the end of the executable it will be picked 
    up and used.
    
    That is, for CVFS:
    <pre>
            cd myapp.vfs
            zip -r ../myapp.zip *
            cd ..
            cat tclkit-using-cvfs myapp.zip > tclkit-with-myapp
            chmod +x tclkit-with-myapp
    </pre>
    
    Thanks,
            Roy Keene