Blife Ports

Stock and I got blife running on Mac OS X yesterday. We figured that in theory it should compile out-of-the-box since I had OS X’s OpenGL and GLUT headers in their own #ifdef clause. However, we found that linking to libraries works a bit different on OS X as opposed to the other Unix’s. On Linux, FreeBSD, etc., executables are linked to libraries by passing “-l<libraryname>” to the linker. So in this case, GLUT is linked to blife by passing “-lglut” to he linker. However, on OS X, you need to use “-framework <libraryname>”, so”-framework OpenGL -framework GLUT” gets used.

When blife 0.2.5 is released, there will be a OS X specific section in the Makefile, so OS X users can simply “make osx” and have the proper binary built.

With that said, blife has been compiled and works properly in GNU/Linux, FreeBSD, Windows, and OS X. :)

Leave a Reply