From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 7148981798 for ; Wed, 17 Jul 2013 15:26:39 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.89,684,1367964000"; d="scan'208";a="26345922" Received: from top.irisa.fr (HELO top) ([131.254.16.41]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA; 17 Jul 2013 15:26:39 +0200 References: <20130716192129.GA8915@notk.org> User-agent: mu4e 0.9.9.5; emacs 24.3.1 From: Alan Schmitt To: Adrien Nader Cc: Thomas Gazagnaire , Caml List In-reply-to: <20130716192129.GA8915@notk.org> Date: Wed, 17 Jul 2013 15:26:40 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Caml-list] lablgtk2: cannot find the Pango module? adrien@notk.org writes: > Hi, > > On Tue, Jul 16, 2013, Thomas Gazagnaire wrote: >> > 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`. > > I know nothing about mac os x, opam and unison but nowadays lablgtk uses > ocamlfind. Maybe unison needs to be updated. > > Lablgtk without ocamlfind might work but I'd say that if it breaks, you > get to keep the pieces. > (plus, I'm a member of the AANUOO: Association Against Non-Usage Of > Ocamlfind :-) ) Thank you Thomas and Adrien, using ocamlfind made things work. I'll see what is the best way to propagate these building changes upstream. Alan