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.
Environment:
- mac os x 10.6
- ocaml 3.12.1
Build command:
$ ocamlopt -o lb -linkall -I +labltk labltk.cmxa listbox01.ml
Size looks promising:
$ du -sh lb
2.6 M
But its not running. After disabling the Tk.framework directory, I get this
Error:
$ ./lb
dyld: Library not loaded:
/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk
Referenced from: /Volumes/.../temp/./lb
Reason: image not found
Trace/BPT trap
Apparently the '-linkall' switch is not enough. Is this something that has
to be defined with ./configure when compiling ocaml? I couldn't find an
appropriate ./configure switch for that.
thanks in advance
ben
--
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