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

gyp error on install #137

Open
mgobishop opened this issue May 3, 2024 · 2 comments
Open

gyp error on install #137

mgobishop opened this issue May 3, 2024 · 2 comments

Comments

@mgobishop
Copy link

Hello... I happily used this library (which is amazing btw) until I upgraded to node 20.12.2 (and python3). I'm back trying to install this now that version 7 is out which requires no configuration. I use a mac, I installed opencv, gcc via brew and I have xcode-select installed. I have node-gyp installed globally. I tried to install this package again but get the following error:

npm ERR! gyp: Call to 'node ./bin/install.js OPENCV4NODEJS_DEFINES' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: gyp failed with exit code: 1

does this mean anything to anyone? Any pointers would be much appreciated as I am feeling out of my depth!

@sdrik
Copy link

sdrik commented May 4, 2024

According to my recent attempts to install the last version with a pre-installed OpenCV on ArchLinux, it seems it is still required to at least have the "OPENCV4NODEJS_DISABLE_AUTOBUILD=1" environment variable defined to prevent build-opencv to try building OpenCV from source.
Moreover, the "disableAutoBuild" in the package.json do no seem to work anymore to prevent the building.

@UrielCh
Copy link
Owner

UrielCh commented May 6, 2024

I did not try all parameters combinaison.

Check my github actions to check the Way I testing them.

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