View Single Post
  #469  
Old 12-20-2018, 05:01 AM
supersonic80 supersonic80 is offline
Senior Member
 
Join Date: Mar 2016
Posts: 138
supersonic80 is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


The next one is the instruction I have, I only made some changes to make it work:
1. I had to remove the line 40 of rtmpdump.c, otherwise it would not compile.
2. I added -static after -lz on line 14 of Makefile to make rtmpdump "self-sufficient".

Instruction:
# Suppose the current user is IEUser (replace by your username)

# Install MinGW
https://osdn.net/projects/mingw/down...get-setup.exe/

# Run and select to install
mingw-developer-toolkit-bin
mingw32-base-bin
mingw32-gcc-g++-bin
msys-base-bin

# Download and unpack
https://www.zlib.net/zlib1211.zip
https://www.openssl.org/source/openssl-1.0.2q.tar.gz
https://github.com/sstativa/rtmpdump...ive/master.zip

# Open cmd.exe and start
c:\MinGW\msys\1.0\msys.bat

# Next should be run in msys window

# Compile openssl
cd /c/Users/IEUser/Downloads/openssl-1.0.2q
./config
make

# Compile zlib
cd /c/Users/IEUser/Downloads/zlib-1.2.11
make -f win32/Makefile.gcc

# Compile rtmdump-ksv
cd /c/Users/IEUser/Downloads/rtmpdump-ksv-master

make SYS=mingw INC="-I/c/Users/IEUser/Downloads/openssl-1.0.2q/include -I/c/Users/IEUser/Downloads/zlib-1.2.11 -L/c/Users/IEUser/Downloads/openssl-1.0.2q -L/c/Users/IEUser/Downloads/zlib-1.2.11" LDFLAGS="-L/c/Users/IEUser/Downloads/openssl-1.0.2q -L/c/Users/IEUser/Downloads/zlib-1.2.11"
Reply With Quote