Qbittorrent: qBittorent 编译错误

创建于 2019-09-04  ·  3评论  ·  资料来源: qbittorrent/qBittorrent

请提供以下信息

qBittorrent 版本和操作系统

(在此输入)
4_1_x

如果在 linux 上,libtorrent-rasterbar 和 Qt 版本

(在此输入)
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 运行没有任何错误

Build system

最有用的评论

而不是“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

所有3条评论

而不是“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 命令。

此页面是否有帮助?
0 / 5 - 0 等级