RTMPDump - how do I compile source code in Linux like Ubuntu?Ok, I got the source code for rtmpdump but what do I do with it? What do I use to compile it into a program?
|
Re: RTMPDump - how do I compile source code? |
Re: RTMPDump - how do I compile source code?What is the diference betwen rtmpdump compiled by myself and rtmpdump already compiled ???
|
Re: RTMPDump - how do I compile source code?Quote:
Plus compiling is useful for those who are intended to make changes to rtmpdump. |
Re: RTMPDump - how do I compile source code?The boost libs are not necessary anymore since it is now plain C code.
|
Re: RTMPDump - how do I compile source code?I've been trying to compile the latest version (2.30) of RTMP in Centos, 64-bit... keep getting errors - can someone please point me in the right direction...
I type in make sys-linux I then get this back: # make sys=linux make[1]: Entering directory `/rtmpdump/librtmp' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/rtmpdump/librtmp' gcc -Wall -o rtmpgw rtmpgw.o thread.o -Llibrtmp -lrtmp -lssl -lcrypto -lz thread.o: In function `ThreadCreate': thread.c.text+0x46): undefined reference to `pthread_create' collect2: ld returned 1 exit status make: *** [rtmpgw] Error 1 Any help would be massively appreciated. I've also done this: # make linux make: *** No rule to make target `linux'. Stop. |
Re: RTMPDump - how do I compile source code?I have finally complied it - now I have a new error:
rtmpdump: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or directory Once again, any advice would be appreciated. |
Re: RTMPDump - how do I compile source code?Hello Marsm!
I also get error like you do: thread.o: In function `ThreadCreate': thread.c.text+0x46): undefined reference to `pthread_create' collect2: ld returned 1 exit status make: *** [rtmpgw] Error 1 Can you help me fix this error ? Thanks much! |
Re: RTMPDump - how do I compile source code?I fixed it by installing openssl not to /usr/local/openssl but to /usr/local
|
Re: RTMPDump - how do I compile source code?Quote:
When running rtmpdump I get Quote:
|
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?What am I doing wrong here? I have OpenSSL installed.
crossleyd@VMU:~/rtmpdump$ make rtmpdump make[1]: Entering directory `/home/crossleyd/rtmpdump/librtmp' gcc -Wall -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL -O2 -fPIC -c -o rtmp.o rtmp.c rtmp.c:40:25: error: openssl/ssl.h: No such file or directory rtmp.c:41:25: error: openssl/rc4.h: No such file or directory |
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?TO ALL WHO HAVE THIS ERROR
Code:
rtmpdump: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or directory 1. make 2. sudo cp librtmp.so.0 /lib so, thats it! p.s. btw, you should enter SYS=posix, not SYS=linux |
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?Just compiled rtmpdump from SVN in Ubuntu 10.10 Maverick:
And use the following to install: Code:
sudo make install |
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?Code:
streamrecorder@ripmachine:~$ sudo apt-get install build-essential gcc make subversion libssl0.9.8 libssl-dev libssl0.9.8 |
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?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 Code:
wget http://zlib.net/zlib-1.2.5.tar.gz Code:
LIB_OPENSSL=-lssl -lcrypto Code:
LIB_OPENSSL=-lssl -lcrypto -ldl Code:
make INC=-I/usr/local/ssl/include/ LDFLAGS=-L/usr/local/ssl/lib Having the linux version built I started the adventure of cross compiling it for windows So I extracted the rtmpdump-2.3 tgz to another folder, rtmpdump-2.3Win in order not to screw up the linux built version Code:
wget http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.3.tgz To cross compile anything for windows you need mingw32 which you get with the command Code:
sudo apt-get install mingw32 Then configure the openSSL for windows Code:
wget http://www.openssl.org/source/openssl-1.0.0d.tar.gz Code:
wget http://zlib.net/zlib125-dll.zip
Code:
make SYS=mingw INC="-I/home/birdofprey/rtmpdump-2.3Win/openssl-1.0.0d/include/ -I/home/birdofprey/rtmpdump-2.3Win/include/ -I/usr/i586-mingw32msvc/include/ -I/usr/local/include/" LDFLAGS="-L/home/birdofprey/rtmpdump-2.3Win/openssl-1.0.0d/ -L/usr/i586-mingw32msvc/lib/ -L/home/birdofprey/rtmpdump-2.3Win/lib" XCFLAGS="-DWIN32 -D_WIN32" CROSS_COMPILE=i586-mingw32msvc- to test it on linux do Code:
sudo apt-get install wine Code:
RTMPDump v2.3 Mod BirdOfPrey Have fun compiling RTMPDump!:cool: :cool: |
How do you compile rtmpdump in Mac OS X 10.6?Quote:
I'm have an iMac with OS X 10.5.8 and a Snow Leopard dualbooted macbookpro (both 10.6.6 [stable] + 10.6.7 [beta]), on both machine and all 3 OS versions I get the same error. The reason I specifically quoted the above was that I though trying the same edit on the makefile Code:
LIB_OPENSSL=-lssl -lcrypto -ldl So any help will be appreciated. Also, even though you use Linux, it doesn't make a difference, because both linux and mac os ar based on Unix, which means the comandline/terminal is the same. //Dave UPDATE: I currently have rtmpdump 2.2 installed via macports, but the reason to manually build directly from src of "rtmpdump.mplayerhq.hu" is because the port for it hasn't been updated to v2.3 yet. So for me i cannot currently use macports to update it. Also, both openssl and zlib are installed in their latest version, so that can't be why it fails to build. |
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?Quote:
|
Re: How do you compile rtmpdump in Mac OS X 10.6?Quote:
You can't just go typing random stuff in here. If you don't know how to compile software on your OS, go learn how. MacOSX has no libdl, so of course randomly adding "-ldl" to a Makefile variable won't fix any of your problems. It would only cause more problems. If you don't understand what that sentence meant, you need to go learn more before you're ready to build this. Quote:
|
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?Quote:
Code:
apt-get install libssl-dev Code:
./config shared Generally if you're on Linux and you think that you need to edit the Makefile, you're doing something wrong. Quote:
|
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?hyc tkx very much for the tips! I didn't know I had to use the shared library version of openssl, I just fixed the issues as they came along;)
Although the modded version I did works as expected, now exiting in a specific error that rtmpdump gives, I think it's not very normal for this to happen, as this problem is happening too often now. I'll post the problem in main forum. |
Re: Where can I download the latest version of rtmpdump (source + binaries)?Hi
Thanks for your work KSV. I've used the binaries with Windows.:) When the program runs it says:- Code:
RTMPDump v2.3 r568 (Compiled by KSV) Code:
RTMPDump v2.3 Is it a matter of editing a file before I compile?:confused: |
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?make VERSION=r568
|
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?Quote:
make VERSION=r568 gives:- Code:
RTMPDump r568 make VERSION="v2.3\ r568" This gives:- Code:
RTMPDump v2.3 r568 In case anyone's interested, this is the command I used to compile for Ubuntu:- Code:
svn co svn://svn.mplayerhq.hu/rtmpdump/trunk rtmpdump && \ |
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?Quote:
tom@ubuntu:~/Downloads/rtmpdump-2.3$ make INC=-I/usr/local/ssl/include/ LDFLAGS=-L/usr/local/ssl/lib make[1]: Entering directory `/home/tom/Downloads/rtmpdump-2.3/librtmp' gcc -shared -Wl,-soname,librtmp.so.0 -L/usr/local/ssl/lib -o librtmp.so.0 rtmp.o log.o amf.o hashswf.o parseurl.o -lssl -lcrypto -lz /usr/bin/ld: /usr/local/ssl/lib/libssl.a(s23_meth.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/local/ssl/lib/libssl.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [librtmp.so.0] Error 1 make[1]: Leaving directory `/home/tom/Downloads/rtmpdump-2.3/librtmp' make: *** [librtmp/librtmp.a] Error 2 tom@ubuntu:~/Downloads/rtmpdump-2.3$ Can you please give an indication where it does go wrong? Thanks! |
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?Quote:
|
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?Ubuntu 11.04 it is
|
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?Quote:
It's in the 11.04 repo. Code:
sudo apt-get install rtmpdump |
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?thank you mr, that worked!
|
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?For Ubuntu linux users, you can add this PPA to get the latest rtmpdump version. :D
|
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?How to compile rtmpdump with KSV patches in Ubuntu 13.04
Download rtmpdump from git://git.ffmpeg.org/rtmpdump Code:
git clone git://git.ffmpeg.org/rtmpdump Code:
sudo apt-get install build-essential gcc make subversion libssl-dev Code:
patch -p0 -i Patch.diff Code:
rtmpdump installed Code:
make SYS=posix |
Re: RTMPDump - how do I compile source code in Linux like Ubuntu?Quote:
|
Re: RTMPDump - how do I compile source code?I couldn't find an rtmpdump file on my pc. do I create one?
|
All times are GMT -6. The time now is 01:03 PM. |