rust-av / ssimulacra2_bin

Binary interface for the ssimulacra2 Rust port
BSD 2-Clause "Simplified" License
42 stars 11 forks source link

Improve instruction to build ssimulacra2 #44

Open Ves02 opened 4 days ago

Ves02 commented 4 days ago

I don't have the technology literacy to understand the instruction and what I need to do. The instruction provided was not sufficient for me and I don't wish for anyone to go through the pain.

I managed to compile and run it after many trial runs. If anyone want to check out how I did this, here's the step. It's mostly for Windows, sorry for anyone who's looking to do this in Linux, I failed to do it on Ubuntu

  1. Enter this link http://www.vapoursynth.com/doc/installation.html#linux-installation,

  2. Follow the prerequisites to download the required python

  3. Enter the VapourSynth installer link and download the .exe file

  4. Then download the latest release-x86_64-cachedir-cwd.zip from https://github.com/AkarinVS/L-SMASH-Works/releases/tag/vA.3j

  5. Run the exe file, don't modify or change any setting if you are not familar with it

  6. After Vapoursynth is installed, find the path, typically C:\Users\\AppData\Local\Programs\VapourSynth\sdk\lib64 (REPLACE THE username WITH YOUR!!)

  7. decompress the .zip folder, and copy and paste the libvslsmashsource.dll to C:\Users\\AppData\Local\Programs\VapourSynth\plugins

  8. (I only attempted this on Powershell), There are different command shell to use. Use the command below according to what shell you're using. DON'T FORGET TO REPLACE USERNAME OR PATH FROM STEP 6.

    • Powershell: $env:LIB="C:\Users\\vapoursynth-portable\sdk\lib64;$env:LIB"
    • CMD: set LIB=C:\Users\\vapoursynth-portable\sdk\lib64;%LIB%
    • Bash: export LIB="C:/Users//vapoursynth-portable/sdk/lib64:$LIB"
  9. If you have rust installed, attempt "cargo install ssimulacra2_rs" on your cli.

  10. If it fail because it require Visual Studio or Visual studio tool, download them. I downloaded Visual 10_1. You can download on https://visualstudio.microsoft.com/downloads/ Find the "Tools for Visual Studio" bar and download the "Remote Tools for Visual Studio 2022". Run it 10_2. Make sure Desktop Development with C++ is checked, leave the optional check installation alone and download it. 10_3. Retry step 8 again after you reboot your PC.

  11. Run ssimulacra2_rs -h to check if it's running.

  12. You're done!

FreezyLemon commented 1 day ago

I'll put this on my todo list for when I have a bit more time. I can't help with documentation for Windows, so contributions would be appreciated.