Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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:
|
#2
|
|||
|
|||
Re: how to compile in window 7 (32bit)Code:
make SHARED= SYS=mingw CRYPTO=POLARSSL XLIBS=-static |
#3
|
|||
|
|||
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 $ |
#4
|
|||
|
|||
Re: how to compile in window 7 (32bit)Quote:
|
#5
|
|||
|
|||
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 $ |
#6
|
|||
|
|||
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 (sorry for my english) |
#7
|
|||
|
|||
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' |
#8
|
|||
|
|||
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$ please help me |
#9
|
|||
|
|||
Re: how to compile in window 7 (32bit)i have done it successfully. i reinstalled cygwin and now it work
thanks svnpenn |
#10
|
|||
|
|||
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.
|
Tags: compile, librtmp, mingw, rtmpdump |
Thread Tools | |
Display Modes | |
|
|