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)