[Starkit] [Fwd: tclkit on Nokia 770 with Internet Tablet 2006 Edition]

Jean-Claude Wippler jcw at equi4.com
Sun Aug 27 14:42:20 CEST 2006


> From: Reinhard Fobbe <reinhard.fobbe at arcor.de>
>
> The Internet Tablet 2006 Edition on the Nokia 770 device is not  
> binary compatible with the 2005 version. Please also see the  
> comments at http://www.maemo.org/maemowiki/ApplicationCatalog2006.  
> Therefore I built tclkit for OS2006. It seemed to run fine, but a  
> "package require Tk" triggered this error message: error writing  
> "file4": no space left on device The Nokia has only 512 free blocks  
> under /tmp and that is not enough to unpack the libtk8.5.so which  
> has more then 1MByte. I changed the tclkit in the following way to  
> work around this problem: - removed the itcl and tk package  
> completely from tclkit and store it under /usr/tcl/lib - added /usr/ 
> tcl/lib to auto_path to access external package s That seems to  
> work fine. Please tell me if this the right approach or not. On one  
> side it violates the rule "just copy to install", but on the othe  
> side it avoids frequent writes on the memory card (every tk start  
> writes 1 MB on the flash card). Reinhard

Would it be possible to build this with tk linked-in statically?

The default in genkit is to build a "kitsh" binary (tclsh etc) with a  
"tkdyn" shared lib that gets added to the VFS.  As you say, that  
unpacks and loads tk as shared lib when needed.

But if you do "genkit B all", it should also build a "kit" binary,  
which has tk and itcl linked-in statically (as well as a kitlite,  
with vlerq i.s.o. mk4tcl).  Since the Nokia 770 always has a GUI, the  
need for a command-line-only version is gone.

To create a tclkit that works with this static tk/itcl linkage, do  
"cat kit runtime.kit >n770tclkit".  This should produce an executable  
that works without dynamic libs.  The "kit" file can be found in  
"install/`hostname`/kit", the "runtime.kit" file is at "tars/ 
runtime85.kit".

(On 770, you need to build 8.5, not 8.4, and enable xft support, AFAIK)

-jcw


More information about the Starkit mailing list