在 Ubuntu 17.04 上编译 caffe 时出错

Error in compiling caffe on Ubuntu 17.04

我需要使用在 Caffe 中实现的 Single Shot Multibox Detector。克隆存储库后,我切换到正确的分支并安装了所需的所有依赖项(按照 caffe 网站上的指南)。不幸的是,当我在某个时候编译时出现这个错误:

.build_release/lib/libcaffe.so: undefined reference to "boost::re_detail_106200::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const"

但是安装了boost。我该如何解决?

如果您使用 Makefile.config 编译,请将 boost_regex 添加到 Makefile 中的 LIBRARIES 变量,或者添加到 caffe/cmake/Dependencies.cmake[=12 中的 find_package(Boost 1.54 REQUIRED COMPONENTS system thread filesystem) 行=]