Version française
Home     About     Download     Resources     Contact us    
Browse thread
labltk bind ~events list questions/bugs?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Vladimir Vyskocil <vladimir.vyskocil@r...>
Subject: Re: labltk bind ~events list questions/bugs?
John Max Skaller wrote:

> Chris Hecker wrote:
> 
>> 3. I'd like to be able to distribute an executable compiled with labltk and lablgl without having people have to have tcl/tk installed.  Has anybody successfully statically linked tk into an ocaml app?  Perl/Tk is set up such that it doesn't depend on the tcl/tk distribution, so I assume this is possible.  Would it be a ton of work?
> 
> 
> AFAIK: Perl must be clever: Tcl and Tk require directories with 
> (script) files on disk to operate: statically linking the binary isn't
> enough.


I had the same problem which I solved by merging all the tcl/tk 
libraries files (written in
TCL) into one big file then I converted this file to "C" code (one big 
string which was evaluated
by the Tcl_Eval function) and this code was linked to Caml.

-- 
Vyskocil Vladimir
Ingenieur Systeme - Unite Systeme & Securite IP
Rightvision - The Internet Appliance Company
e-mail: vladimir.vyskocil@rightvision.com