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

RTMPDump - how do I compile source code in Windows?

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

hyc 03-02-2010 10:04 PM

Re: RTMPDump - how do I compile source code?


 
Once you have built it as a cygwin build, you cannot remove the dependency on the cygwin DLL. You have to build it as a pure Windows/MinGW binary to avoid the cygwin dependency.

Why can't you just use the Windows build that we already published on the web site? It's a MinGW build.

wuang 03-03-2010 01:05 AM

Re: RTMPDump - how do I compile source code?


 
thank you,hyc

withermage 04-22-2010 06:46 AM

Re: RTMPDump - how do I compile source code?


 
I have of course read this thread.

I tried for about 4 hours to get something to compile it yesterday to no avail.

I was attempting to use MinGW which was referenced in another thread, however I am now downloading Cygwin. I just thought it would be relatively simple to compile the exe and put it some place for me to snag -- clearly thats not the case.

Hopefully I will get it compiled today. Thanks for the help.

withermage 04-22-2010 10:44 AM

Re: RTMPDump - how do I compile source code?


 
Uh yeah. The instructions are bad.

For one, I don't have a Makewin32 file in my source code.

For two, I can't compile the source code with Cygwin, all i get is a prompt that says "make posix" or "make mingw", neither of which work.


Could somebody please compile this source for me so I can grab the executable? it would be much appreciated ^.^

withermage 04-22-2010 11:30 AM

Re: RTMPDump - how do I compile source code?


 
I have progressed forward by moving r440 directory into cygwin/home/user/ directory.

I opened the 'makefile' and see there are other options like make cygwin.

I typed make cygwin and this is the error it's throwing:

The filename, directory or volume label syntax is incorrect

*** librtmp/librtmp.a


I looked in the librtmp directory, there is no file called 'librtmp.a'

withermage 04-22-2010 01:25 PM

Re: RTMPDump - how do I compile source code?


 
Finally compiled -- After clearing out all my previous installs of MinGW and Cygwin and deleting everything/starting fresh i was able to use cygwin to get it compiled. Thanks for this -- it worked wonderfully.

orihancol 10-11-2010 11:58 AM

Re: RTMPDump - how do I compile source code?


 
I was succesfull to compile it but get new error. When I use exercute file (ex: rtmpgw.exe) in Windows, this program get error: "Program too big to fit in memory". I don't know why? Can somebody give me some help? Thanks!

srpenn82 04-01-2011 08:36 AM

Re: compile rtmpdump on windows


 
this is the link to compile rtmpdump on windows

http://srpenn82.blogspot.com/2011/03/rtmpdump.html

Quote:

Originally Posted by srpenn82.blogspot.com
Install
MinGW - http://sourceforge.net/projects/mingw/
Slik SVN - http://www.sliksvn.com/en/download/

PolarSSL
polarssl.org - http://polarssl.org/

make CC=gcc LDFLAGS="-L../library -lpolarssl -lws2_32"

move polarssl-0.14.2\include\polarssl to
MinGW\include\polarssl

move polarssl-0.14.2\library\libpolarssl.a to
MinGW\lib\libpolarssl.a

Compile
svn co svn://svn.mplayerhq.hu/rtmpdump/trunk rtmpdump

mingw-get install libz

make CRYPTO=POLARSSL SHARED= SYS=mingw VERSION=r563

Notes:
if you have installed anything other than mingw-get install libz, you are going to need to reinstall MinGW


advisethis 08-17-2011 05:07 PM

Re: compile rtmpdump on windows


 
Quote:

Originally Posted by srpenn82 (Post 26808)
this is the link to compile rtmpdump on windows

http://srpenn82.blogspot.com/2011/03/rtmpdump.html

Any update on this as following the above directions doesn't work?

svnpenn 08-17-2011 06:46 PM

Re: RTMPDump - how do I compile source code in Windows?


 
http://svnpenn.blogspot.com/2011/06/rtmpdump-mingw.html

Install required packages
mingw-get install libz
mingw-get install msys-wget

Install PolarSSL
wget http://polarssl.org/code/releases/polarssl-0.14.3-gpl.tgz
tar fx polarssl-0.14.3-gpl.tgz
cd polarssl-0.14.3
make CC=gcc LDFLAGS="-L../library -lpolarssl -lws2_32"
make DESTDIR=/MinGW install

Install RTMPdump
wget http://repo.or.cz/w/rtmpdump.git/snapshot/HEAD.tar.gz
tar fx HEAD.tar.gz
cd rtmpdump
make SHARED= SYS=mingw CRYPTO=POLARSSL LIBZ="-lz -static"

Optional, make librtmp.dll
make SYS=mingw CRYPTO=POLARSSL LIBZ="-lz -static"


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