【求助】哪位好心人帮忙编译一下这个项目
Tofloor
poster avatar
zengwang
deepin
2020-12-04 01:11
Author

小白,和室友研究了一天多都搞不出来。

地址:https://github.com/asahui/BiliLocal-OSX


Ubuntu 安装 BiliLocal 可以从此处得到:https://github.com/asahui/BiliLocal-OSX

因为是 Qt 做的,所以跨平台,并不仅仅是 OSX, 当然首先需要安装 qt 的环境。

如果要安装 qt 全家桶可以这样:

# 安装qt全家桶
sudo apt-get install qt4-dev-tools #开发包   
sudo apt-get install qtcreator #IDE  
sudo apt-get install qt4-doc #开发帮助文档   
sudo apt-get install qt4-qtconfig #配置工具   
sudo apt-get install qt4-demos #DEMO源码  QT

如果仅仅为了编译 BiliLocal,以上安装 qt 全家桶就不需要了,仅仅安装一个 qmake 就够了。

sudo apt-get install qt4-qmake

安装 BiliLocal 之前我先在 Ubuntu 应用商店安装了 VLC media player,其他还有一些依赖,为了避免出错可以先装上。

sudo apt-get install libvlc-dev
sudo apt-get install libavutil-dev
sudo apt-get install libswscale-dev
sudo apt-get install libvlccore-dev

编译 BiliLocal-OSX

git clone https://github.com/asahui/BiliLocal-OSX
cd BiliLocal-OSX
qmake 
make

make 的时候可能因为依赖不全而出错,这时应当安装好依赖并且 make clean 之后重新 make。

OK, 编译得到可执行 BiliLocal,可以直接./BiliLocal, 也可以继续将其安装到系统。

sudo cp BiliLocal bililocal
sudo cp bililocal /usr/bin/

新建 bililocal.desktop,内容见后。

sudo cp bililocal.desktop /usr/share/applications
#bililocal.desktop编写参考 https://github.com/aur-archive/bililocal-git/blob/master/bililocal.desktop
之后视频就可以open with BiliLocal并且set as default了。

我的 bililocal.desktop 内容如下:

[Desktop Entry]
Categories=Qt;AudioVideo;Player;Video;
Comment[zh_CN]=BiliBili本地弹幕播放器
Comment=BiliBili本地弹幕播放器
Exec=/usr/bin/bililocal %U
GenericName[zh_CN]=BiliLocal
GenericName=BiliLocal
Icon=/home/curie/Mysoft/BiliLocal-OSX-master/BiliLocal.ico
MimeType=
Name[zh_CN]=BiliLocal
Name=BiliLocal
Path=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
Reply Favorite View the author
All Replies
juteman
deepin
2020-12-04 01:19
#1

我怀着怀疑的心情编译了一下,确实可以编译,但是论坛发不了附件,你把邮箱发过来把

Reply View the author
Fredoong
deepin
2020-12-04 01:39
#2
juteman

我怀着怀疑的心情编译了一下,确实可以编译,但是论坛发不了附件,你把邮箱发过来把

我又抓住攻城师了,距上次更新已经一个星期了,音频输出问题还没解决么?[哭]

Reply View the author
stone
deepin
2020-12-04 04:02
#3
Fredoong

我又抓住攻城师了,距上次更新已经一个星期了,音频输出问题还没解决么?[哭]

不是说12.15有么?

Reply View the author
Fredoong
deepin
2020-12-04 04:57
#4
stone

不是说12.15有么?

这种严重影响使用的BUG也要等到15号?简直让人崩溃。

Reply View the author
zengwang
deepin
2020-12-04 06:57
#5
juteman

我怀着怀疑的心情编译了一下,确实可以编译,但是论坛发不了附件,你把邮箱发过来把

谢谢大佬,ffghyhuvh.441564@qq.com[太开心]

Reply View the author
zengwang
deepin
2020-12-04 07:05
#6
juteman

我怀着怀疑的心情编译了一下,确实可以编译,但是论坛发不了附件,你把邮箱发过来把

感谢大佬,麻烦了

Reply View the author
juteman
deepin
2020-12-04 17:15
#7
Fredoong

我又抓住攻城师了,距上次更新已经一个星期了,音频输出问题还没解决么?[哭]

哎.....我反正是觉得现在推送更新的策略有问题的,我觉得应该分一个稳定版仓库和一个测试版仓库的,而且bug修复一个应该马上推送一个而不是修复完了一起推。

Reply View the author
Fredoong
deepin
2020-12-04 17:58
#8
juteman

哎.....我反正是觉得现在推送更新的策略有问题的,我觉得应该分一个稳定版仓库和一个测试版仓库的,而且bug修复一个应该马上推送一个而不是修复完了一起推。

你这意思是音频输出问题已经修复了,但是必须等到下一次更新才能解决??

Reply View the author
juteman
deepin
2020-12-05 00:49
#9
Fredoong

你这意思是音频输出问题已经修复了,但是必须等到下一次更新才能解决??

木有修复,但是策略是这个策略

Reply View the author