caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: ben mailist <ben.mailist@gmail.com>
To: caml-list@inria.fr
Subject: [Caml-list] creating a standalone labltk program
Date: Thu, 28 Jul 2011 14:43:58 +0200	[thread overview]
Message-ID: <CAHR=9vL2ZF1DkqVx3LJJBQ-7+=y63147X7k_KU0GC0H7jH4WGw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 840 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1254 bytes --]

             reply	other threads:[~2011-07-28 12:44 UTC|newest]

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

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='CAHR=9vL2ZF1DkqVx3LJJBQ-7+=y63147X7k_KU0GC0H7jH4WGw@mail.gmail.com' \
    --to=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).