编译qbittorrent时出错
反馈bug/问题模板,提建议请删除
1.关于你要提交的问题
Q:是否搜索了issue (使用 "x" 选择)
- [x] 没有类似的issue
2. 详细叙述
(1) 具体问题
A:编译qbittorrent时用到rblibtorrent,这个编译出错
(2) 路由器型号和固件版本
A:x86-64
(3) 详细日志
A:
OpenWrt-libtool: compile: x86_64-openwrt-linux-musl-g++ -DPACKAGE_NAME="libtorrent-rasterbar" -DPACKAGE_TARNAME="libtorrent-rasterbar" -DPACKAGE_VERSION="1.1.13" "-DPACKAGE_STRING="libtorrent-rasterbar 1.1.13"" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="http://www.libtorrent.org" -DPACKAGE="libtorrent-rasterbar" -DVERSION="1.1.13" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_PTHREAD=1 "-DHAVE_BOOST=//" "-DHAVE_BOOST_SYSTEM=//" "-DHAVE_BOOST_CHRONO=//" "-DHAVE_BOOST_RANDOM=//" -DHAVE_CLOCK_GETTIME=1 -DNDEBUG=1 -DTORRENT_USE_OPENSSL=1 -DHAVE_ICONV=1 -DICONV_CONST= -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE=1 -DBOOST_ASIO_ENABLE_CANCELIO=1 -DTORRENT_BUILDING_SHARED=1 -I. -DTORRENT_BUILDING_LIBRARY -I../include -I../ed25519/src -Os -I/home/gly/Lean/staging_dir/target-x86_64_musl/usr/include -I/home/gly/Lean/staging_dir/target-x86_64_musl/usr/include -I/home/gly/Lean/staging_dir/target-x86_64_musl/usr/include -I/home/gly/Lean/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/include -I/home/gly/Lean/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include/fortify -I/home/gly/Lean/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/gly/Lean/build_dir/target-x86_64_musl/rblibtorrent-1.1.13=rblibtorrent-1.1.13 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -fPIC -std=gnu++14 -ftemplate-depth=120 -Wno-format-zero-length -fvisibility=hidden -fvisibility-inlines-hidden -MT http_connection.lo -MD -MP -MF .deps/http_connection.Tpo -c http_connection.cpp -fPIC -DPIC -o .libs/http_connection.o
In file included from ../include/libtorrent/http_connection.hpp:41,
from http_connection.cpp:33:
/home/gly/Lean/staging_dir/target-x86_64_musl/usr/include/boost/bind.hpp:41:1: note: #pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.
)
^
In file included from /home/gly/Lean/staging_dir/target-x86_64_musl/usr/include/boost/asio/write.hpp:1246,
from ../include/libtorrent/socket.hpp:57,
from ../include/libtorrent/http_connection.hpp:62,
from http_connection.cpp:33:
/home/gly/Lean/staging_dir/target-x86_64_musl/usr/include/boost/asio/impl/write.hpp: In instantiation of 'class boost::asio::detail::initiate_async_write_buffer_sequencelibtorrent::socket_type':
/home/gly/Lean/staging_dir/target-x86_64_musl/usr/include/boost/asio/impl/write.hpp:534:15: required from 'auto boost::asio::async_write(AsyncWriteStream&, const ConstBufferSequence&, WriteHandler&&, typename std::enable_if<boost::asio::is_const_buffer_sequence
更新到最新代码应该就行了,如果不行试试make clean