我在尝试编译Caffe时遇到了这个错误。
可能是什么问题?
Linking CXX executable cpp_classification/classification
[100%] Built target classification
/PHShome/ez957/work/Feb10_2016_caffe/caffe/python/caffe/_caffe.cpp: In function ‘void caffe::Net_SetInputArrays(caffe::Net<float>*, boost::python::api::object, boost::python::api:
:object)’:
/PHShome/ez957/work/Feb10_2016_caffe/caffe/python/caffe/_caffe.cpp:131: error: invalid static_cast from type ‘char*’ to type ‘caffe::Dtype*’
/PHShome/ez957/work/Feb10_2016_caffe/caffe/python/caffe/_caffe.cpp:132: error: invalid static_cast from type ‘char*’ to type ‘caffe::Dtype*’
make[2]: *** [python/CMakeFiles/pycaffe.dir/caffe/_caffe.cpp.o] Error 1
make[1]: *** [python/CMakeFiles/pycaffe.dir/all] Error 2
make: *** [all] Error 2
答案 0 :(得分:2)
我终于成功使用了boost 1.55(而不是1.59)。我正在跑步