return process.dlopen(module,path._makeLong(filename));
从OpenCV节点运行示例时出现此错误
return process.dlopen(module,path._makeLong(filename)); ^ 错误:/home/sunny/face/build/opencv/v5.0.0/Release/node-v46-linux-x64/opencv.node:undefined symbol:_ZNK2cv9Algorithm5writeERNS_11FileStorageE 在错误(本机) 在Object.Module._extensions..node(module.js:460:18) 在Module.load(module.js:356:32) 在Function.Module._load(module.js:313:12) 在Module.require(module.js:366:17) 在require(module.js:385:17) 在对象。 (/home/sunny/face/lib/bindings.js:4:15) 在Module._compile(module.js:435:26) 在Object.Module._extensions..js(module.js:442:10) 在Module.load(module.js:356:32)
尝试刷新您安装的模块
$ rm -rf node_modules/ $ npm update
在使用Gulp和node-sass时,我得到了有关process.dlopen
错误。 清除安装的模块解决了我的问题。
编辑:不确定如何OpenCV的工作(或实际是什么),但我认为它处理NodeJS模块类似于常规NodeJS应用程序,在那里你可以刷新模块集合。
你应该检查你的OpenCV安装,可能是丢失/找不到,或者它不是OpenCV节点绑定所支持的版本。 假设您在npm上使用opencv
模块,其自述文件指出,从v2.3.1到v3.0.0的OpenCV版本(完全)受支持。