First install all the dependencies:
sudo apt-get install python-dev libogg-dev libvorbis-dev liblame-dev libfaad2-dev libasound2-dev python-pygame(Pygame is not really necessary, but recommended.)
Extract a download of pymedia-*.tgz and open a terminal in the extracted folder, so we can build pymedia:
python setup.py build
This should display:
Using UNIX configuration...
OGG : found
VORBIS : found
FAAD : found
MP3LAME : found
VORBISENC : found
ALSA : found
Continue building pymedia ? [Y,n]:
If everything is found press Y
Finally install pymedia:
sudo python setup.py install
Test if pymedia installed correctly by typing this at the python shell:
import pymedia
You may now proceed to the pymedia tutorials.
thanks.
ReplyDeleteI there Stani, it's Marco.
ReplyDeleteAn even better way to intall it is through a .deb, witch.. i've built a long time ago.
It's for python 2.4, but I could package it for the newer 2.5 if needed.
Find me on jabber if you want it.
Cheers
Actually, I'd like to see more recent build of the pymedia packaged as .deb. I've been trying to build this module here but I keep getting compiler errors. I'm currently stuck at the following error message: "/usr/bin/ld: build/temp.linux-x86_64-2.5/sound/sound.o: relocation R_X86_64_32 against `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
ReplyDeletebuild/temp.linux-x86_64-2.5/sound/sound.o: could not read symbols: Bad value"
=|
Anyone think there might be a kubuntu package coming along?
ReplyDeleteThanks for the guide! I had trouble installing on Ubuntu 8.04 and Python 2.5, so I wrote a follow up guide:
ReplyDeletehttp://jhcore.com/2008/06/18/pymedia-on-ubuntu-hardy-heron/
I'm getting the same error as shandread,
ReplyDelete