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 06-30-2009, 07:44 PM
Sam123 Sam123 is offline
Junior Member
 
Join Date: Jun 2009
Posts: 4
Sam123 is on a distinguished road
Default

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?
Reply With Quote
  #2  
Old 07-01-2009, 03:10 AM
Stream Recorder
 
Posts: n/a
Default

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?
Reply With Quote
  #3  
Old 07-01-2009, 12:56 PM
Sam123 Sam123 is offline
Junior Member
 
Join Date: Jun 2009
Posts: 4
Sam123 is on a distinguished road
Default

Re: RTMPDump - how do I compile source code?


I use Windows XP.
Reply With Quote
  #4  
Old 07-01-2009, 01:18 PM
qashairy qashairy is offline
Junior Member
 
Join Date: Jun 2009
Posts: 19
qashairy is on a distinguished road
Default

Re: RTMPDump - how do I compile source code?


I use Win 7
Reply With Quote
  #5  
Old 07-01-2009, 10:33 PM
Stream Recorder
 
Posts: n/a
Default

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...
Reply With Quote
  #6  
Old 07-01-2009, 10:33 PM
Stream Recorder
 
Posts: n/a
Default

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...
Reply With Quote
  #7  
Old 07-26-2009, 08:10 AM
compn compn is offline
Stream recording expert
 
Join Date: Sep 2006
Posts: 128
compn has a spectacular aura aboutcompn has a spectacular aura aboutcompn has a spectacular aura about
Default

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)
Reply With Quote
  #8  
Old 12-31-2009, 04:46 AM
guardianx guardianx is offline
Junior Member
 
Join Date: Dec 2009
Posts: 6
guardianx is on a distinguished road
Default

Re: RTMPDump - how do I compile source code?


when i download the source file the file makeWIN32 is not there.. wtf?
Reply With Quote
  #9  
Old 12-31-2009, 11:56 AM
hyc hyc is offline
RTMPdump team
 
Join Date: Dec 2009
Posts: 169
hyc will become famous soon enoughhyc will become famous soon enough
Default

Re: RTMPDump - how do I compile source code?


Read the README, that's what it's there for.
Reply With Quote
  #10  
Old 03-01-2010, 11:17 PM
wuang wuang is offline
Junior Member
 
Join Date: Mar 2010
Posts: 2
wuang is on a distinguished road
Default

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
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 11:20 AM.


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