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

How do you compile rtmpdump in Mac OS X 10.6?

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

sofrench 03-28-2010 11:53 AM

Re: RTMPDump - how do I compile source code?


 
Hi

I downloaded the files but I don't know how to compil.
Mac OSX 10.6.2
I did open the READme file. But I don't know what to do next and what else I need -OpenSSL ?and zlib?.
Can someone give me some help or to point me a tuto


Thanks

any ANONYMOUS forum user 05-09-2010 07:27 AM

How do you compile rtmpdump in Mac OS X 10.6?


 
I don't know if anyone is able to compile rtmpdump for mac os x. Please someone tell me. And can someone tell me how to download videos from hulu.com and nick.com? SIMPLE INSTRUCTIONS lol, all I see is bla bla bla, I would rather pictures of you doing it, so I can just follow what your doing.

Thanks! I wish someone would make a real program, that can sniff ANY rtmp, ANY, not some, including hulu, but noooo they all got a DMCA removal or don't want to -_- COME ON HACKERS, I also want a hacker to make a alternitive for flash for my mac os x and iphone os. Not for windows, windows doesn't deserve it, let flash keep crashing their internet explorerer lol

any ANONYMOUS forum user 05-10-2010 03:01 AM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
Quote:

Originally Posted by any ANONYMOUS forum user (Post 18827)
I wish someone would make a real program, that can sniff ANY rtmp, ANY, not some, including hulu, but noooo

you don't need a hacker, you need Windows :D :D :D

hyc 05-10-2010 12:51 PM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
I can't speak for anyone else, but I certainly have no motivation to do anything for someone who makes such moronic demands.

"Please someone tell me how to do this. I'm too lazy to read instructions."

"And I want you to write these other programs for me, just because I say so, and why the heck hasn't anyone already provided me all these things that I'm entitled to as my god-given-right just for existing on this planet."

He doesn't need a hacker, he needs a clue.

Yansky 05-10-2010 06:24 PM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
Here are my compiled builds for osx if anyone wants to use them.

http://forboden.com/coding/rtmpdump-...d-PolarSSL.zip
http://forboden.com/coding/rtmpdump-...d-PolarSSL.zip
They're both built with PolarSSL, so it doesn't matter if users have an out of date version of OpenSSL on their system.

To the OP, you may find this program a little easier to use: xviservicethief

Yansky 05-12-2010 12:00 AM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
Quick update:
http://forboden.com/coding/rtmpdump-...d-PolarSSL.zip
http://forboden.com/coding/rtmpdump-...d-PolarSSL.zip
http://forboden.com/coding/rtmpdump-...d-PolarSSL.zip

bricula 05-13-2010 02:22 PM

Re: RTMPDump - how do I compile source code?


 
Osx 10.5.8
xcode tools 3.0
rtmpdump 2.2d won't compile...
what does I need? please, it's been 2 days and I'm still here compiling and watching errors...
can someone write a step by step tutorial? the readme file says nothing... please, I'm running out of options....

jargee 06-06-2010 06:28 PM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 

I am using OSX 10.5.8,
I cannot install rtmpdump via macports(which is supposed to be best way, but it turn out to be a problematic) due to SHA256_DIGEST_LENGTH error ... :S

I also cannot install from your codes. I got the following error...
Code:

