Skip to content

MSYS2 Build scripts for building (Win-32bit Static) L-Smash and L-Smash Works.

License

Notifications You must be signed in to change notification settings

MaverickTse/lsw-build2

Repository files navigation

OBSOLETED - DO NOT USE

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.

lsw-build2(TDM)

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

Details

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.

How to Download

Use the Download Zip button on the right of GitHub page.

DEAD SIMPLE First-time Build Guide

Note on 20 May,2015: IF a screen full of ~tilds appears asking for reason to merge, type: :exit then ENTER.

  1. Download this package and extract to some empty folder
  2. Double-Click on FirstAutomatedBld.vbs
  3. Select a build target by typing [0]:32-bit, [1]:64-bit or [2]: Both then ENTER. Type 3 to Abort.
  4. When prompted, click OK. Wait a moment, then close the MSYS2 Window
  5. Go to watch 2 episodes of animation...(On Core-i7, building both 32 and 64 bit binaries takes around 30min)
  6. It should popup a dialog showing the time taken to build
  7. Close the dialog, and get your packages in MSYS2ROOT\ReadyToUse32 and MSYS2ROOT\ReadyToUse64
  8. P.S.: _32bit and 64bit FFmpeg.exe can be found inside msys64/mingw32/bin and msys64/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

If the above fails...

  1. Delete msys2.tar.xz
  2. Download msys2-base-x86_64-[date].tar.xz(for 64bit arch) or msys2-base-i686-[date].tar.xz(for 32bit arch)
  3. Rename msys2.tar.xz
  4. Download 7za920.zip
  5. Put in the same place as FirstAutomatedBld.vbs
  6. Double-Click on FirstAutomatedBld.vbs
  7. When a script still also fails in this, try "Usage Guide (Manual)". And please file an Issue.

Usage Guide (Manual)

  1. Install MSYS2
  2. First-time startup using msys2_shell.bat
  3. Close MSYS2
  4. Copy the script files to MSYS2ROOT/home/UserName/
  5. Run msys2_shell.cmd
  6. ./coreupdate.sh Restart MSYS2 when finished
  7. ./inst_base.sh Exit MSYS2 when finished
  8. Press and hold the Shift key and right click on a folder where contain msys2_shell.cmd, and click Open Command Window Here.
  9. Run call msys2_shell.cmd -mingw32 for 32bit target, call msys2_shell.cmd -mingw64 for 64bit target
  10. ./buildmypkg.sh or ./buildmypkg_64.sh
  11. If you have VS2013/2015 and want to build LSW for AviSynth, run ./bld_lsw_avs.sh or ./bld_lsw_avs_64.sh
  12. Retrieve your package at _MSYS2ROOT_/ReadyToUse32 or _MSYS2ROOT_/ReadyToUse64

Caution

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.

How to Rebuild

  1. Press and hold the Shift key and right click on a folder where contain msys2_shell.cmd, and click Open Command Window Here.
  2. Run call msys2_shell.cmd -mingw32 for 32bit target, call msys2_shell.cmd -mingw64 for 64bit target
  3. ./buildmypkg.sh or ./buildmypkg_64.sh

About

MSYS2 Build scripts for building (Win-32bit Static) L-Smash and L-Smash Works.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published