|
|
本帖最后由 mjj不是我 于 2021-3-1 13:17 编辑
qbittorrent原版:https://github.com/qbittorrent/qBittorrent
增强版gbittorrent:https://github.com/c0re100/qBittorrent-Enhanced-Edition
官方编译教程:https://github.com/qbittorrent/qBittorrent/wiki/Compilation:-Debian-and-Ubuntu
libiconv解决办法:https://github.com/qbittorrent/qBittorrent/issues/11723
注意:
1. 一定别先安装lnmp。由于lnmp编译安装了libiconv,会导致qbittorrent编译失败。
2.如果安装了,按照上面链接最后给出的方法解决,并且需要重新安装php。
3. c++最低强制为c++17
- [b]#环境要求[/b]
- sudo apt install build-essential pkg-config automake libtool git zlib1g-dev libssl-dev libgeoip-dev
- sudo apt install libboost-dev libboost-system-dev libboost-chrono-dev libboost-random-dev
- sudo apt install qtbase5-dev qttools5-dev libqt5svg5-dev
- [b]#编译libtorrent[/b]
- wget https://github.com/arvidn/libtorrent/releases/download/v1.2.12/libtorrent-rasterbar-1.2.12.tar.gz
- tar xf libtorrent-rasterbar-1.2.12.tar.gz
- cd libtorrent-rasterbar-1.2.12
- ./configure --disable-debug --enable-encryption --with-libgeoip=system CXXFLAGS=-std=c++17
- make -j$(nproc)
- make install
- ldconfig
- [b]#编译qbittorrent[/b]
- git clone https://github.com/qbittorrent/qBittorrent
- cd qBittorrent
- git checkout v4_3_x
- ./configure --disable-gui CXXFLAGS="-std=c++17"
- make -j$(nproc)
- make install
复制代码
|
|