14050Re: opam usage -- png_loader?
- May 2, 2014On Fri, 02 May 2014 16:16:45 -0400, Sebastien Mondet wrote:
> HiHit head. Say oh, of course, I should have know that.
> You should use ocamlfind.
> ocamlfind ocamlopt -package ... etc.
> Cheers Seb
Then try it out.
hendrik@notlookedfor:~/dv/fun/wander$ make wander
ocamlfind ocamlopt -package glMLite -package unix -linkpkg wander.ml -o
File "wander.ml", line 652, characters 6-25:
Error: Unbound module Png_loader
make: *** [wander] Error 2
Success as far as finding the library. But package glMLite seems no
longer to contain png_loader (which was there when I compiled from
source last year). I guess png_loader is now elsewhere?
> On Fri, May 2, 2014 at 4:04 PM, Hendrik Boom <hendrik@...>
>> I had a program (called wander) that compiled nicely using a copy of
>> glMLite that I had compiled myself from source.
>> But now that I've found opam, i decided to get glMLite through opam
>> I hid the existing library by movingn it away from
>> and then did
>> opam instell glMLite
>> The istallation seemed to go smoothly.
>> But now when I try to compile wander, using the same old command line,
>> I get hendrik@notlookedfor:~/dv/fun/wander$ make wander ocamlopt -I
>> +glMLite GL.cmxa Glu.cmxa Glut.cmxa jpeg_loader.cmxa png_loader.cmxa
>> svg_loader.cmxa genimg_loader.cmxa unix.cmxa wander.ml -o wander File
>> "wander.ml", line 1, characters 0-7:
>> Error: Unbound module GL make: *** [wander] Error 2
>> Evidently ocamlopt doesn't know how to find the newly installed
>> library, which (I checked) is indeed present in
>> Evidently something has to change. What?
>> -- hendrik