make mingw
make[2]: Nothing to be done for `all'.
mingw32-gcc -Wall  rtmpdump.o librtmp/librtmp.a  -o rtmpdump.exe -lssl -lcrypto -lz -lws2_32 -lwinmm -lgdi32
make[1]: mingw32-gcc: Command not found
make[1]: *** [rtmpdump] Error 127
make: *** [mingw] Error 2


I suspect your code is for windows.

Yansky 06-07-2010 01:18 AM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
The links I posted are already binaries. You don't need to compile them.

dumpall 06-18-2010 08:37 AM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
Yansky, many thanks for providing precompiled(?) rtmpdump binaries for Mac OS X.

I need some help: I am using PPC mac, OS 10.4.11.

When trying to execute ./rtmpdump -r address of the stream -o filename.flv, i get every time Bus Error in Terminal.

I have googled to some extent, only to really find nothing that can give a solution to this problem.

Any suggestions would be of great help!

Best Regards;

Yansky 07-10-2010 04:08 PM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
Quote:

Originally Posted by dumpall (Post 19668)
Yansky, many thanks for providing precompiled(?) rtmpdump binaries for Mac OS X.

I need some help: I am using PPC mac, OS 10.4.11.

When trying to execute ./rtmpdump -r address of the stream -o filename.flv, i get every time Bus Error in Terminal.

I have googled to some extent, only to really find nothing that can give a solution to this problem.

Any suggestions would be of great help!

Best Regards;

Not sure. I haven't encountered that error before. The only thing I can suggest is to upgrade your OSX to 10.6 if possible.

pala 08-26-2010 12:12 PM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
rtmpdump seems to be missing in rtmpdump-2.2d-IntelOSX32bit-Build-PolarSSL.zip

Yansky 08-27-2010 02:20 AM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
Quote:

Originally Posted by pala (Post 21137)
rtmpdump seems to be missing in rtmpdump-2.2d-IntelOSX32bit-Build-PolarSSL.zip

Sorry, not quite sure what happened there. I've re-upped with the rtmpdump file.

StrickenFromHistory 10-15-2010 08:20 AM

Re: RTMPDump - how do I compile source code?


 
I get this error on Mac Intel 10.6

sudo make SYS=mingw
gcc -shared -Wl,-soname,librtmp.dll -o librtmp.dll rtmp.o log.o amf.o hashswf.o parseurl.o -lssl -lcrypto -lz -lws2_32 -lwinmm -lgdi32
ld: unknown option: -soname
collect2: ld returned 1 exit status
make[1]: *** [librtmp.dll] Error 1
make: *** [librtmp/librtmp.a] Error 2

Skeeve 10-30-2010 06:08 AM

Re: RTMPDump - how do I compile source code?


 
Hi!

Maybe someone can help me in a (as I think) very basic problem.

I use OS X 10.5.8 and the openssl there is too old (OpenSSL 0.9.7l 28 Sep 2006).

So I downloaded, compiled and installed OpenSSL 1.0.0a 1 Jun 2010 in /usr/local/openssl. The default (old one) is still in /usr/bin.

But when I try to compile the latest rtmpdump, checked out with svn, and try to "make", I still get

Quote:

In file included from rtmp.c:126:
handshake.h:67:2: error: #error Your OpenSSL is too old, need 0.9.8 or newer with SHA256
I tried export LD_LIBRARY_PATH=/usr/local/openssl/lib/
but still get the message.

Can anyone please give me a hint how to get rtmpdump compiled?

carmelo42 11-17-2010 02:57 PM

Re: RTMPDump - how do I compile source code?


 
I also have a problem compiling rtmpdump 2.3 from sources tarballs, with Mac OS X 10.6.4 :


Code:

macbook:rtmpdump-2.3 Carmelo$ make SYS=MacOSX
gcc -Wall  -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC  -c -o rtmp.o rtmp.c
gcc -Wall  -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC  -c -o log.o log.c
gcc -Wall  -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC  -c -o amf.o amf.c
In file included from amf.c:33:
bytes.h:74:2: warning: #warning "Float word order not defined, assuming the same as byte order!"
gcc -Wall  -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC  -c -o hashswf.o hashswf.c
gcc -Wall  -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC  -c -o parseurl.o parseurl.c
ar rs librtmp.a rtmp.o log.o amf.o hashswf.o parseurl.o
ar: creating archive librtmp.a
gcc -shared -Wl,-soname,librtmp.  -o librtmp. rtmp.o log.o amf.o hashswf.o parseurl.o  -lssl -lcrypto -lz
ld: unknown option: -soname
collect2: ld returned 1 exit status
make[1]: *** [librtmp.] Error 1
make: *** [librtmp/librtmp.a] Error 2


I also have tried with sudo :

Code:

macbook:rtmpdump-2.3 Carmelo$ sudo make SYS=MacOSX
Password:
gcc -shared -Wl,-soname,librtmp.  -o librtmp. rtmp.o log.o amf.o hashswf.o parseurl.o  -lssl -lcrypto -lz
ld: unknown option: -soname
collect2: ld returned 1 exit status
make[1]: *** [librtmp.] Error 1
make: *** [librtmp/librtmp.a] Error 2
macbook:rtmpdump-2.3 Carmelo$


jcj2002 01-02-2011 12:27 PM

Re: RTMPDump - how do I compile source code?


 
Quote:

Originally Posted by Skeeve (Post 22624)
Hi!

Maybe someone can help me in a (as I think) very basic problem.

I use OS X 10.5.8 and the openssl there is too old (OpenSSL 0.9.7l 28 Sep 2006).

So I downloaded, compiled and installed OpenSSL 1.0.0a 1 Jun 2010 in /usr/local/openssl. The default (old one) is still in /usr/bin.

But when I try to compile the latest rtmpdump, checked out with svn, and try to "make", I still get



I tried export LD_LIBRARY_PATH=/usr/local/openssl/lib/
but still get the message.

Can anyone please give me a hint how to get rtmpdump compiled?

Did you try editing the path of OpenSSL in Makefile file of the source?

Some like this:

-I /usr/local

jcj2002 01-03-2011 04:20 PM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
Quote:

Originally Posted by any ANONYMOUS forum user (Post 18827)
I don't know if anyone is able to compile rtmpdump for mac os x. Please someone tell me. And can someone tell me how to download videos from hulu.com and nick.com? SIMPLE INSTRUCTIONS lol, all I see is bla bla bla, I would rather pictures of you doing it, so I can just follow what your doing.

Thanks! I wish someone would make a real program, that can sniff ANY rtmp, ANY, not some, including hulu, but noooo they all got a DMCA removal or don't want to -_- COME ON HACKERS, I also want a hacker to make a alternitive for flash for my mac os x and iphone os. Not for windows, windows doesn't deserve it, let flash keep crashing their internet explorerer lol

How to compile RTMPDump in Mac OS:
  1. Download and extract the latest RTMPDump source tarball, open a Terminal window and cd to the directory you just extracted the sources, i.e. ./rtmpdump-2.3
  2. We need to make a small change in the Makefile in the ./librtmp directory, so you need to cd into that directory
  3. Edit Makefile in ./librtmp and replace -soname with -dylib_install_name
  4. cd ..
  5. sudo make install SYS=posix

    Depending on the version you compile, the compilation output will look something like this:
    Code:

    Jans-Mac-Pro:rtmpdump-2.3 jan$ make SYS=posix
    gcc -Wall  -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC  -c -o rtmp.o rtmp.c
    gcc -Wall  -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC  -c -o log.o log.c
    gcc -Wall  -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC  -c -o amf.o amf.c
    In file included from amf.c:33:
    bytes.h:74:2: warning: #warning "Float word order not defined, assuming the same as byte order!"
    gcc -Wall  -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC  -c -o hashswf.o hashswf.c
    gcc -Wall  -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC  -c -o parseurl.o parseurl.c
    ar rs librtmp.a rtmp.o log.o amf.o hashswf.o parseurl.o
    gcc -shared -Wl,-dylib_install_name,librtmp.so.0  -o librtmp.so.0 rtmp.o log.o amf.o hashswf.o parseurl.o  -lssl -lcrypto -lz
    ln -sf librtmp.so.0 librtmp.so
    gcc -Wall  -DRTMPDUMP_VERSION=\"v2.3\"  -O2  -c -o rtmpdump.o rtmpdump.c
    gcc -Wall  rtmpdump.o librtmp/librtmp.a  -o rtmpdump -lssl -lcrypto -lz
    gcc -Wall  -DRTMPDUMP_VERSION=\"v2.3\"  -O2  -c -o rtmpgw.o rtmpgw.c
    gcc -Wall  -DRTMPDUMP_VERSION=\"v2.3\"  -O2  -c -o thread.o thread.c
    gcc -Wall  rtmpgw.o thread.o librtmp/librtmp.a  -o rtmpgw -lpthread -lssl -lcrypto -lz
    gcc -Wall  -DRTMPDUMP_VERSION=\"v2.3\"  -O2  -c -o rtmpsrv.o rtmpsrv.c
    gcc -Wall  rtmpsrv.o thread.o librtmp/librtmp.a  -o rtmpsrv -lpthread -lssl -lcrypto -lz
    gcc -Wall  -DRTMPDUMP_VERSION=\"v2.3\"  -O2  -c -o rtmpsuck.o rtmpsuck.c
    gcc -Wall  rtmpsuck.o thread.o librtmp/librtmp.a  -o rtmpsuck -lpthread -lssl -lcrypto -lz

  6. Now there should be a rtmpdump executable in your /usr/local/bin directory.

Source: http://trick77.com/2010/07/31/captur...dump-mac-os-x/

Hope help you

jcj2002 01-03-2011 04:34 PM

Re: RTMPDump - how do I compile source code?


 
Quote:

Originally Posted by bricula (Post 18914)
Osx 10.5.8
xcode tools 3.0
rtmpdump 2.2d won't compile...
what does I need? please, it's been 2 days and I'm still here compiling and watching errors...
can someone write a step by step tutorial? the readme file says nothing... please, I'm running out of options....

I have succesfully compiled with OSX 10.6, last version rtmpdump v.2.3, which needs openssl 0.9.8 (for this you must upgrade to Mac OSX 10.6.5). Read the readme file on the source, gives so many information.

I am not a computer expert, but I get succes after many hours of testings and google documentations.

For your help, a step-by-step EXCELLENT tutorial for compiling and using rtmpdump you can see is at:

http://trick77.com/2010/07/31/captur...dump-mac-os-x/

Note than you must change libraries before (-soname with -dylib_install_name in /rtmpdump-2.3/librtmp/makefile).

The only action you need is :

$ cd (to the path rtmpdump-2.3 is)
$ make SYS=posix (under a terminal session).

Note: posix is part of the OSX system.

Obviously, for compiling you need the developer tools of Mac OSX 10.6 (XCode 3.2).

Hope this helps.

goka 02-22-2011 02:31 AM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
Couldn't anyone just post a compiled version of rtmpdump 2.3 if they have succeeded in compiling it? It would be greatly appreciated!

The only downloadable precompiled version I could find was 1.6. It does the job so far, but I guess I'll bump in to some problems sooner than later.

Yansky 02-23-2011 01:35 AM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
Quote:

Originally Posted by goka (Post 25551)
Couldn't anyone just post a compiled version of rtmpdump 2.3 if they have succeeded in compiling it? It would be greatly appreciated!

The only downloadable precompiled version I could find was 1.6. It does the job so far, but I guess I'll bump in to some problems sooner than later.

Did you bother to read through the thread?
http://trick77.com/2010/07/31/captur...dump-mac-os-x/

DaveFlash 03-15-2011 06:11 PM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
anyone have a rtmpdump 2.3 build?

cos im also having the same problem with compiling from src of "rtmpdump.mplayerhq.hu" I do have a correctly build install of 2.2 via macports, however, the port hasn't yet been updated to 2.3 so even if i could use macports again, im stuck with 2.2. so a standalone build outside of macports would be much appreciated.

//Dave

PS my os version on my main personal mac is an iMac with 10.5.8, do have a laptop from school (macbook pro with 10.6 on it, but because its still school property i cannot use it like i want, so streaming, no, cos high bandwidth apps/services are blocked etc.) however I did manage to fiddle with terminal on it, and got the method posted by jcj2002 working, so it did compile on 10.6.something, but unfortunately copying the compiled build from 10.6 and putting it on this mac (10.5.8) got me the "dyld: unknown required load command 0x80000022
Trace/BPT trap" error. Meaning it wont load on the older os/system.
Also, cannot currently upgrade this mac to 10.6.latest something version, because of timemachine problems. Upgrading would make my tm-backup go haywire/unsalvagable.. but alas thats a problem for a diiferent forum/place...

hyc 03-16-2011 05:53 AM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
Quote:

Originally Posted by DaveFlash (Post 26220)
While looking for a solution to the same problem as you guys "handshake.h:67:2: error: #error Your OpenSSL is too old, need 0.9.8 or newer with SHA256" rtmpdump 2.3 apparently is not recognizing openssl1.0.0d as higher version than the minimum req. 0.9.8.

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
would make the problem go away, but it didn't.

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

No, unfortunately MacOSX is NOT the same as every other Unix system. That's why the README says to use "make SYS=darwin" on MacOSX.

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:

finally make the project
Code:

make INC=-I/usr/local/ssl/include/ LDFLAGS=-L/usr/local/ssl/lib

This is the key step. If you installed a private copy of OpenSSL, you have to tell where that copy resides, and this is how it's done. If you don't get these paths right, then the compiler will only find the old version of OpenSSL that's in your default system location, and that's why you still get the complaint that your OpenSSL is too old even though you installed a newer one.

Yansky 03-17-2011 01:10 AM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
I always had trouble building with OpenSSL. I switched over to using PolarSSL and found it to be easier.

greenythebeast 01-30-2012 01:59 PM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
I'm trying to build rtmpdump 2.4 with KSV's patch on Mac OS X 10.6.8 but I am getting the following error during the compiling:

Code:

Greenys-MacBook-Pro-2:rtmpdump Greeny$ sudo make install SYS=darwin
gcc -dynamiclib -twolevel_namespace -undefined dynamic_lookup -fno-common -headerpad_max_install_names -install_name /usr/local/lib/librtmp.0.dylib  -o librtmp.0.dylib rtmp.o log.o amf.o hashswf.o parseurl.o  -lssl -lcrypto -lz
ln -sf librtmp.0.dylib librtmp.dylib
gcc -Wall  -DRTMPDUMP_VERSION=\"v2.4\"  -O2  -c -o rtmpsuck.o rtmpsuck.c
rtmpsuck.c: In function ‘ServeInvoke’:
rtmpsuck.c:162: error: thread-local storage not supported for this target
rtmpsuck.c:162: error: thread-local storage not supported for this target
make: *** [rtmpsuck.o] Error 1

Can anyone help me on what this means? Thanks.

Edit: I did some snooping on Google and was able to compile rtmpdump by getting rid of __thread on line 162 of rtmpsuck.c. Can anyone tell me if this is ok to do? Or will it not affect rtmpdump from working correctly?

Eldorado 07-19-2012 12:42 PM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
I hate to ask what I know is a stupid question.. but... :)

I've installed OS X 10.7.3 thru VMWare, installed latest XCode 4.3, grabbed rtmpdump from git etc. Finally able to get it to compile using either of the two command lines (not really sure of the difference or how it affects the final bins)

Code:

sudo make install sys=posix
Code:

make sys=darwin
This is my first jump into OS X and even compiling source of this nature so am trying to get a grasp of it all

So my stupid question, my main goal is to compile a new librtmp.0.dylib file to be used on iOS.. since my compiles appear to go fine and I do see the executables in /usr/local/bin I'm assuming it all went good... but where do I find the librtmp.0.dylib file? Do I need to compile differently?

I'm hoping I'm not wasting my time compiling on OS X and finding out later that I should be doing it elsewhere to get something for iOS :)

dariusii 07-01-2018 09:49 AM

Re: How do you compile rtmpdump in Mac OS X 10.6?


 
Quote:

Originally Posted by Eldorado (Post 49556)
I hate to ask what I know is a stupid question.. but... :)

I've installed OS X 10.7.3 thru VMWare, installed latest XCode 4.3, grabbed rtmpdump from git etc. Finally able to get it to compile using either of the two command lines (not really sure of the difference or how it affects the final bins)

Code:

sudo make install sys=posix
Code:

make sys=darwin
This is my first jump into OS X and even compiling source of this nature so am trying to get a grasp of it all

So my stupid question, my main goal is to compile a new librtmp.0.dylib file to be used on iOS.. since my compiles appear to go fine and I do see the executables in /usr/local/bin I'm assuming it all went good... but where do I find the librtmp.0.dylib file? Do I need to compile differently?

I'm hoping I'm not wasting my time compiling on OS X and finding out later that I should be doing it elsewhere to get something for iOS :)

there're errors anyway
Code:

make sys=darwin
gcc -shared -Wl,-soname,librtmp.so.1  -o librtmp.so.1 rtmp.o log.o amf.o hashswf.o parseurl.o  -lssl -lcrypto -lz -lm
ld: unknown option: -soname
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [librtmp.so.1] Error 1
make: *** [librtmp/librtmp.a] Error 2

$ cat Makefile | grep soname
$


All times are GMT -6. The time now is 11:33 PM.