在Ubuntu 17.04上编译caffe时出错

时间:2017-10-11 15:01:42

标签: compilation deep-learning caffe

我需要使用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"

但安装了增压器。我该如何解决?

1 个答案:

答案 0 :(得分:2)

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