vlc还是调用不了...
Easy bat-only install This is easy to install, but a command line window will pop up briefly when you click a vlc:// link. Try this first before you attempt the harder version.
Put the files from the bat directory in your VLC directory (usually C:\Program Files (x86)\VideoLAN\VLC), and then run vlc-protocol-register.bat as administrator (right-click the file and use Run as administrator).
只操作这一步,好像会弹出要不要用vlc protocol来打开,但是打不开程序...
Harder exe install You have to compile a program to get this working.
Get bash set up and open a prompt. Install git and the compiler: sudo apt install git gcc-mingw-w64 Go someplace where you can find the files later: cd /mnt/c/Users/username/Desktop Download the files: git clone https://github.com/stefansundin/vlc-protocol.git cd vlc-protocol/windows/exe/ ./build.sh Now, if successful, you should see a file named vlc-protocol.exe. Copy the exe file and the bat files to your VLC directory and run vlc-protocol-register.bat as administrator (right-click the file and use Run as administrator).
这一部好像要在商店里装linux,不过试了下,store提示不能联网...
这个应该在其他Linux环境也可以运行的,不一定非要安装WSL
[root@vvlaw exe]# chmod +x build.sh [root@vvlaw exe]# ./build.sh
- x86_64-w64-mingw32-gcc -o vlc-protocol.exe vlc-protocol.c -mwindows -municode -lshlwapi -O2 -s ./build.sh: line 2: x86_64-w64-mingw32-gcc: command not found [root@vvlaw exe]#
==================== 在centos上面试了一下,不行...没那个x86_64-w64-mingw32-gcc文件...
Install git and the compiler: sudo apt install git gcc-mingw-w64
你少了这步吧?
Install git and the compiler: sudo apt install git gcc-mingw-w64
你少了这步吧?
centos 没有apt命令,用yum的话提示No package gcc-mingw-w64 available.
没有这个包...
我自己用Ubuntu试了下,一下子就编译出了exe文件。。 作者不提供exe下载估计是出于安全考虑……我这里把编译好的exe放出来好了:
分享链接:https://gdshare.viegg.com/share/file?expired=1598256535613&id=1frbDggUvpSXO3EJ1wZfJY1LJL-O_dlVq&sig=f4598ee6c3bb5ed256dcd1c7464ee9fa7088c41662035a237daa8894fb2d460b 提取码:vlc 过期时间:2020-08-24 16:08:55 (GMT+8)
我自己用Ubuntu试了下,一下子就编译出了exe文件。。 作者不提供exe下载估计是出于安全考虑……我这里把编译好的exe放出来好了:
分享链接:https://gdshare.viegg.com/share/file?expired=1598256535613&id=1frbDggUvpSXO3EJ1wZfJY1LJL-O_dlVq&sig=f4598ee6c3bb5ed256dcd1c7464ee9fa7088c41662035a237daa8894fb2d460b 提取码:vlc 过期时间:2020-08-24 16:08:55 (GMT+8)
这个exe可以用. 感谢大佬,现在vlc也可以调用了.不过centos上有时间再去捉摸下,怎么编译exe.