Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vlc还是调用不了... #14

Open
vvlaw opened this issue Aug 16, 2020 · 6 comments
Open

vlc还是调用不了... #14

vvlaw opened this issue Aug 16, 2020 · 6 comments

Comments

@vvlaw
Copy link

vvlaw commented Aug 16, 2020

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提示不能联网...

@iwestlin
Copy link
Owner

这个应该在其他Linux环境也可以运行的,不一定非要安装WSL

@vvlaw
Copy link
Author

vvlaw commented Aug 17, 2020

[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文件...

@iwestlin
Copy link
Owner

Install git and the compiler: sudo apt install git gcc-mingw-w64

你少了这步吧?

@vvlaw
Copy link
Author

vvlaw commented Aug 17, 2020

Install git and the compiler: sudo apt install git gcc-mingw-w64

你少了这步吧?

centos 没有apt命令,用yum的话提示No package gcc-mingw-w64 available.

没有这个包...

@iwestlin
Copy link
Owner

我自己用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)

@vvlaw
Copy link
Author

vvlaw commented Aug 17, 2020

我自己用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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants