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 all pycaffe issue #22

Open
xueyushan opened this issue Sep 28, 2018 · 2 comments
Open

make all pycaffe issue #22

xueyushan opened this issue Sep 28, 2018 · 2 comments

Comments

@xueyushan
Copy link

xueyushan commented Sep 28, 2018

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

src/caffe/layers/pose_data_layer.cpp: In member function ‘virtual void caffe::PoseDataLayer::DataLayerSetUp(const std::vector<caffe::Blob>&, const std::vector<caffe::Blob>&)’:
src/caffe/layers/pose_data_layer.cpp:294:3: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto joint_stats_file = this->layer_param().pose_data_param().has_joint_pairs_stats() ?
^
src/caffe/layers/pose_data_layer.cpp:294:8: error: ‘joint_stats_file’ does not name a type
auto joint_stats_file = this->layer_param().pose_data_param().has_joint_pairs_stats() ?
^
src/caffe/layers/pose_data_layer.cpp:298:43: error: ‘joint_stats_file’ was not declared in this scope
neighbour_stats_ = readMatricesFromFile(joint_stats_file);
^
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:515:9: error: ‘iota’ is not a member of ‘std’
std::iota(data_indices_.begin(), data_indices_.end(), 0);
^
src/caffe/layers/pose_data_layer.cpp: In instantiation of ‘void caffe::PoseDataLayer::DataLayerSetUp(const std::vector<caffe::Blob
>&, const std::vector<caffe::Blob>&) [with Dtype = float]’:
src/caffe/layers/pose_data_layer.cpp:937:1: required from here
src/caffe/layers/pose_data_layer.cpp:290:7: warning: unused variable ‘num_labels’ [-Wunused-variable]
int num_labels = this->num_labels_;
^
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:573:9: warning: unused variable ‘num_labels’ [-Wunused-variable]
int num_labels = this->num_labels_;
^
src/caffe/layers/pose_data_layer.cpp:420:14: warning: unused variable ‘sequential’ [-Wunused-variable]
const bool sequential = this->layer_param_.pose_data_param().sequential();
^
src/caffe/layers/pose_data_layer.cpp: In instantiation of ‘void caffe::PoseDataLayer::DataLayerSetUp(const std::vector<caffe::Blob>&, const std::vector<caffe::Blob>&) [with Dtype = double]’:
src/caffe/layers/pose_data_layer.cpp:937:1: required from here
src/caffe/layers/pose_data_layer.cpp:290:7: warning: unused variable ‘num_labels’ [-Wunused-variable]
int num_labels = this->num_labels_;
^
src/caffe/layers/pose_data_layer.cpp: In instantiation of ‘void caffe::PoseDataLayer::load_batch(caffe::MultiBatch*) [with Dtype = double]’:
src/caffe/layers/pose_data_layer.cpp:937:1: required from here
src/caffe/layers/pose_data_layer.cpp:573:9: warning: unused variable ‘num_labels’ [-Wunused-variable]
int num_labels = this->num_labels_;
^
src/caffe/layers/pose_data_layer.cpp:420:14: warning: unused variable ‘sequential’ [-Wunused-variable]
const bool sequential = this->layer_param_.pose_data_param().sequential();
^
Makefile:563: recipe for target '.build_release/src/caffe/layers/pose_data_layer.o' failed
make: *** [.build_release/src/caffe/layers/pose_data_layer.o] Error 1

How can I fix that?

Thanks!

@xueyushan xueyushan changed the title make all pycaffe make all pycaffe issue Sep 28, 2018
@wangsen1312
Copy link

@xueyushan I encounter the same problem, any solutions?

@chalesguo
Copy link

I encounter the same problem, any solutions?

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

3 participants