{"action":"created","issue":{"url":"https://api.github.com/repos/peterbraden/node-opencv/issues/240","labels_url":"https://api.github.com/repos/peterbraden/node-opencv/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/peterbraden/node-opencv/issues/240/comments","events_url":"https://api.github.com/repos/peterbraden/node-opencv/issues/240/events","html_url":"https://github.com/peterbraden/node-opencv/issues/240","id":63483455,"number":240,"title":"install Raspberry Pi 2.4.x not working","user":{"login":"ajfisher","id":119203,"avatar_url":"https://avatars.githubusercontent.com/u/119203?v=3","gravatar_id":"","url":"https://api.github.com/users/ajfisher","html_url":"https://github.com/ajfisher","followers_url":"https://api.github.com/users/ajfisher/followers","following_url":"https://api.github.com/users/ajfisher/following{/other_user}","gists_url":"https://api.github.com/users/ajfisher/gists{/gist_id}","starred_url":"https://api.github.com/users/ajfisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajfisher/subscriptions","organizations_url":"https://api.github.com/users/ajfisher/orgs","repos_url":"https://api.github.com/users/ajfisher/repos","events_url":"https://api.github.com/users/ajfisher/events{/privacy}","received_events_url":"https://api.github.com/users/ajfisher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-22T03:07:07Z","updated_at":"2015-09-22T17:44:52Z","closed_at":null,"body":"So I've install libopencv and libopencv-dev using apt - these appear to be working using some test code.\r\n\r\nWhen I go to do an npm install opencv (or the long version peterbraden/node-opencv) the install appears to fail at the point of the face recognizer. It gets to here fine:\r\n\r\n```\r\n> opencv@3.0.0 install /home/pi/ajnodebot/node_modules/opencv\r\n> node-pre-gyp install --fallback-to-build\r\n\r\nchild_process: customFds option is deprecated, use stdio instead.\r\nchild_process: customFds option is deprecated, use stdio instead.\r\nmake: Entering directory '/home/pi/ajnodebot/node_modules/opencv/build'\r\n  CXX(target) Release/obj.target/opencv/src/init.o\r\n  CXX(target) Release/obj.target/opencv/src/Matrix.o\r\n  CXX(target) Release/obj.target/opencv/src/OpenCV.o\r\n  CXX(target) Release/obj.target/opencv/src/CascadeClassifierWrap.o\r\n  CXX(target) Release/obj.target/opencv/src/Contours.o\r\n  CXX(target) Release/obj.target/opencv/src/Point.o\r\n  CXX(target) Release/obj.target/opencv/src/VideoCaptureWrap.o\r\n  CXX(target) Release/obj.target/opencv/src/CamShift.o\r\n  CXX(target) Release/obj.target/opencv/src/HighGUI.o\r\n  CXX(target) Release/obj.target/opencv/src/FaceRecognizer.o\r\n```\r\n\r\nThen it fails with the following error log:\r\n\r\n```\r\n../src/FaceRecognizer.cc: In static member function ‘static void FaceRecognizerWrap::New(const v8::FunctionCallbackInfo<v8::Value>&)’:\r\n../src/FaceRecognizer.cc:65:80: error: too many arguments to function ‘cv::Ptr<cv::FaceRecognizer> cv::createLBPHFaceRecognizer(int, int, int, int)’\r\n/usr/include/opencv2/contrib/contrib.hpp:951:36: note: declared here\r\n../src/FaceRecognizer.cc: In static member function ‘static void FaceRecognizerWrap::CreateLBPH(const v8::FunctionCallbackInfo<v8::Value>&)’:\r\n../src/FaceRecognizer.cc:91:3: error: too many arguments to function ‘cv::Ptr<cv::FaceRecognizer> cv::createLBPHFaceRecognizer(int, int, int, int)’\r\n/usr/include/opencv2/contrib/contrib.hpp:951:36: note: declared here\r\n../src/FaceRecognizer.cc: In static member function ‘static void FaceRecognizerWrap::CreateEigen(const v8::FunctionCallbackInfo<v8::Value>&)’:\r\n../src/FaceRecognizer.cc:111:3: error: too many arguments to function ‘cv::Ptr<cv::FaceRecognizer> cv::createEigenFaceRecognizer(int)’\r\n/usr/include/opencv2/contrib/contrib.hpp:949:36: note: declared here\r\n../src/FaceRecognizer.cc: In static member function ‘static void FaceRecognizerWrap::CreateFisher(const v8::FunctionCallbackInfo<v8::Value>&)’:\r\n../src/FaceRecognizer.cc:131:3: error: too many arguments to function ‘cv::Ptr<cv::FaceRecognizer> cv::createFisherFaceRecognizer(int)’\r\n/usr/include/opencv2/contrib/contrib.hpp:950:36: note: declared here\r\n../src/FaceRecognizer.cc: In static member function ‘static void FaceRecognizerWrap::UpdateSync(const v8::FunctionCallbackInfo<v8::Value>&)’:\r\n../src/FaceRecognizer.cc:220:14: error: ‘class cv::FaceRecognizer’ has no member named ‘update’\r\n../src/FaceRecognizer.cc: In static member function ‘static void FaceRecognizerWrap::PredictSync(const v8::FunctionCallbackInfo<v8::Value>&)’:\r\n../src/FaceRecognizer.cc:235:52: error: no matching function for call to ‘cv::FaceRecognizer::predict(cv::Mat&, int&, double&)’\r\n../src/FaceRecognizer.cc:235:52: note: candidate is:\r\n/usr/include/opencv2/contrib/contrib.hpp:931:21: note: virtual int cv::FaceRecognizer::predict(cv::InputArray) const\r\n/usr/include/opencv2/contrib/contrib.hpp:931:21: note:   candidate expects 1 argument, 3 provided\r\n../src/FaceRecognizer.cc: In static member function ‘static void FaceRecognizerWrap::GetMat(const v8::FunctionCallbackInfo<v8::Value>&)’:\r\n../src/FaceRecognizer.cc:271:26: error: ‘class cv::FaceRecognizer’ has no member named ‘getMat’\r\nopencv.target.mk:98: recipe for target 'Release/obj.target/opencv/src/FaceRecognizer.o' failed\r\nmake: *** [Release/obj.target/opencv/src/FaceRecognizer.o] Error 1\r\nmake: Leaving directory '/home/pi/ajnodebot/node_modules/opencv/build'\r\ngyp ERR! build error \r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:110:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)\r\ngyp ERR! System Linux 3.18.7-v7+\r\n\r\n# REST OF MESSAGES TRUNCATED AS JUST NPM STACK UNWINDING\r\n```\r\n \r\nNot knowing a huge amount about open cv under the hood, my guess is that I have a version discrepancy?? Any way to check this?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/peterbraden/node-opencv/issues/comments/142360655","html_url":"https://github.com/peterbraden/node-opencv/issues/240#issuecomment-142360655","issue_url":"https://api.github.com/repos/peterbraden/node-opencv/issues/240","id":142360655,"user":{"login":"peterbraden","id":52586,"avatar_url":"https://avatars.githubusercontent.com/u/52586?v=3","gravatar_id":"","url":"https://api.github.com/users/peterbraden","html_url":"https://github.com/peterbraden","followers_url":"https://api.github.com/users/peterbraden/followers","following_url":"https://api.github.com/users/peterbraden/following{/other_user}","gists_url":"https://api.github.com/users/peterbraden/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbraden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbraden/subscriptions","organizations_url":"https://api.github.com/users/peterbraden/orgs","repos_url":"https://api.github.com/users/peterbraden/repos","events_url":"https://api.github.com/users/peterbraden/events{/privacy}","received_events_url":"https://api.github.com/users/peterbraden/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T17:44:52Z","updated_at":"2015-09-22T17:44:52Z","body":"fixed in cbaff9a"}}