node-opencv: dyld: lazy symbol binding failed: __ZN2cv17CascadeClassifier4loadERKSs
Getting this error:
dyld: lazy symbol binding failed: Symbol not found: __ZN2cv17CascadeClassifier4loadERKSs
Referenced from: /Users/dustin/worker/node_modules/opencv/build/Release/opencv.node
Expected in: dynamic lookup
dyld: Symbol not found: __ZN2cv17CascadeClassifier4loadERKSs
Referenced from: /Users/dustin/worker/node_modules/opencv/build/Release/opencv.node
Expected in: dynamic lookup
Trace/BPT trap: 5
I’m basically running the example for face detection from the README.
cv.readImage(img.originalBuffer, function(err, im) {
im.detectObject(cv.FACE_CASCADE, {}, function(err, faces) {
console.log(err, faces);
for (var i = 0; i < faces.length; i++) {
var x = faces[i];
im.ellipse(x.x + x.width/2, x.y + x.height/2, x.width/2, x.height/2);
}
im.save('/Users/dustin/out.jpg');
});
});
My version of opencv is 2.4.6.1 and it was installed with homebrew. If there’s anything else I should provide, let me know.
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 18 (1 by maintainers)
@fuwaneko I was able to link aok with opencv after performing the following steps (not sure if all are necessary)
this forced all my c++ tools to use c++11 and libc++, as well as node-gyp to link using the same libraries