Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 05-13-2012, 03:49 AM
Josan420 Josan420 is offline
Senior Member
 
Join Date: Feb 2012
Location: India
Posts: 150
Josan420 is on a distinguished road
Default

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.
Reply With Quote
  #2  
Old 05-13-2012, 11:18 AM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

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
Reply With Quote
  #3  
Old 05-13-2012, 01:08 PM
Josan420 Josan420 is offline
Senior Member
 
Join Date: Feb 2012
Location: India
Posts: 150
Josan420 is on a distinguished road
Default

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
$
Reply With Quote
  #4  
Old 05-13-2012, 01:25 PM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

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
​​​​​
Reply With Quote
  #5  
Old 05-13-2012, 01:49 PM
Josan420 Josan420 is offline
Senior Member
 
Join Date: Feb 2012
Location: India
Posts: 150
Josan420 is on a distinguished road
Default

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
$
Reply With Quote
  #6  
Old 05-13-2012, 01:55 PM
Josan420 Josan420 is offline
Senior Member
 
Join Date: Feb 2012
Location: India
Posts: 150
Josan420 is on a distinguished road
Default

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)
Reply With Quote
  #7  
Old 05-13-2012, 02:36 PM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

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
Reply With Quote
  #8  
Old 05-14-2012, 04:36 AM
Josan420 Josan420 is offline
Senior Member
 
Join Date: Feb 2012
Location: India
Posts: 150
Josan420 is on a distinguished road
Default

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
Reply With Quote
  #9  
Old 05-14-2012, 06:16 AM
Josan420 Josan420 is offline
Senior Member
 
Join Date: Feb 2012
Location: India
Posts: 150
Josan420 is on a distinguished road
Default

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


i have done it successfully. i reinstalled cygwin and now it work
thanks svnpenn
Reply With Quote
  #10  
Old 05-15-2012, 06:35 AM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

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.
Reply With Quote
Reply Post New Thread
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons