Advertisement
nichot20

cross compile rtmp

Oct 18th, 2011
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.80 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. # Cross compile rtmp for Win64 with OPENssl
  4. # you need to build OPENssl first.
  5.  
  6. export PATH="$PATH:/mnt/store-0/tims/ffmpeg-toolchain/mingw-w64-x86_64/bin"
  7.  
  8. cd /mnt/store-0/tims/ffmpeg-win/ffmpeg-libs/rtmpdump-git-c58cfb3e
  9.  
  10. TOOL_PREFIX=/mnt/store-0/tims/ffmpeg-toolchain/mingw-w64-x86_64/mingw
  11. export DESTDIR=/mnt/store-0/tims/ffmpeg-win/local-build
  12. make clean
  13.  
  14. # There is no configure, just a prebuilt Makefile with some tweakables at the top
  15. export CROSS_COMPILE=x86_64-w64-mingw32-
  16. export XLDFLAGS=--sysroot=/mnt/store-0/tims/ffmpeg-win/local-build
  17. export XCFLAGS=--sysroot=/mnt/store-0/tims/ffmpeg-win/local-build
  18.  
  19. echo "make...".
  20. make SHARED= SYS=mingw
  21.  
  22. make_ok=$?
  23.  
  24. # now install
  25. if [ $make_ok = 0 ] ; then
  26.   echo "installing..."
  27.   make install SHARED= SYS=mingw
  28. fi
  29. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement