caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Thomas Gazagnaire <thomas@ocamlpro.com>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] lablgtk2: cannot find the Pango module?
Date: Tue, 16 Jul 2013 09:37:15 +0200	[thread overview]
Message-ID: <AA8AC56B-67CA-4491-B012-2A93BC94D9FE@ocamlpro.com> (raw)
In-Reply-To: <m28v186izh.fsf@polytechnique.org>

> ocamlopt -g -I lwt -I ubase -I system -I fsmonitor -I fsmonitor/linux -I fsmonitor/windows -I system/generic -I lwt/generic -ccopt -mmacosx-version-min=10.5 -I +lablgtk2 -c /Users/schmitta/src/unison/trunk/src/uigtk2.ml
> File "/Users/schmitta/src/unison/trunk/src/uigtk2.ml", line 81, characters 26-48:
> Error: Unbound module Pango
> 
> The strange thing is that when I launch the lablgtk2 toplevel, I can do
> a "open Pango" with no error.

I guess the -I +lablgtk2 does not use the right path. Under OPAM, files are installed in `opam config var lib`/labgtk (`opam config var labgtk:lib` in master). Or you can use the ocamlfind installation path: `ocamlfind query lablgtk`.

Thomas

> I'm using an opam-installed version of lablgtk2 on OS X (with a gtk from
> homebrew), and I can see a pango.cmx file in the place pointed by
> ocamlfind. I can also build some other gtk-based applications such as
> Why3. Could someone please tell me if the compilation options above are
> correct?
> 
> Thanks,
> 
> Alan
> 
> -- 
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs


  reply	other threads:[~2013-07-16  7:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-15 13:38 Alan Schmitt
2013-07-16  7:37 ` Thomas Gazagnaire [this message]
2013-07-16 19:21   ` Adrien Nader
2013-07-17 13:26     ` Alan Schmitt

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=AA8AC56B-67CA-4491-B012-2A93BC94D9FE@ocamlpro.com \
    --to=thomas@ocamlpro.com \
    --cc=alan.schmitt@polytechnique.org \
    --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).