Search code examples
pythonmacosmacportsgstreamer

How to install gst-python (gstreamer python bind) on Mac OSX the easy way?


How can I install gst-python, which is GStreamer's python bind, on my Mac (Snow Leopard) the easy way? This will probably involve using a package-manager like homebrew or MacPorts.

I've been looking for the package everywhere. Compiling is a real mess.

If this isn't possible, what are the alternatives? Detailed instruction are welcome. :)


Solution

  • Install the base MacPorts following the instructions here. If you already have MacPorts installed, make sure the portfiles are up-to-date:

    $ sudo port selfupdate
    

    Then, depending on whether you want to use Python 2.6 or Python 2.7, install the appropriate port, either:

    $ sudo port install py26-gst-python
    

    or:

    $ sudo port install py27-gst-python
    

    and sit back and wait. Be aware that those ports appear to pull in a lot of dependent packages including a MacPorts Python installation and Gnome, so it will likely take a while. But, in the end, it should all just work.