<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">I am sure the thing that stopped me was not being able to call NSApplicationInit()... I did manage to get something going but it kept dropping out with an error, which, on looking it up said I had to call NSApplicationInit() but my CFFI experience is limited and I couldn't work out how to do it.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I looked at Verrazano as well but in the end time pressures made me go for X11. It just worked, I had to make a small change to get it to work on an intel mac though if I remember I just modded the library.lisp file a bit. My finally chaotic glut def looks like:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>(define-foreign-library glut</DIV><DIV>  ;;-- (sjc-03-jul-06) -- added this line to ensure my locally built</DIV><DIV>  ;;-- OpenGLUT library is loaded as the "glut" library!</DIV><DIV>  ;;</DIV><DIV>  ;; (1) /usr/local/lib/libopenglut.dylib  => my build from OpenGLUT source package.</DIV><DIV>  ;; (2) /sw/lib/libglut.dylib => FINK installation of 3.7-1025</DIV><DIV>  ;;</DIV><DIV>  ;; Q. Which one is 'better' to use, if any ?!</DIV><DIV>  ;;    (1) because (2) doesn't have glutLeaveMainLoop etc !!!</DIV><DIV>  ;;</DIV><DIV>  ;((:and :darwin :x86) "/sw/lib/libglut.dylib")</DIV><DIV>  ((:and :darwin :x86) "/usr/local/lib/libopenglut.dylib")</DIV><DIV>  ;((:and :darwin :x86) (:framework "GLUT"))</DIV><DIV>  ;(:darwin (:or "libglut.dylib" "libglut.3.dylib" #-(and)(:framework "GLUT")))</DIV><DIV>  (:windows "freeglut.dll") ; XXX: is this right?</DIV><DIV>  (:unix (:or "libglut.so" "libglut.so.3")))</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>which, removing the chaff leaves this, I added the :x86 to make it intel friendly!</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>(define-foreign-library glut</DIV><DIV>  ((:and :darwin :x86) "/usr/local/lib/libopenglut.dylib")</DIV><DIV>  (:windows "freeglut.dll") ; XXX: is this right?</DIV><DIV>  (:unix (:or "libglut.so" "libglut.so.3")))</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On 17 Mar 2007, at 00:11, sathya gnanasekaran wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Yeah, it annoys me a lot. I'll check if anyone has any prior work done in that direction first, but if not, I'll look into it. The problem is I have little cocoa/carbon experience. Time to learn I guess.<BR><BR><DIV> <SPAN class="gmail_quote">On 3/16/07, <B class="gmail_sendername">Luís Oliveira</B> <<A href="mailto:luismbo@gmail.com">luismbo@gmail.com</A>> wrote:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> On 16/03/07, sathya gnanasekaran <<A href="mailto:thekingoftruth@gmail.com">thekingoftruth@gmail.com</A>> wrote:<BR>> I use cl-opengl on OSX to play with opengl in lisp. I use it by<BR>> changing the library from freeglut to apple's cocoa-based glut <BR>> framework. (Although I'm sure I could use apple's X11 + freeglut, X<BR>> has given be trouble.)<BR><BR>That GLUT will call exit() (and kill your Lisp) very often, doesn't<BR>that annoy you? Hey, you could port freeglut to Cocoa (or is it <BR>Carbon?), that'd be nice. :-)<BR><BR>--<BR>Luís Oliveira<BR><A href="http://student.dei.uc.pt/~lmoliv/">http://student.dei.uc.pt/~lmoliv/</A><BR></BLOCKQUOTE></DIV><BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">cl-opengl-devel mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:cl-opengl-devel@common-lisp.net">cl-opengl-devel@common-lisp.net</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://common-lisp.net/cgi-bin/mailman/listinfo/cl-opengl-devel">http://common-lisp.net/cgi-bin/mailman/listinfo/cl-opengl-devel</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>