[英]dyld: lazy symbol binding failed, opencv
Trying to get node-opencv
working and I'm hitting some errors that I cannot decipher. 试图使
node-opencv
工作,我遇到了一些我无法破解的错误。 Any helpful insight is much appreciated. 非常感谢任何有用的见解。
This happens anytime I try to run one of the examples. 每当我尝试运行示例之一时,就会发生这种情况。 In my own attempts I can create a
cv.VideoStream(0)
but once I try to create an object detection stream or read from the camera it throws the same error. 在我自己的尝试中,我可以创建一个
cv.VideoStream(0)
但是一旦尝试创建对象检测流或从摄像机读取它,它就会引发相同的错误。
[~/opencvtest/node_modules/opencv/examples] node camera
dyld: lazy symbol binding failed: Symbol not found: __ZN2cv7imwriteERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERKNS_11_InputArrayERKNS0_6vectorIiNS4_IiEEEE
Referenced from: /Users/moog/opencvtest/node_modules/opencv/build/Release/opencv.node
Expected in: dynamic lookup
dyld: Symbol not found: __ZN2cv7imwriteERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERKNS_11_InputArrayERKNS0_6vectorIiNS4_IiEEEE
Referenced from: /Users/moog/opencvtest/node_modules/opencv/build/Release/opencv.node
Expected in: dynamic lookup
Trace/BPT trap: 5
I've tried reinstalling OpenCV and rebuilding node-opencv
but I hit the same error. 我尝试重新安装OpenCV并重建
node-opencv
但遇到相同的错误。
node-opencv: v0.5.0
opencv: v2.4.9
node.js: v0.10.28
osx: v10.9.3
Thanks! 谢谢!
I just solve this problem by the following steps: 我只是通过以下步骤解决此问题:
brew uninstall opencv
brew uninstall opencv
reinstall opencv by brew again and add echos like 再次通过brew重新安装opencv并添加类似的回声
export PATH="/usr/local/opt/opencv@3/bin:$PATH" export LDFLAGS="-L/usr/local/opt/opencv@3/lib" export CPPFLAGS="-I/usr/local/opt/opencv@3/include"
where opencv@3 is my opencv version to your .bash_profile 其中opencv @ 3是我的.bash_profile的opencv版本
brew link --overwrite --force opencv@3
. brew link --overwrite --force opencv@3
链接opencv brew link --overwrite --force opencv@3
。 My problem is that I didn't delete my old opencv files clean so I need to brew link --force
我的问题是我没有将旧的opencv文件删除干净,所以我需要
brew link --force
Wish I can help. 希望我能帮上忙。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.