From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p6SCi4r4004843 for ; Thu, 28 Jul 2011 14:44:04 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar0DAERZMU5KfVK2kGdsb2JhbABPAjIBHx4DFAkBBlsTARIBBQEeS5glhm0BiBQIFAEBAQEJCQ0HFAQhqleCUgqMK4JShHw7iG0CAwaGOwSSeYxMPINe X-IronPort-AV: E=Sophos;i="4.67,282,1309730400"; d="scan'208";a="104114158" Received: from mail-wy0-f182.google.com ([74.125.82.182]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 28 Jul 2011 14:43:59 +0200 Received: by wyg24 with SMTP id 24so713wyg.27 for ; Thu, 28 Jul 2011 05:43:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=D3d8pZP6b6AIIKlk/TFyAvTDDlpC129UelQoJLq9INI=; b=kBGNULimBjzEk18vsyiWr6M4aEsNOMVo/1CT0r++btdH5HzgEfYJaJvlOxwsSU3RLZ ZW4PC23iH7brIYYxaumHbhYSMRv/UbUa8UcZIElXMroRA2omzH/+/MGxIKNOuymI5Yyb Hf5GS22MTtVyK9WJQUWRIRM0aC3ztta3zG2mg= MIME-Version: 1.0 Received: by 10.227.27.195 with SMTP id j3mr208469wbc.45.1311857038788; Thu, 28 Jul 2011 05:43:58 -0700 (PDT) Received: by 10.216.61.141 with HTTP; Thu, 28 Jul 2011 05:43:58 -0700 (PDT) Date: Thu, 28 Jul 2011 14:43:58 +0200 Message-ID: From: ben mailist To: caml-list@inria.fr Content-Type: multipart/alternative; boundary=0022159745eacb06cc04a920843e Subject: [Caml-list] creating a standalone labltk program --0022159745eacb06cc04a920843e Content-Type: text/plain; charset=ISO-8859-1 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 --0022159745eacb06cc04a920843e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable hi

I try to staticall link all necessary libraries to cr= eate a standalone labltk application. So that it is no longer necessary to = install the tcl/tk runtime on the target machine.

Environment:
=A0=A0- mac os x 10.6
=A0=A0- ocaml 3.12.1=

Build command:
=A0=A0 =A0
=A0= =A0 =A0$ ocamlopt -o lb -linkall =A0-I +labltk labltk.cmxa listbox01.ml=A0

Size looks promising:

=A0=A0 = =A0$ du -sh lb
=A0=A0 =A0 2.6 M

But its = not running. After disabling the Tk.framework directory, I get this=A0

Error:

=A0=A0 =A0$ ./lb
dyld: = Library not loaded: /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk=
=A0=A0Referenced from: /Volumes/.../temp/./lb
=A0=A0Re= ason: image not found
Trace/BPT trap

Apparently the '-lin= kall' switch is not enough. Is this something that has to be defined wi= th ./configure when compiling ocaml? I couldn't find an appropriate ./c= onfigure switch for that.

thanks in advance
ben
--0022159745eacb06cc04a920843e--