The MSYS2 crap changed too much and now (2018) this script cannot build even zlib. Honestly, just cross-compile using WSL or in true Linux would spare you a lot of trouble.
MSYS2 Build scripts for building L-Smash and L-Smash Works.
The master branch now use the TDM64-GCC toolchain instead of the one from pacman
This is a set of shell scripts that semi-automate the building of L-Smash and L-Smash Works with Opus audio and Motion JPEG support. All binaries are static if you are running the scripts according to the guide below. Helper scripts for setting up a newly-installed MSYS2 are also available. This set of scripts should be faster than the MSYS version on a multi-core processor machine.
Use the Download Zip button on the right of GitHub page.
Note on 20 May,2015: IF a screen full of ~tilds appears asking for reason to merge, type: :exit
then ENTER.
- Download this package and extract to some empty folder
- Double-Click on FirstAutomatedBld.vbs
- Select a build target by typing [0]:32-bit, [1]:64-bit or [2]: Both then ENTER. Type 3 to Abort.
- When prompted, click OK. Wait a moment, then close the MSYS2 Window
- Go to watch 2 episodes of animation...(On Core-i7, building both 32 and 64 bit binaries takes around 30min)
- It should popup a dialog showing the time taken to build
- Close the dialog, and get your packages in MSYS2ROOT\ReadyToUse32 and MSYS2ROOT\ReadyToUse64
- P.S.: _32bit and 64bit FFmpeg.exe can be found inside
msys64/mingw32/bin
andmsys64/mingw64/bin
, respectively.
P.S.: The AviSynth plugin will only be built if you have either VS2013 or VS2015 installed In order to build the AviSynth plugin, it is required to compile ffmpeg, it is one of dependency library, on Visual Studio, so that we were stop supportting that. Please see WIKI page for details
- Delete
msys2.tar.xz
- Download msys2-base-x86_64-[date].tar.xz(for 64bit arch) or msys2-base-i686-[date].tar.xz(for 32bit arch)
- Rename
msys2.tar.xz
- Download 7za920.zip
- Put in the same place as
FirstAutomatedBld.vbs
- Double-Click on
FirstAutomatedBld.vbs
- When a script still also fails in this, try "Usage Guide (Manual)". And please file an Issue.
- Install MSYS2
- First-time startup using msys2_shell.bat
- Close MSYS2
- Copy the script files to MSYS2ROOT/home/UserName/
- Run msys2_shell.cmd
./coreupdate.sh
Restart MSYS2 when finished./inst_base.sh
Exit MSYS2 when finished- Press and hold the Shift key and right click on a folder where contain
msys2_shell.cmd
, and clickOpen Command Window Here
. - Run call msys2_shell.cmd -mingw32 for 32bit target, call msys2_shell.cmd -mingw64 for 64bit target
./buildmypkg.sh
or./buildmypkg_64.sh
If you have VS2013/2015 and want to build LSW for AviSynth, run./bld_lsw_avs.sh
or./bld_lsw_avs_64.sh
- Retrieve your package at
_MSYS2ROOT_/ReadyToUse32
or_MSYS2ROOT_/ReadyToUse64
DO NOT RUN pacman -Syu
without first running ./coreupdate.sh
and restarting MSYS2!
P.S. recent versions of MSYS2 already comes with the update-core
command. coreupdate.sh
now just calls the internal command.
P.S. recent version of MSYS2 has pacman -Syuu
command. coreupdate.sh
now just calls that.
- Press and hold the Shift key and right click on a folder where contain
msys2_shell.cmd
, and clickOpen Command Window Here
. - Run call msys2_shell.cmd -mingw32 for 32bit target, call msys2_shell.cmd -mingw64 for 64bit target
./buildmypkg.sh
or./buildmypkg_64.sh