Skip to content

Instantly share code, notes, and snippets.

@sailfish009
Last active June 15, 2016 02:29
Show Gist options
  • Save sailfish009/e131222e4c9a0bff9cead5024e1e93a4 to your computer and use it in GitHub Desktop.
Save sailfish009/e131222e4c9a0bff9cead5024e1e93a4 to your computer and use it in GitHub Desktop.
Build openh264 with MSVC
0. git clone openh264 source
git clone https://github.com/cisco/openh264
1. download msys2
http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20160205.exe
3. download nasm 64bit, extract it to /usr/bin
http://www.nasm.us/pub/nasm/releasebuilds/2.12.01/win64/nasm-2.12.01-win64.zip
4. pacman -S pkg-config diffutils make
5. run "VS2015 x64 Native Tools Command Promp"
6. cd /msys64 and run mingw64_shell.bat
7. mv /bin/link.exe /bin/link_backup.exe
8. type cl and type link
9. cd /c/openh264
10. make OS=msvc ARCH=x86_64 USE_ASM=No BUILDTYPE=Debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment