记一下安装qBittorrent踩过的坑

环境:Centos 7.7
首先安装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:
wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_2_2/libtorrent-rasterbar-1.2.2.tar.gz
tar -zxf libtorrent-rasterbar-1.2.2.tar.gz
cd libtorrent-rasterbar-1.2.2.tar.gz
./configure
make
make install


checking for boostlib >= 1.58... no
编译安装boost:
wget https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.gz
tar -zxvf boost_1_71_0.tar.gz
cd boost_1_71_0
./bootstrap.sh
./b2 install

倒回重新发现问题依旧?
export LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:/usr/local/lib
ln -s /usr/local/lib/libboost* /usr/lib/
./configure --with-boost-libdir=/usr/local/lib
make && make install

编译qBittorrent
git clone https://github.com/qbittorrent/qBittorrent.git
./configure

缺少qt5svg
yum install qt5-qtsvg-devel -y
重新编译
make && make install

点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注