From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p6UELWZu022512 for ; Sat, 30 Jul 2011 16:21:32 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnUHAAQTNE7RVdIyjWdsb2JhbABBnCuLLwgUAQEBAQkJCwkSBiGBQAEBAQECARICJgYBOAEDAQsBBQU0EjQBBQEcBjWHSqNuCo8DhBaJKAIDBoVdXwSHWIsjhi2GHzyBP4Is X-IronPort-AV: E=Sophos;i="4.67,291,1309730400"; d="scan'208";a="114536259" Received: from mail-pz0-f50.google.com ([209.85.210.50]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 30 Jul 2011 16:21:03 +0200 Received: by pzk2 with SMTP id 2so8665214pzk.37 for ; Sat, 30 Jul 2011 07:21:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=VYY/pGz4ol2xpws3FdycohUL02xfuF4nSUXE9E6SEIc=; b=CVbpd6Ji3CnOkAsDPpyXsqQUwo50hpCwiT3KD1IR68FL/p/Dyc/PGrIoXvDW6X98Kr yYz7+mQZKhu12Q1x1Ju9wIzknXL0kJ7LjSKZnGVjPRS2V27n2gg031JlBK+JgXvcCiwB c99HmnR+jn1ziIO2oqZ8TjkzmNh0oqXbPdO4w= Received: by 10.68.66.170 with SMTP id g10mr255914pbt.490.1312035662317; Sat, 30 Jul 2011 07:21:02 -0700 (PDT) Received: from tet.garrigue.jp (58x158x128x157.ap58.ftth.ucom.ne.jp [58.158.128.157]) by mx.google.com with ESMTPS id v1sm3299766pbg.15.2011.07.30.07.21.00 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 30 Jul 2011 07:21:01 -0700 (PDT) Sender: Jacques Garrigue Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Jacques Garrigue In-Reply-To: Date: Sat, 30 Jul 2011 23:20:58 +0900 Cc: caml-list@inria.fr Message-Id: <570F5DAA-8018-494E-B4CB-8B63DB166157@math.nagoya-u.ac.jp> References: To: ben mailist X-Mailer: Apple Mail (2.1084) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p6UELWZu022512 Subject: Re: [Caml-list] creating a standalone labltk program On 2011/07/28, at 21:43, ben mailist wrote: > hi > > I try to staticall link all necessary libraries to create a standalone labltk application. So that it is no longer necessary to install the tcl/tk runtime on the target machine. Unfortunately, this is more or less impossible to achieve: Tcl/Tk requires its own library of tcl scripts to be installed on the target machine, so that you cannot be really standalone. By either using ocamlopt or ocamlc -custom, you limit the dependency to having the right version of Tcl/Tk installed, which should not be too hard on Unix/OSX or for a motivated windows user. The situation is a bit better with lablgtk: you can create standalone executables (see unison for instance for how to do that). You loose part of the functionality of gtk (themes and input methods require dynamic loading), but your application will still work. Jacques Garrigue