Categories: Tips

Installing pygame in OSX Mavericks

pip install numpy
brew install sdl sdl_ttf sdl_image sdl_mixer

Download the pygame source. It’s one of the top links. Extract it somewhere and go to that directory in a terminal.

Run python config.py.

Open "Setup" file that will be found after running the above command .
Change the lines starting SDL, FONT, IMAGE, and MIXER to read:

SDL = -I/usr/local/include/SDL -L/usr/local/lib -lSDL
FONT = -lSDL_ttf
IMAGE = -lSDL_image
MIXER = -lSDL_mixer

open and edit scale_mmx64.c from /src folder .

Look for all occurrences of movsxl and replace it with movslq.
You should find two occurrences.

Run python setup.py install.

Mithun

Share
Published by
Mithun

Recent Posts

Quick release mount systems Compatibility chart

Plate Base FALCAM F38 Ulanzi Uka PGYTECH SNAPLOCK PeakDesign Falcam F38 ⬤ ✕ ✕ ✕…

7 months ago

Happy New Year 2025

I really thought I would keep up with the blog in 2024. But, it didn't…

8 months ago

Happy New Year 2024

Oh boy, there were a lot of things that happened this year. Like last year,…

2 years ago

Happy New Year 2023

This has become a abandoned blog. I will try to fix things this year. More…

3 years ago

Happy New Year 2022

Let me start off by saying, i have more blog posts this year than the…

4 years ago

Fix for xbox “This App Needs a Few Things That Are Missing on this PC”

This happened because your windows has run out of space. If you get this error…

4 years ago

This website uses cookies.