Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Cannot compile rtmpdump on Ubuntu 12.04

(http://stream-recorder.com/forum/showthread.php?t=14700)

WallyWorld 12-10-2012 05:43 PM

Cannot compile rtmpdump on Ubuntu 12.04


 
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:

Code:

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
Code:

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?

Code:

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

Re: Cannot compile rtmpdump on Ubuntu 12.04


 
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"
Code:

"sudo ln -s /usr/local/lib/librtmp.so.0 /usr/lib/i386-linux-gnu/librtmp.so.0"
Now rtmpdump works properly


All times are GMT -6. The time now is 01:53 AM.