在Ubuntu上安装Caffe

时间:2018-11-28 08:30:24

标签: boost caffe

说明:

我正在尝试从Ubuntu 16.04(4.15.0-39-通用x86_64 GNU / Linux)上的源(从https://github.com/BVLC/caffe来的git pull)中安装Caffe。
遇到此错误时,看来我没有通过boost库(或其他库)得到它:

$ make 
[  1%] Built target caffeproto
[ 81%] Built target caffe
[ 81%] Linking CXX executable extract_features
CMakeFiles/extract_features.dir/extract_features.cpp.o: In function `boost::system::error_category::std_category::equivalent(std::error_code const&, int) const':
extract_features.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei[_ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei]+0x3f): undefined reference to `boost::system::detail::generic_category_instance'
extract_features.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei[_ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei]+0xbb): undefined reference to `boost::system::detail::generic_category_instance'
extract_features.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei[_ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei]+0xf3): undefined reference to `boost::system::detail::generic_category_instance'
extract_features.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei[_ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei]+0x11a): undefined reference to `boost::system::detail::generic_category_instance'
CMakeFiles/extract_features.dir/extract_features.cpp.o: In function `boost::system::error_category::std_category::equivalent(int, std::error_condition const&) const':
extract_features.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition[_ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition]+0x3a): undefined reference to `boost::system::detail::generic_category_instance'
collect2: error: ld returned 1 exit status
tools/CMakeFiles/extract_features.dir/build.make:123: recipe for target 'tools/extract_features' failed
make[2]: *** [tools/extract_features] Error 1
CMakeFiles/Makefile2:462: recipe for target 'tools/CMakeFiles/extract_features.dir/all' failed
make[1]: *** [tools/CMakeFiles/extract_features.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

这是生成后的带有“ Caffe配置摘要”的我的cmake输出:
https://pastebin.com/raw/1r7WXzbj

我使用指定bootstrap.sh的python3解释器从源代码安装了boost 1.68。
./b2 install之后一切正常。

问题:

我想知道我错了吗?
我还想知道为什么它说在找到Boost version: 1.68.0的同时无法找到
其次,由于伯克利视觉实验室是该领域的顶级实验室之一,并且vision and learning组成为了“ bair”,所以我不知道为什么开发的活动并不活跃。 >

0 个答案:

没有答案