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 p开发者_开发百科ackage-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. :)
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.
I couldn't post it as a comment because I only have 5 rep, but you actually can install it using: brew install homebrew/versions/gst-python010
.
This obtains gst-python from the tap containing gst-python010. The 010 at the end there shows the version 0.10.
Unfortunately, there is not a 1.0 version from Homebrew's taps or packages, currently.
There might be a updated version in the future.
精彩评论