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)

Sam123 06-30-2009 06:44 PM

RTMPDump - how do I compile source code in Windows?


 
Ok, I got the source code for rtmpdump but what do I do with it? What do I use to compile it into a program?

Stream Recorder 07-01-2009 02:10 AM

Re: RTMPDump - how do I compile source code?


 
What OS do you want to compile for: Windows, Mac OS, Linux?

Related threads:
How do you compile rtmpdump in Mac OS X 10.6?
RTMPDump - how do I compile source code in Windows?

Sam123 07-01-2009 11:56 AM

Re: RTMPDump - how do I compile source code?


 
I use Windows XP.

qashairy 07-01-2009 12:18 PM

Re: RTMPDump - how do I compile source code?


 
I use Win 7

Stream Recorder 07-01-2009 09:33 PM

Re: RTMPDump - how do I compile source code?


 
The readme of rtmpdump says:
Code:

To compile just type

  $ make rtmpdump
  $ make streams

or to cross compile

 $ make -f MakefileWIN32 rtmpdump
 $ make -f MakefileARM rtmpdump
 $ make -f MakefileARM streams

So it seems to be pretty easy to compile rtmpdump in Linux. You just need the boost libraries and libssl-dev package.

I believe that in Windows you need cygwin, plus the boost libraries, libssl and gcc/c++ compiler should be available under cygwin.

I saw a blog post about compiling rtmpdump 1.3d with Visual Studio 2008 without cygwin, but it is about an old version an the author wasn't sure he did everything properly.

Please let me know how it goes...

Stream Recorder 07-01-2009 09:33 PM

Re: RTMPDump - how do I compile source code?


 
The readme of rtmpdump says:
Code:

To compile just type

  $ make rtmpdump
  $ make streams

or to cross compile

 $ make -f MakefileWIN32 rtmpdump
 $ make -f MakefileARM rtmpdump
 $ make -f MakefileARM streams

So it seems to be pretty easy to compile rtmpdump in Linux. You just need the boost libraries and libssl-dev package.

I believe that in Windows you need cygwin, plus the boost libraries, libssl and gcc/c++ compiler should be available under cygwin.

I saw a blog post about compiling rtmpdump 1.3d with Visual Studio 2008 without cygwin, but it is about an old version an the author wasn't sure he did everything properly.

Please let me know how it goes...

compn 07-26-2009 07:10 AM

Re: RTMPDump - how do I compile source code?


 
cygwin instructions:

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

common problems:
Quote:

help, i get this error when compiling rtmpdump!
Code:

In file included from rtmp.cpp:36:
rtmp.h:94: error: ISO C++ forbids declaration of 'DH' with no type
rtmp.h:94: error: expected ';' before '*' token
rtmp.h:95: error: ISO C++ forbids declaration of 'RC4_KEY' with no type
rtmp.h:95: error: expected ';' before '*' token
rtmp.h:96: error: ISO C++ forbids declaration of 'RC4_KEY' with no type


it means rtmpdump cant find openssl (in /usr/include/openssl). make sure you installed openssl-devel.
if you installed it somewhere else , you can specify it by editing the makefilewin32 and adding the correct path to your openssl to the cxxflags of MakefileWIN32:
Code:

-I /usr/local/ssl/include/
Quote:

help, i get this error
Code:

/usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../i686-pc-cygwin/bin/ld: cannot find
 -lssl


gcc cant find /usr/lib/libssl.a or /usr/lib/libssl.dll.a , make sure you have openssl installed properly (or copy those files to /usr/lib)

guardianx 12-31-2009 03:46 AM

Re: RTMPDump - how do I compile source code?


 
when i download the source file the file makeWIN32 is not there.. wtf?

hyc 12-31-2009 10:56 AM

Re: RTMPDump - how do I compile source code?


 
Read the README, that's what it's there for.

wuang 03-01-2010 10:17 PM

Re: RTMPDump - how do I compile source code?


 
hi,expert,i compiled the rtmpdump with cygwin,how can i remove the
cygwin1.dll depenence,i try use mingw to compile,but failed
help me


All times are GMT -6. The time now is 07:39 PM.