[rtmpdump] Cygwin

Steven Penny svnpenn at gmail.com
Tue May 1 08:28:38 CEST 2012


Steven Penny wrote:
> ln -s /usr/bin/i686-pc-mingw32-gcc /bin/gcc

A more correct way than creating the symlinks directly is to call "alternatives"

http://linux.die.net/man/8/alternatives

#!/bin/sh
# Install Cygwin packages
# git
# make
# mingw-gcc-core
# mingw-zlib
# wget

alternatives \
	--install /usr/bin/gcc.exe gcc /usr/bin/i686-pc-mingw32-gcc.exe 40 \
	--slave /usr/bin/cc.exe cc /usr/bin/i686-pc-mingw32-gcc.exe \
	--slave /usr/bin/ar.exe ar /usr/bin/i686-pc-mingw32-ar.exe \
	--slave /mingw mingw /usr/i686-pc-mingw32/sys-root/mingw
alternatives --config gcc

# Install PolarSSL
wget polarssl.org/code/releases/polarssl-1.0.0-gpl.tgz
tar xf polarssl*
cd polarssl*
make APPS=
make DESTDIR=/mingw install
cd -

# Install RtmpDump
git clone git://git.ffmpeg.org/rtmpdump
cd rtmpdump
make CRYPTO=POLARSSL SHARED= SYS=mingw XLIBS=-static


More information about the rtmpdump mailing list