The problem with OpenGLUT is that it uses X11 to create windows. # ln -s ~/cl-opengl/*.asd ~/.sbcl/systems
asd files to your sbcl systems directory: Now download cl-opengl (probably using darcs “darcs get ”) In my case I added the option –prefix=/opt/mine to configure to not taint the running system with self compiled stuff.įinally you should end up with OpenGLUT libraries. You need the CPPFLAGS variable because otherwise the build system will not find the right opengl headers. Untar it and run “CPPFLAGS=”-I/usr/X11R6/include”. The problem with FreeGLUT is that it does not compile on Mac because of some joistick problems. I found information on the cl-opengl list that you need FreeGLUT. To install cl-opengl you need a Common Lisp implementation (I use sbcl), cffi (I used cffi 0.9.1), an opengl library (I used the one shipping with Mac OS X) and GLUT (I used OpenGLUT but more on that later).įirst I tried to get cl-opengl running with the native Mac OS X GLUT implementation but it did not work. It is pretty nice even if making a mistake sometimes kills your lisp.
I had a hard time getting it to run on Mac OS X so I tried it on Linux first where it worked out of the box. Finally I got stuck on opengl and cl-opengl binding. Because of an idea I have, that is not yet ripe for decision, I was trying to get a graphics library that is portable and has a Common Lisp binding.