Raspberry Pi, Nx Workspace.
Hi!
I am having issue installing the package in my raspberry pi with an NX workspace.
This is the version I am trying to install "@u4/opencv4nodejs": "^7.1.0".
os Linux 6.6.31+rpt-rpi-v8 node v22.4.1 npm v10.8.1 node-gyp -v v10.2.0
This is the error I am getting.
pm error /home/scibis/app1/node_modules/@u4/opencv-build/script/src/helper/detect.js:98
npm error const [candidate] = (0, glob_1.globSync)(lookup);
npm error ^
npm error
npm error TypeError: (0 , glob_1.globSync) is not a function or its return value is not iterable
npm error at Object.detectLibDir (/home/scibis/app1/node_modules/@u4/opencv-build/script/src/helper/detect.js:98:49)
npm error at StaticTools.autoLocatePrebuild (/home/scibis/app1/node_modules/@u4/opencv-build/script/src/StaticTools.js:78:40)
npm error at Object.compileLib (/home/scibis/app1/node_modules/@u4/opencv4nodejs/cjs/install/compileLib.js:232:52)
npm error at Object.gyp failed with exit code: 1
npm error gyp ERR! stack at ChildProcess.
When I try and install it as follows (from https://github.com/UrielCh/opencv4nodejs/issues/67)
mkdir testcv cd testcv/ npm init -y export OPENCV4NODEJS_DISABLE_AUTOBUILD=1 time npm install @u4/opencv4nodejs --loglevel verbose (same version as above).
Would appreciate your help.
Thank you!
It may be linked to glob. This library was inactive for years. I tried to build a small alternative to replace it, but glob was resurrected and has since received massive updates and breaking changes.
I have multiple Raspberry Pi devices lying around, so I should be able to test it.
I'm having the same issue :(