Pygame/Mac setup instructions: Difference between revisions
(New page: If you're running Mac OS X on and Intel or PowerPC mac, installing pygame is relatively simple. == Prerequisites == 1) Xcode 2) X11 == Installing DarwinPorts == == Installing pygame ...) |
m (Mac setup instructions moved to Pygame/Mac setup instructions: More specific name) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
This page describes a method for getting a native [[Pygame]] development environment set up for coding software for the OLPC Sugar platform while running on Mac OS X 10.4 on an Intel or PowerPC Mac. |
|||
If you're running Mac OS X on and Intel or PowerPC mac, installing pygame is relatively simple. |
|||
= Method 1 (MacPython) = |
|||
Visit [http://pythonmac.org/packages/py24-fat/index.html the Pythonmac download page] and get the latest macpython2.4 package and the precompiled Pygame. |
|||
= Method 2 (DarwinPorts) = |
|||
== Prerequisites == |
== Prerequisites == |
||
* Xcode |
|||
If you don't have the Xcode development tools installed, insert your Mac OS X install CD and install the Xcode tools from there. Alternatively, you can download the 924MB (!) installation [http://developer.apple.com/tools/download/ directly from Apple]. |
|||
* X11 |
|||
Install the X11 package from your Mac OS X install CD. I couldn't find a 10.4-compatible version on the web, so you're on your own if you can't find your installation disc. |
|||
== Installing DarwinPorts == |
== Installing DarwinPorts == |
||
DarwinPorts is a package management system that makes it easy to install a bunch of open source software. You can download it [http://darwinports.com/ here]. Double-click the installer and follow the instructions on-screen. |
|||
== Installing pygame == |
== Installing pygame == |
||
Once you have DarwinPorts installed, open a Terminal window. Make sure you have the latest version by running the following command: |
|||
sudo port selfupdate |
|||
Then, install pygame and its dependencies: |
|||
sudo port install py-game |
sudo port install py-game |
||
= See Also/Next = |
|||
* [[Emulation]] -- alternate approach that runs an emulated machine on your Mac OS X machine |
|||
* [[Game development HOWTO]] -- Quick-start guide to getting a working Pygame activity in under 5 minutes |
|||
* [[Developers]] -- general entry point for how to get started coding for the Sugar environment |
|||
[[Category:Games]] |
Latest revision as of 15:52, 23 December 2007
This page describes a method for getting a native Pygame development environment set up for coding software for the OLPC Sugar platform while running on Mac OS X 10.4 on an Intel or PowerPC Mac.
Method 1 (MacPython)
Visit the Pythonmac download page and get the latest macpython2.4 package and the precompiled Pygame.
Method 2 (DarwinPorts)
Prerequisites
- Xcode
If you don't have the Xcode development tools installed, insert your Mac OS X install CD and install the Xcode tools from there. Alternatively, you can download the 924MB (!) installation directly from Apple.
- X11
Install the X11 package from your Mac OS X install CD. I couldn't find a 10.4-compatible version on the web, so you're on your own if you can't find your installation disc.
Installing DarwinPorts
DarwinPorts is a package management system that makes it easy to install a bunch of open source software. You can download it here. Double-click the installer and follow the instructions on-screen.
Installing pygame
Once you have DarwinPorts installed, open a Terminal window. Make sure you have the latest version by running the following command:
sudo port selfupdate
Then, install pygame and its dependencies:
sudo port install py-game
See Also/Next
- Emulation -- alternate approach that runs an emulated machine on your Mac OS X machine
- Game development HOWTO -- Quick-start guide to getting a working Pygame activity in under 5 minutes
- Developers -- general entry point for how to get started coding for the Sugar environment