Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install failing at 55% MacOS Monterey #856

Open
Pranushan157 opened this issue Oct 13, 2022 · 2 comments
Open

Install failing at 55% MacOS Monterey #856

Pranushan157 opened this issue Oct 13, 2022 · 2 comments

Comments

@Pranushan157
Copy link

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 ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node ./install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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/pranushannimalan/.npm/_logs/2022-10-13T15_37_03_754Z-debug.log

Auto Build - Full Error Log

error.txt

Manual Build - Environment Information

OpenCV version (example 3.4.1): 3.4.6

With OpenCV-contrib? (extra modules): no

OS: MacOS Monterey

@dmakeev
Copy link

dmakeev commented Oct 17, 2022

opencv-build seems not working well with macOS (on M1-powered mac it fails on library not found for -lfreetype even if freetype is installed), so my solution was to install OpenCV manually (via Brew) and point opencv4nodejs to it (opencv-build should be removed):

"opencv4nodejs": {
    "opencvLibDir": "/opt/homebrew/Cellar/opencv/4.6.0_1/lib",
    "opencvBinDir": "/opt/homebrew/Cellar/opencv/4.6.0_1/bin",
    "opencvIncludeDir": "/opt/homebrew/Cellar/opencv/4.6.0_1/bin",
    "disableAutoBuild": true
},

@piercus
Copy link
Collaborator

piercus commented Nov 8, 2022

This repository is not maintained anymore, please use @u4/opencv4nodejs for a more active fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants