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

how to compile in window 7 (32bit)

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

Josan420 05-13-2012 02:49 AM

how to compile in window 7 (32bit)


 
i need help to compile rtmpdump with MINGW. i installed MINGW following instruction provided in this thread,
_http://stream-recorder.com/forum/rtmpdump-do-compile-source-code-windows-t8123.html?t=8123
but i get this error
Quote:

Josan@Josan-PC /h/compressed/rtmpdump-v2.5-src
$ make SYS=mingw
make[1]: Entering directory `/h/compressed/rtmpdump-v2.5-src/librtmp'
gcc -Wall -DRTMPDUMP_VERSION=\"v2.5\" -DUSE_OPENSSL -O2 -fPIC -c -o rtmp.o
rtmp.c
rtmp.c:1:0: warning: -fPIC ignored for target (all code is position independent)
[enabled by default]
rtmp.c:41:25: fatal error: openssl/ssl.h: No such file or directory
compilation terminated.
make[1]: *** [rtmp.o] Error 1
make[1]: Leaving directory `/h/compressed/rtmpdump-v2.5-src/librtmp'
make: *** [librtmp/librtmp.a] Error 2

Josan@Josan-PC /h/compressed/rtmpdump-v2.5-src
$
i'm trying from two days, but no luck. please help me to compile.

svnpenn 05-13-2012 10:18 AM

Re: how to compile in window 7 (32bit)


 
Code:

make SHARED= SYS=mingw CRYPTO=POLARSSL XLIBS=-static
svnpenn.github.com/2012/03/rtmpdump-polarssl-100

Josan420 05-13-2012 12:08 PM

Re: how to compile in window 7 (32bit)


 
i tried but still
Code:

Josan@Josan-PC ~
$ cd H:\compressed

Josan@Josan-PC /h/compressed
$ cd rtmpdump-v2.5-src

Josan@Josan-PC /h/compressed/rtmpdump-v2.5-src
$ make SHARED= SYS=mingw CRYPTO=POLARSSL XLIBS=-static
make[1]: Entering directory `/h/compressed/rtmpdump-v2.5-src/librtmp'

Josan@Josan-PC /h/compressed/rtmpdump-v2.5-src
$ make SHARED= SYS=mingw CRYPTO=POLARSSL XLIBS=-static
make[1]: Entering directory `/h/compressed/rtmpdump-v2.5-src/librtmp'
gcc -Wall  -DRTMPDUMP_VERSION=\"v2.5\" -DUSE_POLARSSL  -O2    -c -o rtmp.o rtmp
.c
In file included from handshake.h:86:0,
                from rtmp.c:132:
dh.h: In function 'MDH_generate_key':
dh.h:64:43: error: 'havege_random' undeclared (first use in this function)
dh.h:64:43: note: each undeclared identifier is reported only once for each func
tion it appears in
dh.h: In function 'MDH_compute_key':
dh.h:75:3: warning: pointer targets in passing argument 3 of 'dhm_calc_secret' d
iffer in signedness [-Wpointer-sign]
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/polarssl/dhm.h:124:5:
note: expected 'int *' but argument is of type 'size_t *'
In file included from rtmp.c:132:0:
handshake.h: In function 'InitRC4Encryption':
handshake.h:120:16: warning: variable 'digestLen' set but not used [-Wunused-but
-set-variable]
rtmp.c: In function 'RTMP_Connect1':
rtmp.c:894:7: error: 'havege_random' undeclared (first use in this function)
rtmp.c:894:7: warning: implicit declaration of function 'ssl_set_ciphersuites' [
-Wimplicit-function-declaration]
rtmp.c:894:7: error: 'ssl_default_ciphersuites' undeclared (first use in this fu
nction)
rtmp.c: In function 'RTMP_ReadPacket':
rtmp.c:3198:7: warning: variable 'didAlloc' set but not used [-Wunused-but-set-v
ariable]
make[1]: *** [rtmp.o] Error 1
make[1]: Leaving directory `/h/compressed/rtmpdump-v2.5-src/librtmp'
make: *** [librtmp/librtmp.a] Error 2

Josan@Josan-PC /h/compressed/rtmpdump-v2.5-src
$


svnpenn 05-13-2012 12:25 PM

Re: how to compile in window 7 (32bit)


 
Quote:

Originally Posted by svnpenn.github.com/2012/03/rtmpdump-polarssl-100
Build RtmpDump with PolarSSL 1.0.0

​​​​​

Josan420 05-13-2012 12:49 PM

Re: how to compile in window 7 (32bit)


 
Code:

Josan@Josan-PC ~
$ wget polarssl.org/code/releases/polarssl-1.0.0-gpl.tgz
--2012-05-13 20:42:28--  http://polarssl.org/code/releases/polarssl-1.0.0-gpl.tg
z
Resolving polarssl.org... 79.170.91.36
Connecting to polarssl.org|79.170.91.36|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 540204 (528K) [application/x-gzip]
Saving to: `polarssl-1.0.0-gpl.tgz.1'

