Installing Pymunk - Ubuntu 10.04

Go down

Installing Pymunk - Ubuntu 10.04 Empty Installing Pymunk - Ubuntu 10.04

Post  maximinus on Fri Jun 04, 2010 11:34 pm

How to get pyMunk working on Ubuntu 10.04

This guide is intended to show you how to get started with the 2D physics engine Chipmunk in your pygame program. I don't assume much knowledge but you do need to know how to open a terminal and use it to a small degree.

Step 1: Install everything you need.

Firstly, I'm assuming you have Pygame installed (this is easily from Synaptic, go to System -> Administration -> Synaptic Package manager, search for Pygame and install the python-pygame package). Next (the slightly harder part) you'll need to download the Chipmunk C libs from Extract the files somewhere. To build the libraries needs a little extra work: I found that the directory contained a whole bunch of ._* files; to remove these, open a terminal, go to the Chipmunk-5.2.0 directory and enter this command:

find . -type f -name "._*" -exec rm -rvf {} \;

Then we can easily build and test the basic engine with:

cmake .

The next step is to install the python wrapper. So, again, go grab the files from, extract the files somewhere, cd to the directory and enter this command to install everything correctly. It might have to grab a small file from the internet, but otherwise you should have no problems.

sudo python install

To finally test the whole thing, run this:

python ./examples/

If this runs, you are good to go!
Very Happy

Posts : 63
Join date : 2010-06-04
Age : 46
Location : Harbin, China

View user profile

Back to top Go down

Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum