Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make pycaffe issue #10

Open
mkhademi opened this issue Nov 11, 2016 · 1 comment
Open

make pycaffe issue #10

mkhademi opened this issue Nov 11, 2016 · 1 comment

Comments

@mkhademi
Copy link

mkhademi commented Nov 11, 2016

When I run "make all", I get the following error:

CXX src/caffe/layers/pose_data_layer.cpp
src/caffe/layers/pose_data_layer.cpp: In member function ‘virtual void caffe::PoseDataLayer::load_batch(caffe::MultiBatch*)’:
src/caffe/layers/pose_data_layer.cpp:615:59: error: there are no arguments to ‘DecodeDatumToCVMat’ that depend on a template parameter, so a declaration of ‘DecodeDatumToCVMat’ must be available [-fpermissive]
image = DecodeDatumToCVMat(image_cached.second, true);

src/caffe/layers/pose_data_layer.cpp: In instantiation of ‘void caffe::PoseDataLayer::load_batch(caffe::MultiBatch*) [with Dtype = float]’:
src/caffe/layers/pose_data_layer.cpp:937:1: required from here
src/caffe/layers/pose_data_layer.cpp:615:59: error: ‘DecodeDatumToCVMat’ was not declared in this scope
image = DecodeDatumToCVMat(image_cached.second, true);

How can I fix that?

Thanks!

@amirstar
Copy link

amirstar commented Dec 12, 2016

In Makefile.config change USE_OPENCV := 0 to USE_OPENCV := 1 (change 0 to 1)

Also in Makefile find this line :
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5

and change it to this :
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5\
opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants