chrippa / python-librtmp

python-librtmp is a RTMP client library. It uses the implementation provided by librtmp via cffi.
BSD 2-Clause "Simplified" License
154 stars 33 forks source link

OSX Build Instructions #5

Closed Miserlou closed 10 years ago

Miserlou commented 10 years ago

Any chance of getting a bit more info on how to build for OSX?

Specifically, is there a preferred way of installing librtmp-dev and libffi-dev?

chrippa commented 10 years ago

The CFFI docs recommends to use homebrew to install libffi and you can probably use that for librtmp/rtmpdump aswell.

I'm not a OS X user so I'm afraid I can't help you much more than that.

Miserlou commented 10 years ago

Ah, thanks!

(Seems like this is a bit heavyweight for my purposes if end-users are required to install Homebrew and to make modifications to an install script as well. Still, good work and good luck!)

100ideas commented 7 years ago

For posterity, homebrew worked flawlessly for me.

$ brew install libffi rtmpdump
...
==> Downloading https://homebrew.bintray.com/bottles/rtmpdump-2.4+20151223.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring rtmpdump-2.4+20151223.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/rtmpdump/2.4+20151223: 19 files, 422.2KB

$ pip install python-librtmp
Collecting python-librtmp
...
Installing collected packages: python-librtmp
  Running setup.py install for python-librtmp ... done
Successfully installed python-librtmp-0.3.0