100%[======================================>] 540,204      207K/s  in 2.6s

2012-05-13 20:42:32 (207 KB/s) - `polarssl-1.0.0-gpl.tgz.1' saved [540204/540204
]


Josan@Josan-PC ~
$ tar xf polarssl*
tar: polarssl-0.14.3-gpl.tgz: Not found in archive
tar: polarssl-0.14.3-gpl.tgz.1: Not found in archive
tar: polarssl-1.0.0-gpl.tgz: Not found in archive
tar: polarssl-1.0.0-gpl.tgz.1: Not found in archive
tar: Exiting with failure status due to previous errors

Josan@Josan-PC ~
$ cd polarssl*
sh: cd: polarssl-0.14.3-gpl.tar: Not a directory

Josan@Josan-PC ~
$ make CC=gcc APPS=
make: *** No targets specified and no makefile found.  Stop.

Josan@Josan-PC ~
$ make DESTDIR=/mingw install
make: *** No rule to make target `install'.  Stop.

Josan@Josan-PC ~
$ cd -
/usr

Josan@Josan-PC /usr
$


Josan420 05-13-2012 12:55 PM

Re: how to compile in window 7 (32bit)


 
i have deleted everything from folder MINGW, now i'm going to try with cygwin.
Code:

install cygwin
 during installation, get the following packages:
Code:
gcc4-core, gcc4-g++, make, zlib, binutils, tar, gzip, bzip2, bash, coreutils, crypt, boost, libboost, boost-devel, openssl, openssl-devel
download rtmpdump source from http://lkcl.net/rtmp/
 start the cygwin console, and go into the dir with the source
 e.g. cd /cygdrive/c/Documents\ and\ Settings/username/Desktop/
 unpack source by typing tar -zxvf rtmpdump-v1.6.tar.gz
 then cd rtmpdump-v1.6
 use a good text program to edit MakefileWIN32 (not notepad!)
 change mingw32-gcc to gcc
 change mingw32-g++ to g++
 change mingw32-ld to ld
 save MakefileWIN32

 in the cygwin console, type make -f MakefileWIN32
 now it should make rtmpdump quickly and give you rtmpdump_win32.exe

i found this on another thread about 7 years old, so i need help if there is anything else i have to install and or any change since 2006
(sorry for my english)

svnpenn 05-13-2012 01:36 PM

Re: how to compile in window 7 (32bit)


 
Make sure you are using correct PolarSSL

Code:

cd rtmpdump
v='0.14.3'
grep -r ciphersuite * && v='1.0.0'
grep -r havege_random * && v='1.1.3'

svnpenn.github.com/2012/05/build-rtmpdump

Josan420 05-14-2012 03:36 AM

Re: how to compile in window 7 (32bit)


 
i'm now trying with CYGWIN. i have installed it.
but i'm getting this error
Code:

bash-4.1$ cd H:\compressed
bash-4.1$ tar -zxvf rtmpdump-v1.6.tar.gz
bash: tar: command not found
bash-4.1$

it say command not found:(
please help me

Josan420 05-14-2012 05:16 AM

Re: how to compile in window 7 (32bit)


 
i have done it successfully. i reinstalled cygwin and now it work:) :)
thanks svnpenn:) :)

svnpenn 05-15-2012 05:35 AM

Re: how to compile in window 7 (32bit)


 
I already linked twice instruction on how to make a static build. If you cant follow those then that is your problem.


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