在make 那个qBittorrent的libtorrent 0.11的时候,出错了,不太懂是哪里出错了。请帮忙看看是什么原因造成的,应该如何解决。谢谢了。
代码: 全选
xzw@VIA-PC1500:~/BT_Download/libtorrent-0.11$ sudo make
make all-recursive
make[1]: Entering directory `/home/xzw/BT_Download/libtorrent-0.11'
Making all in include
make[2]: Entering directory `/home/xzw/BT_Download/libtorrent-0.11/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/xzw/BT_Download/libtorrent-0.11/include'
Making all in src
make[2]: Entering directory `/home/xzw/BT_Download/libtorrent-0.11/src'
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -ftemplate-depth-50 -I../include -I../include/libtorrent -g -pthread -g -O2 -MT storage.lo -MD -MP -MF ".deps/storage.Tpo" -c -o storage.lo storage.cpp; \
then mv -f ".deps/storage.Tpo" ".deps/storage.Plo"; else rm -f ".deps/storage.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I.. -ftemplate-depth-50 -I../include -I../include/libtorrent -g -pthread -g -O2 -MT storage.lo -MD -MP -MF .deps/storage.Tpo -c storage.cpp -fPIC -DPIC -o .libs/storage.o
In file included from /usr/include/boost/multi_index/detail/node_type.hpp:23,
from /usr/include/boost/multi_index/detail/index_base.hpp:21,
from /usr/include/boost/multi_index/detail/base_type.hpp:21,
from /usr/include/boost/multi_index_container.hpp:32,
from storage.cpp:52:
/usr/include/boost/multi_index/detail/index_node_base.hpp:19:42: error: boost/serialization/access.hpp: No such file or directory
In file included from /usr/include/boost/multi_index/detail/index_base.hpp:27,
from /usr/include/boost/multi_index/detail/base_type.hpp:21,
from /usr/include/boost/multi_index_container.hpp:32,
from storage.cpp:52:
/usr/include/boost/multi_index/detail/index_loader.hpp:21:39: error: boost/serialization/nvp.hpp: No such file or directory
In file included from /usr/include/boost/multi_index_container.hpp:46,
from storage.cpp:52:
/usr/include/boost/multi_index/detail/archive_constructed.hpp:20:49: error: boost/serialization/serialization.hpp: No such file or directory
In file included from storage.cpp:52:
/usr/include/boost/multi_index_container.hpp:48:48: error: boost/serialization/split_member.hpp: No such file or directory
/usr/include/boost/multi_index/detail/index_node_base.hpp:45: error: 'boost::serialization' has not been declared
/usr/include/boost/multi_index/detail/index_loader.hpp: In member function 'void boost::multi_index::detail::index_loader<Node, FinalNode, Allocator>::add(Node*, Archive&, unsigned int)':
/usr/include/boost/multi_index/detail/index_loader.hpp:49: error: 'serialization' has not been declared
/usr/include/boost/multi_index/detail/index_loader.hpp: In member function 'void boost::multi_index::detail::index_loader<Node, FinalNode, Allocator>::add_track(Node*, Archive&, unsigned int)':
/usr/include/boost/multi_index/detail/index_loader.hpp:56: error: 'serialization' has not been declared
/usr/include/boost/multi_index/detail/index_loader.hpp: In member function 'FinalNode* boost::multi_index::detail::index_loader<Node, FinalNode, Allocator>::unchecked_load_node(Archive&) const':/usr/include/boost/multi_index/detail/index_loader.hpp:104: error: 'serialization' has not been declared
/usr/include/boost/multi_index/detail/index_loader.hpp: In member function 'FinalNode* boost::multi_index::detail::index_loader<Node, FinalNode, Allocator>::load_node(Archive&) const':
/usr/include/boost/multi_index/detail/index_loader.hpp:112: error: 'serialization' has not been declared
/usr/include/boost/multi_index/detail/index_saver.hpp: In member function 'void boost::multi_index::detail::index_saver<Node, Allocator>::add(Node*, Archive&, unsigned int)':
/usr/include/boost/multi_index/detail/index_saver.hpp:46: error: 'serialization' has not been declared
/usr/include/boost/multi_index/detail/index_saver.hpp: In member function 'void boost::multi_index::detail::index_saver<Node, Allocator>::add_track(Node*, Archive&, unsigned int)':
/usr/include/boost/multi_index/detail/index_saver.hpp:53: error: 'serialization' has not been declared
/usr/include/boost/multi_index/detail/index_saver.hpp: In static member function 'static void boost::multi_index::detail::index_saver<Node, Allocator>::save_node(Node*, Archive&)':
/usr/include/boost/multi_index/detail/index_saver.hpp:123: error: 'serialization' has not been declared
/usr/include/boost/multi_index/detail/archive_constructed.hpp: In constructor 'boost::multi_index::detail::archive_constructed<T>::archive_constructed(Archive&, unsigned int)':
/usr/include/boost/multi_index/detail/archive_constructed.hpp:36: error: 'serialization' has not been declared
/usr/include/boost/multi_index/detail/archive_constructed.hpp: In constructor 'boost::multi_index::detail::archive_constructed<T>::archive_constructed(const char*, Archive&, unsigned int)':
/usr/include/boost/multi_index/detail/archive_constructed.hpp:50: error: 'serialization' has not been declared
/usr/include/boost/multi_index/detail/archive_constructed.hpp:52: error: 'serialization' has not been declared
/usr/include/boost/multi_index_container.hpp: At global scope:
/usr/include/boost/multi_index_container.hpp:536: error: 'boost::serialization' has not been declared
/usr/include/boost/multi_index_container.hpp:540: error: expected ';' before 'typedef'
/usr/include/boost/multi_index_container.hpp: In member function 'void boost::multi_index::multi_index_container<Value, IndexSpecifierList, Allocator>::save(Archive&, unsigned int) const':
/usr/include/boost/multi_index_container.hpp:547: error: 'serialization' has not been declared
/usr/include/boost/multi_index_container.hpp:547: error: there are no arguments to 'make_nvp' that depend on a template parameter, so a declaration of 'make_nvp' must be available
/usr/include/boost/multi_index_container.hpp:547: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/include/boost/multi_index_container.hpp:548: error: 'index_saver_type' was not declared in this scope
/usr/include/boost/multi_index_container.hpp:548: error: expected `;' before 'sm'
/usr/include/boost/multi_index_container.hpp:551: error: 'serialization' has not been declared
/usr/include/boost/multi_index_container.hpp:552: error: 'sm' was not declared in this scope
/usr/include/boost/multi_index_container.hpp:554: error: 'sm' was not declared in this scope
/usr/include/boost/multi_index_container.hpp: In member function 'void boost::multi_index::multi_index_container<Value, IndexSpecifierList, Allocator>::load(Archive&, unsigned int)':
/usr/include/boost/multi_index_container.hpp:567: error: 'serialization' has not been declared
/usr/include/boost/multi_index_container.hpp:567: error: there are no arguments to 'make_nvp' that depend on a template parameter, so a declaration of 'make_nvp' must be available
/usr/include/boost/multi_index/detail/index_iterator.hpp: At global scope:
/usr/include/boost/multi_index/detail/index_iterator.hpp:145: error: 'boost::serialization' has not been declared
/usr/include/boost/multi_index/detail/index_iterator.hpp:149: error: expected ';' before 'typedef'
/usr/include/boost/multi_index/detail/index_iterator.hpp: In member function 'void boost::multi_index::detail::index_iterator<Node>::save(Archive&, unsigned int) const':
/usr/include/boost/multi_index/detail/index_iterator.hpp:155: error: 'node_base_type' was not declared in this scope
/usr/include/boost/multi_index/detail/index_iterator.hpp:155: error: 'bnode' was not declared in this scope
/usr/include/boost/multi_index/detail/index_iterator.hpp:156: error: 'serialization' has not been declared
/usr/include/boost/multi_index/detail/index_iterator.hpp:156: error: there are no arguments to 'make_nvp' that depend on a template parameter, so a declaration of 'make_nvp' must be available
/usr/include/boost/multi_index/detail/index_iterator.hpp: In member function 'void boost::multi_index::detail::index_iterator<Node>::load(Archive&, unsigned int)':
/usr/include/boost/multi_index/detail/index_iterator.hpp:162: error: 'node_base_type' was not declared in this scope
/usr/include/boost/multi_index/detail/index_iterator.hpp:162: error: 'bnode' was not declared in this scope
/usr/include/boost/multi_index/detail/index_iterator.hpp:163: error: 'serialization' has not been declared
/usr/include/boost/multi_index/detail/index_iterator.hpp:163: error: there are no arguments to 'make_nvp' that depend on a template parameter, so a declaration of 'make_nvp' must be available
make[2]: *** [storage.lo] 错误 1
make[2]: Leaving directory `/home/xzw/BT_Download/libtorrent-0.11/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/xzw/BT_Download/libtorrent-0.11'
make: *** [all] 错误 2
xzw@VIA-PC1500:~/BT_Download/libtorrent-0.11$