[rtmpdump] Cygwin

Steven Penny svnpenn at gmail.com
Wed Apr 25 20:45:12 CEST 2012


Steven Penny wrote:
> PREFIX=i686-pc-mingw32-
>
> # Install PolarSSL
> wget polarssl.org/code/releases/polarssl-1.0.0-gpl.tgz
> tar xf polarssl*
> cd polarssl*
> make APPS= AR=${PREFIX}ar CC=${PREFIX}gcc
> make DESTDIR=/usr/${PREFIX%-}/sys-root/mingw install
> cd -
>
> # Install RtmpDump
> git clone git://git.ffmpeg.org/rtmpdump
> cd rtmpdump
> make CROSS_COMPILE=${PREFIX} CRYPTO=POLARSSL \
> SHARED= SYS=mingw XLIBS=-static

I found it to be less "ugly" if you just symlink the files

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

# Link files
ln -s /usr/bin/i686-pc-mingw32-ar /bin/ar
ln -s /usr/bin/i686-pc-mingw32-gcc /bin/gcc
ln -s /usr/i686-pc-mingw32/sys-root/mingw /mingw

# Install PolarSSL
wget polarssl.org/code/releases/polarssl-1.0.0-gpl.tgz
tar xf polarssl*
cd polarssl*
make APPS= CC=gcc
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