openpose caffe编译报错572解决

【openpose caffe编译报错572解决】开始报错问题:
/usr/bin/ld: .build_release/src/caffe/proto/caffe.pb.o:普通ELF重定位(M: 183)
.build_release/src/caffe/proto/caffe.pb.o: 无法添加符号: 文件格式错误
collect2: error: ld returned 1 exit status
Makefile:572: recipe for target ‘.build_release/lib/libcaffe.so.1.0.0’ failed
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1
重新编译后,依然报错:
CXX src/caffe/layer.cpp
CXX src/caffe/syncedmem.cpp
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so.1.0.0
/usr/bin/ld: 找不到 -lopencv_imgcodecs
collect2: error: ld returned 1 exit status
Makefile:572: recipe for target ‘.build_release/lib/libcaffe.so.1.0.0’ failed
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1
问题原因:opencv这里用的是2.4版本,但是我取消了OPENCV_VERSION :=3 前面的注释,修改为OPENCV_VERSION :=0 即可解决问题,再次编译,通过!

sudo make all sudo make test sudo make runtest

openpose caffe编译报错572解决
文章图片

    推荐阅读