opencv4nodejs in MacOS Big Sur
causlayer opened this issue · 0 comments
opencv4nodejs cannot be found in Appium-doctor
export OPENCV4NODEJS_DISABLE_AUTOBUILD=1
export OPENCV_INCLUDE_DIR="/usr/local/include/opencv2"
export OPENCV_LIB_DIR="/usr/local/lib"
export OPENCV_BIN_DIR="/usr/local/bin"
MacOS Big Sur
node -v v15.8.0
node-gyp -v v7.1.2
opencv v4.5.1
With OpenCV-contrib yes
Error Message
make: *** [Release/obj.target/opencv4nodejs/cc/tracking/MultiTracker.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:378:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Darwin 20.3.0
gyp ERR! command "/usr/local/Cellar/node/15.8.0/bin/node" "/usr/local/bin/node-gyp" "rebuild" "--jobs" "max" "--python" "/usr/local/bin/python2"
gyp ERR! cwd /usr/local/lib/node_modules/opencv4nodejs
gyp ERR! node -v v15.8.0
gyp ERR! node-gyp -v v7.1.2
gyp ERR! not ok