小编use*_*757的帖子

Raspberry Pi opencv 3和node-opencv

我在我的覆盆子pi raspbian系统上成功编译了opencv 3.现在我正在尝试使用node-opencv进行安装,但没有取得多大成功.

这是npm的错误输出

npm install -g opencv


|

opencv@1.0.0 install /usr/local/lib/node_modules/opencv
node-gyp rebuild
make: Entering directory '/usr/local/lib/node_modules/opencv/build'
CXX(target) Release/obj.target/opencv/src/init.o
In file included from ../src/init.cc:5:0:
../src/CascadeClassifierWrap.h:5:3: error: ‘CascadeClassifier’ in namespace ‘cv’ does not name a type
In file included from ../src/init.cc:6:0:
../src/VideoCaptureWrap.h:5:7: error: ‘VideoCapture’ in namespace ‘cv’ does not name a type
opencv.target.mk:99: recipe for target 'Release/obj.target/opencv/src/init.o' failed
make: *** [Release/obj.target/opencv/src/init.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/opencv/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: …
Run Code Online (Sandbox Code Playgroud)

opencv node.js raspberry-pi raspbian

6
推荐指数
1
解决办法
2072
查看次数

标签 统计

node.js ×1

opencv ×1

raspberry-pi ×1

raspbian ×1