qBittorrent+Flex搭建在線視頻播放網站
阿新 • • 發佈:2018-12-21
open vid qbit align 組件 lag fig bsp clas
BT下載工具qbittorrent(當然這裏也有其他類似的工具可選如transmission等)
首先安裝EPEL源:
yum -y install epel-release
安裝開發工具包:
yum -y groupinstall "Development Tools"
安裝編譯所需的依賴和組件:
yum -y install wget git gcc gcc-c++ qt-devel boost-devel openssl-devel qt5-qtbase-devel qt5-linguist
先編譯安裝libtorrent:(一行一行復制回車即可)
下載地址:https://github.com/arvidn/libtorrent
tar -zxf /usr/src/bt/libtorrent-libtorrent-1_1_6.tar.gz
cd /usr/src/bt/libtorrent-libtorrent-1_1_6
autoconf
sh autotool.sh
./configure --prefix=/usr CXXFLAGS=-std=c++11
make
make install
ln -s /usr/lib/pkgconfig/libtorrent-rasterbar.pc /usr/lib64/pkgconfig/libtorrent-rasterbar.pc
ln -s /usr/lib/libtorrent-rasterbar.so.9 /usr/lib64/libtorrent-rasterbar.so.9
qBittorrent+Flex搭建在線視頻播放網站