编译libtorrent报错。百度了好几天都没有找到
debian吧
全部回复
仅看楼主
level 12
埃克斯℃Y 楼主
虚拟机virsualBox安装debian mini,
安装qbittorrent,默认是3.37的,想升级4.0.4,只能自己安装。
https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qBittorrent-on-Debian-and-Ubuntu#Notes
按照官方教程到libtorrent的 make的时候报错。file.cpp 报错。
(之前的库该装的都安装了)
代码如下:
file.cpp: In member function ‘void libtorrent::directory::next(boost::system::er ror_code&)’:
file.cpp:1261:7: warning: ‘int readdir_r(DIR*, dirent*, dirent**)’ is deprecated [-Wdeprecated-declarations]
if (readdir_r(m_handle, &m_dirent, &dummy) != 0)
^~~~~~~~~
In file included from /usr/include/features.h:364:0,
from /usr/include/i386-linux-gnu/c++/6/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/6/bits/c++config.h:507,
from /usr/include/c++/6/cstddef:49,
from /usr/include/boost/config/compiler/gcc.hpp:165,
from /usr/include/boost/config.hpp:39,
from ../include/libtorrent/config.hpp:50,
from file.cpp:65:
/usr/include/dirent.h:189:12: note: declared here
extern int __REDIRECT (readdir_r,
^
file.cpp:1261:44: warning: ‘int readdir_r(DIR*, dirent*, dirent**)’ is deprecate d [-Wdeprecated-declarations]
if (readdir_r(m_handle, &m_dirent, &dummy) != 0)
^
In file included from /usr/include/features.h:364:0,
from /usr/include/i386-linux-gnu/c++/6/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/6/bits/c++config.h:507,
from /usr/include/c++/6/cstddef:49,
from /usr/include/boost/config/compiler/gcc.hpp:165,
from /usr/include/boost/config.hpp:39,
from ../include/libtorrent/config.hpp:50,
from file.cpp:65:
/usr/include/dirent.h:189:12: note: declared here
extern int __REDIRECT (readdir_r,
2018年05月02日 05点05分 1
level 12
埃克斯℃Y 楼主
习惯性表示感谢
2018年05月02日 05点05分 2
level 12
埃克斯℃Y 楼主
debian 9 32位,虚拟机
deluge 和tr安装了,感觉都不如qb快和习惯。
谢谢
2018年05月04日 05点05分 5
这样回复我不能及时看到呢。 你顺着版本太低导致依赖跟不上的思路看看,感觉是这个问题。 没用过qb,我改天尝试一下。
2018年05月04日 05点05分
level 12
埃克斯℃Y 楼主
依赖跟不上?好的,一会看看官方说明。
按官方说明下载编译的,库不缺。可能是32位不支持4.04版本?debian9 版本?虚拟机?百度没有累死情况,只有这些可能了。
linux 入手很短,没一两个月。装服务器版都是命令行,目前这样不容易了
2018年05月04日 05点05分 6
1