Re: Trouble with opam install glMlite
"Gabriel Scherer [email protected] [ocaml_beginners]" <[email protected]> Sat, 12 Dec 2015 21:10:35 +0100
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <CAPFanBGnXWs8WOdeD10jsE1P2qD_-aV7r-RH=baA+HxHVza5sw@mail.gmail.com> |
I think this is a packaging issue. opam supports optional dependenties (depopts), and also phantom dependencies on system libraries (that cannot be compiled from opam but still useful for users that want to know what they should install; see opam search conf- ), but it looks like the glMLite package uses neither mechanisms. I would guess that the packager (in cc: hi!) just wanted to get a simple package done for the basic features, and did not yet take the time to do a finer-grained job indicating optional system dependencies. You two should have a chat to see how to improve on this. https://github.com/ocaml/opam-repository/blob/master/packages/glMLite/glMLite.0.03.51/opam On Sat, Dec 12, 2015 at 8:23 PM, Hendrik Boom [email protected] [ocaml_beginners] <[email protected]> wrote: > While on the topic of opam packages, there's another one I'm having > trouble with. A few years ago I wrote a very simple video game in > response to a challenge. I decided to do it in OCaml using glMlite, > which I obtained in source form. Now glMlite is now an opam package, > and I thought I should simplify things for any potential users (in the > vain hope that there might actually be one - the game only amuses me for > about ten minutes before I tire of it) by using the opam package. > > Alas! it fails: > > hendrik@notlookedfor:~/dv/fun/wander$ make wander > ocamlfind ocamlopt -package glMLite -package unix -linkpkg wander.ml -o > wander > File "wander.ml", line 652, characters 6-25: > Error: Unbound module Png_loader > Makefile:5: recipe for target 'wander' failed > make: *** [wander] Error 2 > hendrik@notlookedfor:~/dv/fun/wander$ > > The module Png_loader is missing from opam's glMlite. Now the Makefile > for glMlite contains some options that specify which modules are to be > built. Some of these modules are bindings to libraries that most > users are unlikely to have or want. And compiling these modules seems > to require that those libraries present. I know I had to use aptitude > to install them before I could build everything. > > But Png_loader is not generated in opam's glMlite. > > Is there a way on the opam install commnd to specify the missing option? > > and, if I should ever get around to packaging this game, is there any > way to specify I need these options in its dependencies? > > -- hendrik > > > ------------------------------------ > Posted by: Hendrik Boom <[email protected]> > ------------------------------------ > > Archives up to December 31, 2011 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners > The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr > Attachments are banned and you're asked to be polite, avoid flames etc. > ------------------------------------ > > Yahoo Groups Links > > >