Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # Cross compile rtmp for Win64 with OPENssl
- # you need to build OPENssl first.
- export PATH="$PATH:/mnt/store-0/tims/ffmpeg-toolchain/mingw-w64-x86_64/bin"
- cd /mnt/store-0/tims/ffmpeg-win/ffmpeg-libs/rtmpdump-git-c58cfb3e
- TOOL_PREFIX=/mnt/store-0/tims/ffmpeg-toolchain/mingw-w64-x86_64/mingw
- export DESTDIR=/mnt/store-0/tims/ffmpeg-win/local-build
- make clean
- # There is no configure, just a prebuilt Makefile with some tweakables at the top
- export CROSS_COMPILE=x86_64-w64-mingw32-
- export XLDFLAGS=--sysroot=/mnt/store-0/tims/ffmpeg-win/local-build
- export XCFLAGS=--sysroot=/mnt/store-0/tims/ffmpeg-win/local-build
- echo "make...".
- make SHARED= SYS=mingw
- make_ok=$?
- # now install
- if [ $make_ok = 0 ] ; then
- echo "installing..."
- make install SHARED= SYS=mingw
- fi
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement