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)

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:15 PM.