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)

advisethis 08-17-2011 08:11 PM

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


 
Code:

  Generate      test_suite_aes.c
make[1]: scripts/generate_code.pl: Command not found
make[1]: *** [test_suite_aes.c] Error 127
make: *** [all] Error 2

Keep getting that error

svnpenn 08-18-2011 12:35 AM

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


 
You need to install Perl

mingw-get install msys-perl

advisethis 08-18-2011 12:40 AM

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


 
Thanks for walking me through this.

any ANONYMOUS forum user 09-22-2011 01:41 PM

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


 
I've tried following the directions here by svnpenn and I've gotten polarssl to compile but I cant get RTMPdump to.

I get the error below. Can someone help me out?
Code:

c:\Projects\rtmpdump>make SHARED= SYS=mingw CRYPTO=POLARSSL LIBZ="-lz -static"
make[1]: Entering directory `/c/Projects/rtmpdump/librtmp'
gcc -Wall  -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_POLARSSL  -O2    -c -o rtmp.o rtmp
.c
rtmp.c: In function 'RTMP_Connect1':
rtmp.c:867:7: warning: implicit declaration of function 'ssl_set_ciphers'
rtmp.c:867:7: error: 'ssl_default_ciphers' undeclared (first use in this functio
n)
rtmp.c:867:7: note: each undeclared identifier is reported only once for each fu
nction it appears in
make[1]: *** [rtmp.o] Error 1
make[1]: Leaving directory `/c/Projects/rtmpdump/librtmp'
make: *** [librtmp/librtmp.a] Error 2

c:\Projects\rtmpdump>


AmazingMatze 09-23-2011 03:28 PM

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


 
Hmm. I also had some problems compiling RTMPdump. But it seems to me that your polarssl installation is not correct. For example "ssl_default_ciphers" is a function that should be in here: "C:\MinGW\include\polarssl\ssl.h"

Maybe this command "make DESTDIR=/MinGW install" (copies files into the root directory of your MinGW installation) failed.

Verify that these directories do exit:

C:\MinGW\include\polarssl\*some_polarssl_files*
C:\MinGW\bin\*some_polarssl_files*
C:\MinGW\lib\libpolarssl.a

Btw, I also could only compile RTMPDump in this constellation:

mingw-get-inst-20110530.exe
-Use pre-packaged repository catalogues
-Selected: MinGW Developer Kit (includes Perl)

polarssl-0.14.3-gpl.tgz

svnpenn 09-24-2011 06:38 PM

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


 
http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-September/001627.html

[rtmpdump] branch master updated. 6230845 PolarSSL support now requires version 1.0.0.

Author: Howard Chu <hyc at highlandsun.com>
AuthorDate: Sun Sep 25 03:07:14 2011 -0700

_Nazar_ 03-22-2012 04:27 AM

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


 
Does anyone tried to compile latest source from GIT?
Quote:

git://git.ffmpeg.org/rtmpdump
Quote:

make SHARED= SYS=mingw CRYPTO=POLARSSL LIBZ="-lz -static"
I got

Quote:

Could not locate specified path.
make: *** [librtmp/librtmp.a] Error 1

_Nazar_ 03-23-2012 08:21 AM

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


 
Read this article http://svnpenn.github.com/2012/03/rt...-polarssl-100/

Everything fine.

RadiantThunder 04-07-2012 02:10 PM

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


 
Does this still work ?

I did everything like in the article, but I get a load of 'undefined reference to' errors when issuing the command to make librtmp (the last make command).

The only different thing i did was not using git from inside MinGW to download the source. (of course i edited the make command so it wouldn't use the git version tag)

You can see what i mean in this screenshot

svnpenn 04-07-2012 09:27 PM

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


 
Quote:

Originally Posted by RadiantThunder
Does this still work ?

The script works perfectly.

Honestly I dont know how you were able to mess it up.


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