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

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

地址:https://github.com/asahui/BiliLocal-OSX
教程:https://github.com/Twopothead/bilibili_mp4_fucker

Reply Favorite View the author
All Replies
wtz
deepin
2020-12-02 16:04
#1

这个是在OS X下编译Qt吧。

你得安装Qt、XCode,还有这个项目的依赖库(openssl,用homebrew装:

https://blog.csdn.net/weixin_37569048/article/details/82660872

)。

最好再装个QtCreator,方便调试。

Reply View the author
Feng Yu
deepin
2020-12-02 17:37
#2

这个项目都告诉你是OSX的项目,在OSX下面编译的

Reply View the author
神末shenmo
Moderator
Spark-App
2020-12-02 17:58
#3

这个不是给Linux用的

Reply View the author
zengwang
deepin
2020-12-02 20:48
#4
It has been deleted!
zengwang
deepin
2020-12-02 20:50
#5
It has been deleted!
zengwang
deepin
2020-12-02 20:53
#6

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=

另外说一句,jq 解析 json 真是方便:)


Reply View the author
zengwang
deepin
2020-12-02 23:13
#7
神末shenmo

这个不是给Linux用的

https://github.com/Twopothead/bilibili_mp4_fucker
这个里面提到
因为是 Qt 做的,所以跨平台,并不仅仅是 OSX
并且附上了 Ubuntu 弹幕播放器 BiliLocal 安装方法的呀



Reply View the author
zengwang
deepin
2020-12-02 23:13
#8
Feng Yu

这个项目都告诉你是OSX的项目,在OSX下面编译的

https://github.com/Twopothead/bilibili_mp4_fucker
这个里面提到
因为是 Qt 做的,所以跨平台,并不仅仅是 OSX
并且附上了 Ubuntu 弹幕播放器 BiliLocal 安装方法的呀



Reply View the author