justadudewhohacks / justadudewhohacks/opencv4nodejs

HELP! opencv4nodejs build error - macos

Open
#831 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5.1k
Forks
826
PR merge metrics
No merged PRs in 30d

Description

# Description

Try of opencv4nodejs `s build was performed on two (2) distinct macbook, Big Sur and Catalina. In both the error occurred. The following commands were executed (in order):

> brew update
> brew install opencv@4
> brew link --force opencv@4
> npm install --save opencv4nodejs

# Error Message

[ 55%] Linking CXX shared library ../../lib/libopencv_core.dylib
[ 55%] Built target opencv_core
make: *** [all] Error 2
ERR! child process exited with code 2 (for more info, set '--loglevel silly')
npm WARN xxx No description
npm WARN xxx No repository field.
npm WARN xxx No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! opencv-build@0.1.9 install: `node ./install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the opencv-build@0.1.9 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/xxx/.npm/_logs/2021-10-20T16_45_13_750Z-debug.log

# Error Log

219 verbose stack Error: opencv-build@0.1.9 install: `node ./install.js`
219 verbose stack Exit status 1
219 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
219 verbose stack at EventEmitter.emit (events.js:400:28)
219 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
219 verbose stack at ChildProcess.emit (events.js:400:28)
219 verbose stack at maybeClose (internal/child_process.js:1058:16)
219 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
220 verbose pkgid opencv-build@0.1.9
221 verbose cwd /Users/xxx/workspace/components-ui-test
222 verbose Darwin 20.6.0
223 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "opencv4nodejs"
224 verbose node v14.18.1
225 verbose npm v6.14.15
226 error code ELIFECYCLE
227 error errno 1
228 error opencv-build@0.1.9 install: `node ./install.js`
228 error Exit status 1
229 error Failed at the opencv-build@0.1.9 install script.
229 error This is probably not a problem with npm. There is likely additional logging output above.
230 verbose exit [ 1, true ]

# Setup

*OpenCV version* 5.6.0
*Node version* v14.18.1
*NPM version* 6.14.15
*OS*: MacOSX Big Sur version 11.6

# Other Information

PLEASE, can anyone help me? Is anyone there? Is this project deprecated?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.