npm ERR! Failed at the opencv-build@0.1.9 install script : Error in Generate opencv.pc
Opened this issue · 0 comments
Error Message
Description: Trying to install the opencv4nodejs package using npm.
Ran the following commands
brew update
brew install opencv@4
brew link --force opencv@4
npm install --save opencv4nodejs
Error:
[ 0%] Generate opencv.pc
/bin/sh: -c: line 0: syntax error near unexpected token (' /bin/sh: -c: line 0:
/usr/local/Cellar/cmake/3.18.4/bin/cmake -DCMAKE_HELPER_SCRIPT=/Users/sharadroychoudhury/Dropbox/My\ Mac\ (sharad’s\ MacBook\ Air)/Desktop/project/angular_codebase/gesture-recognition-model/node_modules/opencv-build/opencv/build/OpenCVGenPkgConfig.info.cmake -P /Users/sharadroychoudhury/Dropbox/My\ Mac\ (sharad’s\ MacBook\ Air)/Desktop/project/angular_codebase/gesture-recognition-model/node_modules/opencv-build/opencv/opencv/cmake/OpenCVGenPkgconfig.cmake'
make[2]: *** [unix-install/opencv.pc] Error 2
make[1]: *** [CMakeFiles/gen-pkgconfig.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Attached the log in txt file. Please help!
error.txt
OpenCV version (example 3.4.1): 4.4.0_2
With OpenCV-contrib? (extra modules): yes/no?
OS: Windows 7 / 8 / 10? / MacOSX? / Ubuntu? ...: MacOSX