[问题]在make 的时候出错了,请帮忙看看.

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
永恒不永恒
帖子: 124
注册时间: 2007-03-17 18:57
来自: 广东广州

[问题]在make 的时候出错了,请帮忙看看.

#1

帖子 永恒不永恒 » 2007-04-25 19:16

我用ubuntu 6.06,gnome桌面的。
在make 那个qBittorrent的libtorrent 0.11的时候,出错了,不太懂是哪里出错了。请帮忙看看是什么原因造成的,应该如何解决。谢谢了。 :shock: :shock:

代码: 全选

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$
我用ubuntu 6.06,gnome桌面~
结果装个qBittorrent搞不定,
然后就换到ubuntu 7.04了..同样是gnome桌面~
定制才是王道!
头像
anticlockwise
帖子: 2394
注册时间: 2007-03-01 20:46
来自: 湖南长沙

#2

帖子 anticlockwise » 2007-04-25 19:18

sudo apt-get install libboost-serialization-dev
你缺少Boost.Serialization库
头像
stlxv
论坛版主
帖子: 8275
注册时间: 2006-05-03 0:39
来自: المريخ

#3

帖子 stlxv » 2007-04-25 19:38

anticlockwise 写了:sudo apt-get install libboost-serialization-dev
你缺少Boost.Serialization库
PHP是最好的语言!不服来战!
永恒不永恒
帖子: 124
注册时间: 2007-03-17 18:57
来自: 广东广州

#4

帖子 永恒不永恒 » 2007-04-25 19:49

啊,谢谢楼上指点。现在可以编译成功了
我用ubuntu 6.06,gnome桌面~
结果装个qBittorrent搞不定,
然后就换到ubuntu 7.04了..同样是gnome桌面~
定制才是王道!
回复