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 -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs
