{"action":"created","issue":{"url":"https://api.github.com/repos/robotology/himrep/issues/21","repository_url":"https://api.github.com/repos/robotology/himrep","labels_url":"https://api.github.com/repos/robotology/himrep/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/robotology/himrep/issues/21/comments","events_url":"https://api.github.com/repos/robotology/himrep/issues/21/events","html_url":"https://github.com/robotology/himrep/issues/21","id":179205907,"number":21,"title":"issue with compiling caffeCoder","user":{"login":"dcam0050","id":4288535,"avatar_url":"https://avatars.githubusercontent.com/u/4288535?v=3","gravatar_id":"","url":"https://api.github.com/users/dcam0050","html_url":"https://github.com/dcam0050","followers_url":"https://api.github.com/users/dcam0050/followers","following_url":"https://api.github.com/users/dcam0050/following{/other_user}","gists_url":"https://api.github.com/users/dcam0050/gists{/gist_id}","starred_url":"https://api.github.com/users/dcam0050/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcam0050/subscriptions","organizations_url":"https://api.github.com/users/dcam0050/orgs","repos_url":"https://api.github.com/users/dcam0050/repos","events_url":"https://api.github.com/users/dcam0050/events{/privacy}","received_events_url":"https://api.github.com/users/dcam0050/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"GiuliaP","id":6449556,"avatar_url":"https://avatars.githubusercontent.com/u/6449556?v=3","gravatar_id":"","url":"https://api.github.com/users/GiuliaP","html_url":"https://github.com/GiuliaP","followers_url":"https://api.github.com/users/GiuliaP/followers","following_url":"https://api.github.com/users/GiuliaP/following{/other_user}","gists_url":"https://api.github.com/users/GiuliaP/gists{/gist_id}","starred_url":"https://api.github.com/users/GiuliaP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GiuliaP/subscriptions","organizations_url":"https://api.github.com/users/GiuliaP/orgs","repos_url":"https://api.github.com/users/GiuliaP/repos","events_url":"https://api.github.com/users/GiuliaP/events{/privacy}","received_events_url":"https://api.github.com/users/GiuliaP/received_events","type":"User","site_admin":false},"assignees":[{"login":"GiuliaP","id":6449556,"avatar_url":"https://avatars.githubusercontent.com/u/6449556?v=3","gravatar_id":"","url":"https://api.github.com/users/GiuliaP","html_url":"https://github.com/GiuliaP","followers_url":"https://api.github.com/users/GiuliaP/followers","following_url":"https://api.github.com/users/GiuliaP/following{/other_user}","gists_url":"https://api.github.com/users/GiuliaP/gists{/gist_id}","starred_url":"https://api.github.com/users/GiuliaP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GiuliaP/subscriptions","organizations_url":"https://api.github.com/users/GiuliaP/orgs","repos_url":"https://api.github.com/users/GiuliaP/repos","events_url":"https://api.github.com/users/GiuliaP/events{/privacy}","received_events_url":"https://api.github.com/users/GiuliaP/received_events","type":"User","site_admin":false}],"milestone":null,"comments":12,"created_at":"2016-09-26T11:41:24Z","updated_at":"2016-10-04T06:43:12Z","closed_at":null,"body":"When compiling himrep I get this output:\r\n\r\n```\r\nicub@icubDesktop:/usr/local/src/robot/himrep/build$ make\r\nScanning dependencies of target caffeCoder\r\n[100%] Building CXX object modules/caffeCoder/src/CMakeFiles/caffeCoder.dir/main.cpp.o\r\nIn file included from /usr/local/src/robot/himrep/modules/caffeCoder/src/main.cpp:43:0:\r\n/usr/local/src/robot/himrep/modules/caffeCoder/src/CaffeFeatExtractor.hpp: In constructor 'CaffeFeatExtractor<Dtype>::CaffeFeatExtractor(std::string, std::string, std::string, std::string, int, bool)':\r\n/usr/local/src/robot/himrep/modules/caffeCoder/src/CaffeFeatExtractor.hpp:99:9: error: 'CheckDevice' is not a member of 'caffe::Caffe'\r\n         Caffe::CheckDevice(device_id);\r\n         ^\r\nIn file included from /usr/local/src/robot/himrep/modules/caffeCoder/src/main.cpp:43:0:\r\n/usr/local/src/robot/himrep/modules/caffeCoder/src/CaffeFeatExtractor.hpp: In instantiation of 'float CaffeFeatExtractor<Dtype>::extract_singleFeat_1D(cv::Mat&, std::vector<_Tp>&) [with Dtype = float]':\r\n/usr/local/src/robot/himrep/modules/caffeCoder/src/main.cpp:106:95:   required from here\r\n/usr/local/src/robot/himrep/modules/caffeCoder/src/CaffeFeatExtractor.hpp:1126:73: error: no matching function for call to 'caffe::Net<float>::Forward()'\r\n     std::vector<Blob<Dtype>*> results = feature_extraction_net->Forward();\r\n                                                                         ^\r\n/usr/local/src/robot/himrep/modules/caffeCoder/src/CaffeFeatExtractor.hpp:1126:73: note: candidates are:\r\nIn file included from /usr/local/src/robot/caffe/build/install/include/caffe/caffe.hpp:12:0,\r\n                 from /usr/local/src/robot/himrep/modules/caffeCoder/src/CaffeFeatExtractor.hpp:23,\r\n                 from /usr/local/src/robot/himrep/modules/caffeCoder/src/main.cpp:43:\r\n/usr/local/src/robot/caffe/build/install/include/caffe/net.hpp:53:31: note: const std::vector<caffe::Blob<Dtype>*>& caffe::Net<Dtype>::Forward(const std::vector<caffe::Blob<Dtype>*>&, Dtype*) [with Dtype = float]\r\n   const vector<Blob<Dtype>*>& Forward(const vector<Blob<Dtype>* > & bottom,\r\n                               ^\r\n/usr/local/src/robot/caffe/build/install/include/caffe/net.hpp:53:31: note:   candidate expects 2 arguments, 0 provided\r\n/usr/local/src/robot/caffe/build/install/include/caffe/net.hpp:59:10: note: std::string caffe::Net<Dtype>::Forward(const string&, Dtype*) [with Dtype = float; std::string = std::basic_string<char>]\r\n   string Forward(const string& input_blob_protos, Dtype* loss = NULL);\r\n          ^\r\n/usr/local/src/robot/caffe/build/install/include/caffe/net.hpp:59:10: note:   candidate expects 2 arguments, 0 provided\r\nmake[2]: *** [modules/caffeCoder/src/CMakeFiles/caffeCoder.dir/main.cpp.o] Error 1\r\nmake[1]: *** [modules/caffeCoder/src/CMakeFiles/caffeCoder.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n```\r\n\r\nSome notes about the compilation process ... \r\n\r\nI've downloaded caffe-rc3 from the download link provided in README_caffe.md, extracted it and compiled it via cmake with opencv 2.4.8 and cuDNN v3. After this successfully compiles I git clone himrep and try to compile after configuration with cmake.\r\n\r\nWhen I try to compile himrep with opencv 3.0.0 I get the above error and when I try to compile with opencv 2.4.8 I get the following error:\r\n\r\n```\r\nicub@icubDesktop:/usr/local/src/robot/himrep/build$ make\r\nScanning dependencies of target sparseCoder\r\n[ 25%] Building CXX object modules/sparseCoder/src/CMakeFiles/sparseCoder.dir/main.cpp.o\r\nIn file included from /usr/local/src/robot/himrep/modules/sparseCoder/src/main.cpp:117:0:\r\n/usr/local/src/robot/himrep/modules/sparseCoder/src/DictionaryLearning.h:39:5: error: 'KDTree' in namespace 'cv' does not name a type\r\n     cv::KDTree kdtree;\r\n     ^\r\nmake[2]: *** [modules/sparseCoder/src/CMakeFiles/sparseCoder.dir/main.cpp.o] Error 1\r\nmake[1]: *** [modules/sparseCoder/src/CMakeFiles/sparseCoder.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n```\r\n\r\nAny idea on how to proceed? Thanks"},"comment":{"url":"https://api.github.com/repos/robotology/himrep/issues/comments/251306493","html_url":"https://github.com/robotology/himrep/issues/21#issuecomment-251306493","issue_url":"https://api.github.com/repos/robotology/himrep/issues/21","id":251306493,"user":{"login":"pattacini","id":3738070,"avatar_url":"https://avatars.githubusercontent.com/u/3738070?v=3","gravatar_id":"","url":"https://api.github.com/users/pattacini","html_url":"https://github.com/pattacini","followers_url":"https://api.github.com/users/pattacini/followers","following_url":"https://api.github.com/users/pattacini/following{/other_user}","gists_url":"https://api.github.com/users/pattacini/gists{/gist_id}","starred_url":"https://api.github.com/users/pattacini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pattacini/subscriptions","organizations_url":"https://api.github.com/users/pattacini/orgs","repos_url":"https://api.github.com/users/pattacini/repos","events_url":"https://api.github.com/users/pattacini/events{/privacy}","received_events_url":"https://api.github.com/users/pattacini/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T06:43:12Z","updated_at":"2016-10-04T06:43:12Z","body":"Hi @dcam0050 \r\n\r\nThis issue is about compiling `caffe` and `caffeCoder`. I think in this respect we found out more or less what was causing the problem. Do you mind posting anything new on https://github.com/robotology/wysiwyd/issues/162 instead?\r\n\r\nOne further suggestion that might make issues' history clearer is to attach logs as files herein."}}
{"actor":{"display_login":"pattacini"}}