Closed deveshk103 closed 2 years ago
possible workaround: using WSL2 and WSLg you can run graphical linux apps on windows, try "wsl --install" to install and setup wsl as well as install ubuntu as the default distro, see https://docs.microsoft.com/en-us/windows/wsl/install
If I need to install a wsl then there's no point making this version. This version is all about running this thing on windows directly and without any linux vm or subsytems.
I am running the original script (not windows fork) and it works just fine. The steps are below to make it work. Try this once.
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iwr -useb get.scoop.sh | iex
Set-ExecutionPolicy Restricted -scope CurrentUser
scoop bucket add extras
scoop install mpv
./ani-cli
I beileve it just created some make configs and then cracked the system. What to do now? It's still not working
Hey, I believe this is because you don't have a .cache folder under /c/Users/deves/
Try running the following to create the directory:
mkdir /c/Users/deves/.cache
Try running ani-cli again
./ani-cli
Thanks, that worked, but I still have this last issue. I've already install mpv player but it's not loading the screen. I mean it just stops here. Nothing further happen i.e. video doesn't start and no dialog or application is open.
Hey @deveshk103! Sorry if I'm a little confused but I get you are on Windows?
In order for me to make it work (on Windows), I had to switch the branch to the Windows one. You do that by executing the command below within the root directory of the project (where ani-cli is located).
git checkout windows-vlc
Then I made it an executable:
chmod +x ani-cli-win
Should be fine when you do ./ani-cli-win
in the directory.
Let me know.
I am running the original script (not windows fork) and it works just fine. The steps are below to make it work. Try this once.
That's what I did btw. I installed MPV using Scoop so it's automatically added to path. However, I'm using WSL (which btw is incredibly easy to install and doesn't require a VM 🙂) and had to add .exe
to the mpv path at the top. I also added an ani-cli.bat
that just runs bash ani-cli %*
so I can run the command from Windows. c:
I am running the original script (not windows fork) and it works just fine. The steps are below to make it work. Try this once.
That's what I did btw. I installed MPV using Scoop so it's automatically added to path. However, I'm using WSL (which btw is incredibly easy to install and doesn't require a VM 🙂) and had to add
.exe
to the mpv path at the top. I also added anani-cli.bat
that just runsbash ani-cli %*
so I can run the command from Windows. c:
@FayneAldan I tried doing that but mpv doesn't start for me when using ani-cli. Works if I try to play a file manually though. Which version of wsl are you using?
I tried doing that but mpv doesn't start for me when using ani-cli. Works if I try to play a file manually though.
MPV still has to be in PATH, which Scoop does automatically, and you have to change mpv
to mpv.exe
(or mpv.com
) at the top of the script so WSL finds and executes mpv.exe from PATH. Alternatively, if you have WSLg you can just install MPV in WSL.
I tried doing that but mpv doesn't start for me when using ani-cli. Works if I try to play a file manually though.
MPV still has to be in PATH, which Scoop does automatically, and you have to change
mpv
tompv.exe
(ormpv.com
) at the top of the script so WSL finds and executes mpv.exe from PATH. Alternatively, if you have WSLg you can just install MPV in WSL.
@FayneAldan MPV is in PATH and I can execute it in both powershell and wsl. I tried using gwsl from microsoft store(not wslg) but it didn't work, I was getting a black window which turned white when I tried to resize or move it around.
Can you run wsl --status
in powershell and send the output here?
Are you able to open MPV from WSL Bash by typing mpv.exe?
I noticed that both mpv
and mpv.exe
worked so I tried removing linux version with sudo apt remove mpv
. Seems like ani-cli is still trying to use linux mpv even though I change player to mpv.exe
ani-cli.zip here is my current version of the script
If you have wslg it could be launching linux mpv automatically even though you also have .exe
in the script. Could you check that please?
Thanks to @asciiden everything worked for me. I am mentioning some steps to get it running in Windows Just install "Scoop" using cmd. (You can find that in google)
In cmd, type
Scoop bucket add extras
In cmd, type
scoop install vlc
Now go to windows branch through github and download it's zip and extract it.
It will ask to install git and 7zip (it's dependencies). Just install everything
Now in cmd, create a folder in current user directory named ".cache" using mkdir function
Now navigate to ani-cli-windows folder and run git bash there.
Now run command
chmod +x ani-cli-windows-vlc
Now just type the command
./ani-cli-windows
It will work for sure .
@deveshk103 Great stuff! Happy you got it going.
I think someone should update the README for windows.
sudo make
is unnecessary and will create problems.
Whenever I am trying to make it, it throws me some error. Please look into the matter.