PDA

View Full Version : Cannot compile rtmpdump on Ubuntu 12.04


WallyWorld
12-10-2012, 05:43 PM
I been trying to compile rtmpdump on Ubuntu 12.04, but each time I get "Segmentation Fault"

I've tried on 2 separate systems and same result each time

The steps I use are:


git clone git://git.ffmpeg.org/rtmpdump
cd rtmpdump
make VERSION="2.4.$(git log --pretty=format:'%h' -n 1)~git"


Then when I test it, I get the following segmentation fault
demon@ACCESS-DENIED:~/rtmpdump$ ./rtmpdump
RTMPDump 2.4.19d3636~git
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Segmentation fault (core dumped)


What am I doing wrong?
Has anyone else compiled this on Ubuntu 12.04?

uname -a
Linux ACCESS-DENIED 3.2.0-34-generic-pae #53-Ubuntu SMP Thu Nov 15 11:11:12 UTC 2012 i686 i686 i386 GNU/Linux

WallyWorld
12-12-2012, 01:34 AM
I found the problem,
I had to actually do 'make install', or checkinstall.

But even after doing that I was still getting 'Seg Fault'.

So I searched my drive for all occurrences of librtmp
I found one at "/usr/local/lib/librtmp.so.0" and another at "/usr/lib/i386-linux-gnu/librtmp.so.0"

"/usr/lib/i386-linux-gnu/librtmp.so.0" was an old copy from over a year ago
"/usr/local/lib/librtmp.so.0" was the newest

I deleted "/usr/lib/i386-linux-gnu/librtmp.so.0" then symlinked it to the one at "/usr/local/lib/librtmp.so.0"
"sudo ln -s /usr/local/lib/librtmp.so.0 /usr/lib/i386-linux-gnu/librtmp.so.0"

Now rtmpdump works properly