Last active
May 14, 2016 08:38
-
-
Save abakum/2d8448ba69162f4a12e598fab5c7c07f to your computer and use it in GitHub Desktop.
Build back-end (CLI) of mkvtoolnix from git on MSYS2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
update-core | |
pacman -Suu | |
if [ "$MSYSTEM" == "MSYS" ] ; then | |
pacman -S git | |
pacman -S base-devel | |
pacman -S ruby | |
else | |
cd ~ | |
if [ -d mkvtoolnix ] ; then | |
cd mkvtoolnix | |
git pull | |
else | |
[ "$MSYSTEM" == "MINGW32" ] && b=i686 | |
[ "$MSYSTEM" == "MINGW64" ] && b=x86_64 | |
mb=mingw-w64-$b | |
echo $mb | |
pacman -S $mb-toolchain | |
pacman -S $mb-libebml | |
pacman -S $mb-libmatroska | |
pacman -S $mb-libogg | |
pacman -S $mb-libvorbis | |
pacman -S $mb-zlib | |
pacman -S $mb-boost | |
pacman -S $mb-flac | |
pacman -S $mb-curl | |
git clone git://github.com/mbunkus/mkvtoolnix.git | |
cd mkvtoolnix | |
fi | |
grep -q ${MSYSTEM,,} build-config || { | |
./autogen.sh | |
./configure --with-boost=/${MSYSTEM,,} | |
./drake clean | |
} | |
./drake | |
mv -f src/*.exe /${MSYSTEM,,}/bin | |
mv -f src/tools/*.exe /${MSYSTEM,,}/bin | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Building with a mingw (shared libraries) on windows with MSYS2.
The rest of this guide assumes that you've installed MSYS2
into the directory c:\msys64.
c:\msys64\msys2_shell.bat
./mkvtoolnix.sh
exit
c:\msys64\mingw64_shell.bat
./mkvtoolnix.sh
If everything works fine you'll end up with a configured MKVToolNix
source tree, build binares and copied it to c:\msys64\mingw64\bin
Use it on windows from c:\msys64\mingw64\bin.
c:\msys64\mingw32_shell.bat
./mkvtoolnix.sh
If everything works fine you'll end up with a configured MKVToolNix
source tree, build binares and copied it to c:\msys64\mingw32\bin.
Use it on windows from c:\msys64\mingw32\bin