请提供以下信息
(在此输入)
4_1_x
(在此输入)
libtorrent-rasterbar8 - 1.0.7
Qt5
(在此输入)
从源代码编译 qBittorrent 时 - 在 base/bittorrent/session.cpp 中出现错误
lt:: 尚未声明。
编译没有任何错误
(在此输入)
遵循网址中提到的步骤 - https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qBittorrent-on-Debian-and-Ubuntu
维基链接中提到的必需依赖项。
下载:
须藤 apt-get 安装 libtorrent-rasterbar-dev
Qbittorent :
git 克隆https://github.com/qbittorrent/qBittorrent
cd qBittorrent
git 结帐 v4_1_x
。/配置
make -j$(nproc)
(在此输入)
./configure 运行没有任何错误
而不是“sudo apt-get install libtorrent-rasterbar-dev”安装较新版本的libtorrent。 (1.1.1+)
https://github.com/arvidn/libtorrent/releases
libtorrent-1.1.13*
libtorrent 1.2.1
我能够使用最新版本进行编译而不会出错。 但是在使用 qBittorent 链接时出现错误。
在您的系统上构建和安装 libtorrent-rasterbar 后,不要忘记“ ldconfig ”。
同样如您所知,qBittorrent 支持 cmake。 使用 cmake 构建会更容易。
否则你需要通过 ./configure --with-something -without-something --enable-something --disable-something和 CFLAGS="incl. directory" LDFLAGS="libs directory"
之后,如果你想要一个静态构建 LDFLAGS 仍然需要使用 make 命令。
最有用的评论
而不是“sudo apt-get install libtorrent-rasterbar-dev”安装较新版本的libtorrent。 (1.1.1+)
https://github.com/arvidn/libtorrent/releases
libtorrent-1.1.13*
libtorrent 1.2.1