1. Anders Ruud
  2. love
  3. Issues


Issue #793 resolved

OS X universal build fails

created an issue

I'm building the love-experiments moduleselect branch on OS X 10.9 Mavericks because the mainline doesn't build on OS X right now. I'm using ./configure and make, not the Xcode project.

Building for a single architecture (e.g. using -arch x86_64 in $CFLAGS, $CXXFLAGS and $LDFLAGS) works, but building for multiple architectures simultaneously (e.g. -arch x86_64 -arch i386) fails:

modules/graphics/opengl/GLee.h:1059:20: error: typedef redefinition with different types ('ptrdiff_t' (aka 'int') vs 'long')

It is common to want to build universal binaries on OS X, especially for libraries like LÖVE which get used by many other programs, not all of which will necessarily be built for the same architecture.

Comments (2)

  1. Alex Szpakowski

    Weird, universal binaries worked fine via the Xcode project - although I haven't tested since updating to 10.9. Maybe the OpenGL headers in the 10.9 SDK changed enough to mess up GLee in certain circumstances.

    It is common to want to build universal binaries on OS X

    It's starting to become a bit less common. Any Intel Mac released after the summer of 2006 can run 64-bit binaries (the first Intel Mac was released in January 2006.) Programs like VLC have dropped 32 bit support already for their official OS X builds.

    The official build of 0.9.0 for OS X will be purely 64 bit, although it's still possible to use the Xcode project to create a universal or 32 bit build.

  2. Log in to comment