justadudewhohacks / justadudewhohacks/opencv4nodejs

npm ERR! Failed at the opencv-build@0.1.9 install script : Error in Generate opencv.pc

Open
#767 0 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

# 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](https://github.com/justadudewhohacks/opencv4nodejs/files/5370190/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

Contributor guide

Open the contributing guide

Research direction

Start with the attached error.txt and the reported npm install command after installing and linking opencv@4 with Homebrew. Inspect the opencv-build installation path and the CMake Generate opencv.pc command shown in the error; done means opencv4nodejs installs successfully without the shell syntax error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, macos, nodejs, opencv
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.