Tonyfy / Clust

0 stars 0 forks source link

编译出的奇怪问题。 #1

Open dalehqb opened 7 years ago

dalehqb commented 7 years ago

/home/huang/lcnn/Clust/src/../ARecog/featureExByCaffe.h:118:9: error: ‘caffe::Net’ is not a template caffe::Net network; ^ /home/huang/lcnn/Clust/src/../ARecog/featureExByCaffe.h: In constructor ‘featureExer::featureExer(const string&, const string&)’: /home/huang/lcnn/Clust/src/../ARecog/featureExByCaffe.h:20:24: error: ‘caffe::Net’ is not a template network = new caffe::Net(net, caffe::TEST); ^ /home/huang/lcnn/Clust/src/../ARecog/featureExByCaffe.h:20:40: error: ‘TEST’ is not a member of ‘caffe’ network = new caffe::Net(net, caffe::TEST); ^ /home/huang/lcnn/Clust/src/../ARecog/featureExByCaffe.h: In member function ‘void featureExer::extractfeatureoneimg(const cv::Mat&, cv::Mat&)’: /home/huang/lcnn/Clust/src/../ARecog/featureExByCaffe.h:95:16: error: ‘caffe::Blob’ is not a template const vector<Blob> &intput_blobs = network->input_blobs(); ^ /home/huang/lcnn/Clust/src/../ARecog/featureExByCaffe.h:95:55: error: ‘class caffe::Net’ has no member named ‘input_blobs’ const vector<Blob*> &intput_blobs = network->input_blobs(); ^ /home/huang/lcnn/Clust/src/../ARecog/featureExByCaffe.h:107:3: error: ‘boost’ has not been declared boost::shared_ptr<caffe::Blob > prob = network->blob_by_name("eltwise_fc1"); ^ /home/huang/lcnn/Clust/src/../ARecog/featureExByCaffe.h:107:28: error: ‘caffe::Blob’ is not a template boost::shared_ptr<caffe::Blob > prob = network->blob_by_name("eltwise_fc1"); ^ /home/huang/lcnn/Clust/src/../ARecog/featureExByCaffe.h:107:40: error: expected primary-expression before ‘>’ token boost::shared_ptr<caffe::Blob > prob = network->blob_by_name("eltwise_fc1"); ^ /home/huang/lcnn/Clust/src/../ARecog/featureExByCaffe.h:107:42: error: ‘prob’ was not declared in this scope boost::shared_ptr<caffe::Blob > prob = network->blob_by_name("eltwise_fc1");

dalehqb commented 7 years ago

应用minicafe里面的头文件就报上面的错误,应用标准的caffe是正常的。

Tonyfy commented 7 years ago

caffe and boost dependence configure not work, check these carefully.btw,no matter which caffe you use.