From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA30867 for caml-red; Thu, 4 Jan 2001 14:04:48 +0100 (MET) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA16735 for ; Wed, 3 Jan 2001 15:28:38 +0100 (MET) Received: from ns.rightvision.com (ns.rightvision.com [195.154.132.34]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f03ESXb15170 for ; Wed, 3 Jan 2001 15:28:38 +0100 (MET) Received: from rightvision.com (fw.rightvision.com [195.154.132.33] (may be forged)) by ns.rightvision.com (8.9.3/8.9.3) with ESMTP id PAA02124 for ; Wed, 3 Jan 2001 15:29:25 +0100 Message-ID: <3A533762.6040801@rightvision.com> Date: Wed, 03 Jan 2001 15:29:54 +0100 From: Vladimir Vyskocil User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16 i586; en-US; 0.6) Gecko/20001205 X-Accept-Language: en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: labltk bind ~events list questions/bugs? References: <4.3.2.7.2.20001226234205.00afd710@shell16.ba.best.com> <3A4F961C.FFF9D144@ozemail.com.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: weis@pauillac.inria.fr 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