Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
findlib help: how to specify dependencies against non-findlib packages ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-10-02 (13:30)
From: Guillaume Rousse <Guillaume.Rousse@i...>
Subject: Re: [Caml-list] findlib help: how to specify dependencies against non-findlib packages ?
Gerd Stolpmann wrote:
> Am Montag, den 02.10.2006, 11:24 +0200 schrieb Guillaume Rousse:
>> I'm trying to add findlibsupport for camlimages.
>> It has a dependency on graphics, which is easily handled by adding a
>> require variable in META file, as graphics provides findlib support.
>> However, camlimages can also get compiled with either lablgtk or
>> lablgtk2 support (not both of them, as they have conflicting symbols),
>> but none of those packages have findlib support. It means I can't
>> ressort to smart dependency computation. I may eventually use the
>> linkopts variable to add explicit linking flags (such as -I
>> place/to/lablgtk2 lablgtk.cma), but this seem to be only possible for
>> linking, not for compiling, whereas I also need to pass -I
>> place/to/lablgtk2 option during compilation.
>> So, is this just not possible at all ?
> Of course, it is possible: Just write your own META file for
> lablgtk/lablgtk2 - this is what distros like GODI and Debian do. The
> META file need not to be in the same directory as the library if you add
> a line
> directory="/path/where/the/library/really/is"
> to the META file, so you can easily unify lablgtk's installation scheme
> with the findlib requirements.
I'm speaking of incoming camlimages 3.0.0 release, not of camlimages
packages in some distribution. I can't interfere with already existing
lablgtk/lablgtk2 installation, unless there is a way to do it privately
to camlimages itself.

Guillaume Rousse
Projet Estime, INRIA
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex - France