View Single Post
  #19  
Old 03-16-2011, 06:18 AM
hyc hyc is offline
RTMPdump team
 
Join Date: Dec 2009
Posts: 169
hyc will become famous soon enoughhyc will become famous soon enough
Default

Re: RTMPDump - how do I compile source code in Linux like Ubuntu?


Quote:
Originally Posted by BirdOfPrey View Post
Hi all!
I'm quite a fan of RTMPDump as it allows me to schedule the download of my favourite live streams and watch them when I have the time for them, with a little program I made.

In some cases when an error was thrown RTMPDump2.3 does not close the window (specifically when recv receives -1) so I needed to modify librtmp to suit my needs.
Although the README file on the source package is quite helpful it seems it is a bit outdated, so here is a guide to compile RTMPDump with the current release.

Here is my experience with compiling RTMPDump2.3 with Ubuntu Maverick.
First compile I compiled for linux to see if all is ok.
Download and install OpenSSL:
Code:
wget http://www.openssl.org/source/openssl-1.0.0d.tar.gz
tar xvzf openssl-1.0.0d.tar.gz
cd openssl-1.0.0d
./config
make
sudo make install
It would have been sufficient just to use
Code:
apt-get install libssl-dev
Note that most distros provide OpenSSL built with shared libraries. If you want to build it yourself, you should have used
Code:
./config shared
And then you would not have needed to add "-ldl" to LIB_OPENSSL.
Generally if you're on Linux and you think that you need to edit the Makefile, you're doing something wrong.

Quote:
go to cd rtmpdump-2.3 directory and edit Makefile line
Code:
LIB_OPENSSL=-lssl -lcrypto
to
Code:
LIB_OPENSSL=-lssl -lcrypto -ldl
Reply With Quote