caffe框架编译报错

jerma66- jerma66- 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
在编译caffe框架这卡了整整两天,快要崩溃了。报错信息如下
CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/blob.cpp
CXX src/caffe/common.cpp
CXX src/caffe/data_transformer.cpp
CXX src/caffe/internal_thread.cpp
CXX src/caffe/layer.cpp
CXX src/caffe/layers/absval_layer.cpp
CXX src/caffe/layers/accuracy_layer.cpp
src/caffe/common.cpp:1:10: fatal error: boost/thread.hpp: No such file or directory
#include <boost/thread.hpp>
^~~~~~~~~~~~~~~~~~
compilation terminated.
src/caffe/internal_thread.cpp:1:10: fatal error: boost/thread.hpp: No such file or directory
#include <boost/thread.hpp>
^~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:592: recipe for target '.build_release/src/caffe/common.o' failed
make: *** [.build_release/src/caffe/common.o] Error 1
make: *** Waiting for unfinished jobs....
Makefile:592: recipe for target '.build_release/src/caffe/internal_thread.o' failed
make: *** [.build_release/src/caffe/internal_thread.o] Error 1
In file included from .build_release/src/caffe/proto/caffe.pb.cc:5:0:
.build_release/src/caffe/proto/caffe.pb.h:9:10: fatal error: google/protobuf/stubs/common.h: No such file or directory
#include <google/protobuf/stubs/common.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:599: recipe for target '.build_release/src/caffe/proto/caffe.pb.o' failed
make: *** [.build_release/src/caffe/proto/caffe.pb.o] Error 1
In file included from ./include/caffe/blob.hpp:8:0,
from src/caffe/blob.cpp:4:
./include/caffe/common.hpp:4:10: fatal error: boost/shared_ptr.hpp: No such file or directory
#include <boost/shared_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:592: recipe for target '.build_release/src/caffe/blob.o' failed
make: *** [.build_release/src/caffe/blob.o] Error 1
In file included from ./include/caffe/blob.hpp:8:0,
from ./include/caffe/layers/absval_layer.hpp:6,
from src/caffe/layers/absval_layer.cpp:3:
./include/caffe/common.hpp:4:10: fatal error: boost/shared_ptr.hpp: No such file or directory
#include <boost/shared_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:592: recipe for target '.build_release/src/caffe/layers/absval_layer.o' failed
make: *** [.build_release/src/caffe/layers/absval_layer.o] Error 1
In file included from ./include/caffe/blob.hpp:8:0,
from ./include/caffe/layer.hpp:8,
from src/caffe/layer.cpp:1:
./include/caffe/common.hpp:4:10: fatal error: boost/shared_ptr.hpp: No such file or directory
#include <boost/shared_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:592: recipe for target '.build_release/src/caffe/layer.o' failed
make: *** [.build_release/src/caffe/layer.o] Error 1
In file included from ./include/caffe/blob.hpp:8:0,
from ./include/caffe/layers/accuracy_layer.hpp:6,
from src/caffe/layers/accuracy_layer.cpp:5:
./include/caffe/common.hpp:4:10: fatal error: boost/shared_ptr.hpp: No such file or directory
#include <boost/shared_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:592: recipe for target '.build_release/src/caffe/layers/accuracy_layer.o' failed
make: *** [.build_release/src/caffe/layers/accuracy_layer.o] Error 1
In file included from ./include/caffe/blob.hpp:8:0,
from ./include/caffe/data_transformer.hpp:6,
from src/caffe/data_transformer.cpp:8:
./include/caffe/common.hpp:4:10: fatal error: boost/shared_ptr.hpp: No such file or directory
#include <boost/shared_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:592: recipe for target '.build_release/src/caffe/data_transformer.o' failed
make: *** [.build_release/src/caffe/data_transformer.o] Error 1
...全文

相关推荐

caffe编译Makefile.config文件

caffe编译Makefile.config文件,将错误全部更改后的Makefile.config文件,直接放在caffe根目录下。

蹦跶的小羊羔

Windows下编译Caffe:从环境配置到MNIST实战避坑指南

深度学习框架的部署往往比模型本身更考验工程能力,尤其是在Windows平台上编译老牌框架Caffe,常让开发者陷入依赖冲突与编译报错的泥潭。Caffe作为CNN经典框架,凭借其清晰的层次化设计和高效的C++实现,在图像分类、目标检测等场景中仍有大量存量模型(.caffemodel)和网络定义(.prototxt)需要维护与复用。本文从深度学习框架的基本原理切入,梳理Blob、Layer、Net、Solver四大核心抽象,解析Caffe在Windows环境下的编译难点,包括Visual Studio、CUDA

Wong Kosheng

Windows下Caffe编译配置与模型推理实战指南

深度学习框架的选择直接影响模型开发与部署效率。Caffe作为早期计算机视觉领域的经典框架,凭借清晰的网络结构定义和丰富的预训练模型,至今仍被许多老项目沿用。然而官方仅支持Linux和macOS,Windows用户需借助社区分支或自行编译才能运行,整个过程涉及Visual Studio、CUDA、cuDNN、protobuf等组件的版本匹配,原理上是一套依赖库兼容性的系统工程。掌握Caffe在Windows下的编译方法,能够高效复现ResNet、VGG等历史模型,对比论文结果,并支撑学术代码的二次开发。无论是

周恰恰

caffe-master-2

caffe-master 安装包,下载后直接: make all make test make runtest make pycaffe 就可以愉快的使用caffe了~

jiachen0212

Ubuntu16.04下安装Caffe+python2.7教程

本教程为Ubuntu16.04下基于CPU的caffe的安装,python版本为2.7,经测试,可以使用。

小亮 Play NLP
评论 1
收藏 已收藏
分享
返回顶部
jerma66-
机器视觉 4,514 成员 15,347 内容