ubuntu编译caffe遇到的问题及解决方案

问题1

/usr/include/boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory

解决:

export CPLUS_INCLUDE_PATH=/你的anconda路径/include/python2.7
原因:python路径都改为了anaconda的路径,但是CPLUS的path没有设置,系统中我也没把aneconda设置成默认的python导致的。

问题2
CXX examples/cifar10/convert_cifar_data.cpp
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so.1.0.0
/usr/bin/ld: 找不到 -lboost_python3
collect2: error: ld returned 1 exit status
Makefile:585: recipe for target '.build_release/lib/libcaffe.so.1.0.0' failed
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1
解决
https://blog.csdn.net/u012505617/article/details/88556621

 
posted @ 2019-07-01 11:20  qilibin  阅读(2000)  评论(1编辑  收藏  举报