caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: ben mailist <ben.mailist@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] creating a standalone labltk program
Date: Sat, 30 Jul 2011 23:20:58 +0900	[thread overview]
Message-ID: <570F5DAA-8018-494E-B4CB-8B63DB166157@math.nagoya-u.ac.jp> (raw)
In-Reply-To: <CAHR=9vL2ZF1DkqVx3LJJBQ-7+=y63147X7k_KU0GC0H7jH4WGw@mail.gmail.com>

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

      parent reply	other threads:[~2011-07-30 14:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-28 12:43 ben mailist
2011-07-30 10:35 ` ygrek
2011-07-30 14:20 ` Jacques Garrigue [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=570F5DAA-8018-494E-B4CB-8B63DB166157@math.nagoya-u.ac.jp \
    --to=garrigue@math.nagoya-u.ac.jp \
    --cc=ben.mailist@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).