Skip to content

Problems installing via OPAM on OSX #1

@tmcgilchrist

Description

@tmcgilchrist

I tried installing via OPAM and I get the following error which looks like some of the deps aren't met on the latest OSX version. Possibly it's not finding the X11 libraries it expects.

➜  ~  opam install glMLite 
The following actions will be performed:
 - install glMLite.0.03.51
1 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove

=-=-= Installing glMLite.0.03.51 =-=-=
Building glMLite.0.03.51:
  make
  make install PREFIX=/Users/tim/.opam/system/lib/glMLite
[ERROR] The compilation of glMLite.0.03.51 failed.
Removing glMLite.0.03.51.
  ocamlfind remove glMLite


===== ERROR while installing glMLite.0.03.51 =====
# opam-version 1.1.1
# os           darwin
# command      make
# path         /Users/tim/.opam/system/build/glMLite.0.03.51
# compiler     system (4.01.0)
# exit-code    2
# env-file     /Users/tim/.opam/system/build/glMLite.0.03.51/glMLite-65615-ffb3fd.env
# stdout-file  /Users/tim/.opam/system/build/glMLite.0.03.51/glMLite-65615-ffb3fd.out
# stderr-file  /Users/tim/.opam/system/build/glMLite.0.03.51/glMLite-65615-ffb3fd.err
### stdout ###
# ...[truncated]
# ocamlopt.opt -g -c GL.ml
# ocamlopt.opt -g -a -o GL.cmxa -cclib -lgl_stubs -cclib "-framework OpenGL" GL.cmx
# ocamlopt.opt -g -c Glu.ml
# ocamlmklib -o Glu  Glu.cmx  -framework OpenGL
# ocamlopt.opt -g -c Glut.ml
# ocamlmklib  -o  Glut  Glut.cmx  -framework GLUT
# ocamlopt.opt -g -c   vertArray.ml
# ocamlmklib  -o  vertArray  vertArray.cmx -framework OpenGL -L"/usr/local/lib/ocaml" -lbigarray
# ocamlc.opt -c jpeg_loader.ml
# ocamlc.opt  -c  loader-libjpeg.c
### stderr ###
# ...[truncated]
# /usr/include/mach-o/dyld.h:187:21: note: 'NSAddressOfSymbol' declared here
# extern void *       NSAddressOfSymbol(NSSymbol symbol) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1,__MAC_10_5,__IPHONE_NA,__IPHONE_NA);
#                     ^
#3 warnings generated.
# loader-libjpeg.c:19:10: fatal error: 'jpeglib.h' file not found
# #include <jpeglib.h>
#          ^
#1 error generated.
# make[1]: *** [loader-libjpeg.o] Error 2
# make: *** [all] Error 2

'opam install glMLite' failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions