Error when Installing Pygame on Mountain Lion

Viewed 4592

I've been trying to get Pygame running on Mac OS X Mountain Lion and have had problems installing it. I have installed the following packages using homebrew:

  • sdl
  • sdl_image
  • sdl_mixer
  • sdl_ttf
  • smpeg

and when trying to compile Pygame (using the latest Mac OS X command line tools provided with Xcode 4.4) I get an error message stating the following:

src/scale_mmx64.c:499:27: error: invalid instruction mnemonic 'movsxl'

and I have no idea how to solve this issue. Pygame worked perfectly on Mac OS X Lion and this seems to have been caused either by the upgrade to the latest version of Xcode (which has removed GCC from the system) or the upgrade to Mountain Lion itself. I suspect the upgrade to Xcode is responsible but I am not sure.

Does anyone have any suggestions for fixing this issue at all?

2 Answers
Related