我正在关注 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/