Thanks Alan, it does works fine now ! I attach another patch, very straight to the point, but not of the most refineds aesthetics, still to the same makefile, about paths to libjpeg and it's headers files. (so in one thread on the ML archive we have all patches to build glMlite on OSX) sorry, I was mixing the GL.o of glMlite and some kind of /usr/lib/libGL.so in my previous email. would have spent half a day on it or more without yours. Thanks ! Le 13 janv. 2012 à 21:48, Alan Schmitt a écrit : > On 13 Jan 2012, at 20:41, Philippe Strauss wrote: > >> I'm running 3.12.1 plus Jérémie Dimino gprint patch, and an up to date godi setup. >> Trying to build Florent Monnier glMlite, I'm finding this singularity: >> >> ocamlopt.opt -verbose -g -c GL.ml >> + as -arch x86_64 -o 'GL.o' '/var/folders/Yj/YjSPq8kWEbucqe1B6qhw4E+++TI/-Tmp-/camlasm11ff8f.s' >> >> ocamlmklib -verbose -o GL GL.cmx -framework OpenGL -lgl_stubs >> + /opt/godi312/bin/ocamlopt -a -o GL.cmxa GL.cmx -cclib -lGL -ccopt -L/opt/godi312/lib -ccopt -framework -ccopt OpenGL -cclib -lgl_stubs >> >> it seems (or I missed something) that ocamlmklib add -lGL when it invokes ocamlopt, it should not on OSX, which requires "-framework OpenGL". >> >> BTW, the two -ccopt -framework -ccopt OpenGL is a trickery for whitespace containing linker arguments ? > > Yes. > > About the main question, I asked this a while back. This thread should explain what is going on. > https://sympa-roc.inria.fr/wws/arc/caml-list/2011-02/msg00144.html > > This lead me to write a small patch to glMlite, which I attach. As this patch is OS X specific (the current build system is targeted for Linux), it has not been incorporated upstream. I have not have found the time to do a "universal" patch yet. > > Hope this helps, > > Alan > > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa-roc.inria.fr/wws/info/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > >