本文介绍了返回process.dlopen(module,path._makeLong(filename));的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从OpenCV Node运行示例时出现此错误
I am getting this error when running an example from OpenCV Node
return process.dlopen(module, path._makeLong(filename));
^
Error: /home/sunny/face/build/opencv/v5.0.0/Release/node-v46-linux-x64/opencv.node: undefined symbol: _ZNK2cv9Algorithm5writeERNS_11FileStorageE
at Error (native)
at Object.Module._extensions..node (module.js:460:18)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/home/sunny/face/lib/bindings.js:4:15)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
推荐答案
使用此命令,效果很好:
Use this command, it works fine:
npm rebuild bcrypt --build-from-source
这篇关于返回process.dlopen(module,path._makeLong(filename));的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!