ubuntu - 在 Ubuntu : make can't find Boost's include files 上构建 Caffe

标签 ubuntu boost include caffe

我正在关注 these instructions安装和构建 Caffe 及其依赖项。我构建了 Boost 并在最后得到了这个:

The following directory should be added to compiler include paths:
   /home/ubuntu/Caffe/boost_1_57_0
The following directory should be added to linker library paths:
   /home/ubuntu/Caffe/boost_1_57_0/stage/lib

当我在 caffe 目录中运行 make all 时,我得到了这个:

CXX src/caffe/blob.cpp
In file included from ./include/caffe/blob.hpp:8:0,
             from src/caffe/blob.cpp:4:
./include/caffe/common.hpp:4:32: fatal error: boost/shared_ptr.hpp: No such file or directory
compilation terminated.
make: *** [.build_release/src/caffe/blob.o] Error 1

我需要修改什么才能找到包含(和 lib)文件?一个特定的环境变量? caffe 的 Makefile 中的设置?还有别的吗?

最佳答案

可能你的机器上没有安装boost

 sudo apt-get install --no-install-recommends libboost-all-dev

关于ubuntu - 在 Ubuntu : make can't find Boost's include files 上构建 Caffe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28867791/

相关文章:

ubuntu - 未找到 Ubuntu 14.04.1 的 ros-indigo 软件包

apache - 授予 ubuntu 访问 www-data 的权限

python - 导出 32 位枚举时 Boost Python 1.48 失败

c++ - 循环依赖与可以相互初始化的类

linux - 系统错误 “failed to start service: unit service is not loaded properly: exec format error”

php - 一旦我尝试在文件夹中包含文件,我的相对路径就会中断?

c++ - 在 C++ 中分两步将参数绑定(bind)到函数?

c++ - 如何使用 boost::units 添加你自己的基本单位和转换

php - 在 PHP 的变量中包含 Foreach 循环的结果? (对于函数 mail() )

c++ - Visual Studio 2010 C++ 不包括 #include 中的文件