liuhong@liuhonghongdeMacBook-Pro node_modules % sudo build-opencv --flag="-DCMAKE_SYSTEM_PROCESSOR=arm64 -DCMAKE_OSX_ARCHITECTURES=arm64" build Password: info config No file /usr/local/lib/node_modules/package.json found for opencv4nodejs import info init no openCV version given using default verison 4.5.5 info init Workdir will be: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4 info install Using openCV 4.5.5 info install Using lib dir: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib info install if you want to use an own OpenCV build set OPENCV4NODEJS_DISABLE_AUTOBUILD to 1, and fill OPENCV_BIN_DIR, OPENCV_INCLUDE_DIR, OPENCV_LIB_DIR environement variables info install found previous build summery auto-build.json: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/auto-build.json info install checking for opencv libraries info install lib calib3d: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_calib3d.4.5.5.dylib info install lib core: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_core.4.5.5.dylib info install lib dnn: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_dnn.4.5.5.dylib info install lib features2d: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_features2d.4.5.5.dylib info install lib flann: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_flann.4.5.5.dylib info install lib gapi: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_gapi.4.5.5.dylib info install lib highgui: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_highgui.4.5.5.dylib info install lib imgcodecs: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_imgcodecs.4.5.5.dylib info install lib imgproc: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_imgproc.4.5.5.dylib info install lib ml: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_ml.4.5.5.dylib info install lib objdetect: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_objdetect.4.5.5.dylib info install lib photo: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_photo.4.5.5.dylib info install python_tests: ignored info install lib video: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_video.4.5.5.dylib info install lib videoio: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_videoio.4.5.5.dylib info install lib videostab: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_videostab.4.5.5.dylib info install lib face: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_face.4.5.5.dylib info install lib text: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_text.4.5.5.dylib info install lib tracking: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_tracking.4.5.5.dylib info install lib xfeatures2d: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_xfeatures2d.4.5.5.dylib info install lib ximgproc: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_ximgproc.4.5.5.dylib info install all libraries are installed in /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib => Skip building info install info install Found the following libs: info install calib3d: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_calib3d.4.5.5.dylib info install core: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_core.4.5.5.dylib info install dnn: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_dnn.4.5.5.dylib info install features2d: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_features2d.4.5.5.dylib info install flann: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_flann.4.5.5.dylib info install gapi: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_gapi.4.5.5.dylib info install highgui: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_highgui.4.5.5.dylib info install imgcodecs: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_imgcodecs.4.5.5.dylib info install imgproc: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_imgproc.4.5.5.dylib info install ml: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_ml.4.5.5.dylib info install objdetect: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_objdetect.4.5.5.dylib info install photo: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_photo.4.5.5.dylib info install video: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_video.4.5.5.dylib info install videoio: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_videoio.4.5.5.dylib info install videostab: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_videostab.4.5.5.dylib info install face: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_face.4.5.5.dylib info install text: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_text.4.5.5.dylib info install tracking: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_tracking.4.5.5.dylib info install xfeatures2d: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_xfeatures2d.4.5.5.dylib info install ximgproc: /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/lib/libopencv_ximgproc.4.5.5.dylib info defines info defines Setting the following defines: info defines OPENCV4NODEJS_FOUND_LIBRARY_CALIB3D OPENCV4NODEJS_FOUND_LIBRARY_CORE OPENCV4NODEJS_FOUND_LIBRARY_DNN info defines OPENCV4NODEJS_FOUND_LIBRARY_FEATURES2D OPENCV4NODEJS_FOUND_LIBRARY_FLANN OPENCV4NODEJS_FOUND_LIBRARY_GAPI info defines OPENCV4NODEJS_FOUND_LIBRARY_HIGHGUI OPENCV4NODEJS_FOUND_LIBRARY_IMGCODECS OPENCV4NODEJS_FOUND_LIBRARY_IMGPROC info defines OPENCV4NODEJS_FOUND_LIBRARY_ML OPENCV4NODEJS_FOUND_LIBRARY_OBJDETECT OPENCV4NODEJS_FOUND_LIBRARY_PHOTO info defines OPENCV4NODEJS_FOUND_LIBRARY_VIDEO OPENCV4NODEJS_FOUND_LIBRARY_VIDEOIO OPENCV4NODEJS_FOUND_LIBRARY_VIDEOSTAB info defines OPENCV4NODEJS_FOUND_LIBRARY_FACE OPENCV4NODEJS_FOUND_LIBRARY_TEXT OPENCV4NODEJS_FOUND_LIBRARY_TRACKING info defines OPENCV4NODEJS_FOUND_LIBRARY_XFEATURES2D OPENCV4NODEJS_FOUND_LIBRARY_XIMGPROC info install info install Setting the following includes: info includes /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/include info includes /opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build/include/opencv4 info libs info libs Setting lib from -L/opt/homebrew/lib/node_modules/@u4/opencv4nodejs/node_modules/@u4/opencv-build/opencv-4.5.5-ecae4/build : lib, -lopencv_calib3d, -lopencv_core, -lopencv_dnn, -lopencv_features2d, -lopencv_flann, -lopencv_gapi, -lopencv_highgui, -lopencv_imgcodecs, -lopencv_imgproc, -lopencv_ml, -lopencv_objdetect, -lopencv_photo, -lopencv_video, -lopencv_videoio, -lopencv_videostab, -lopencv_face, -lopencv_text, -lopencv_tracking, -lopencv_xfeatures2d, -lopencv_ximgproc, lib info install Spawning in directory:/opt/homebrew/lib/node_modules/@u4/opencv4nodejs node-gyp process: node-gyp build --jobs max --release gyp info it worked if it ends with ok gyp info using node-gyp@9.1.0 gyp info using node@16.16.0 | darwin | arm64 gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build', '--jobs', 8 ] CXX(target) Release/obj.target/opencv4nodejs/cc/opencv4nodejs.o CXX(target) Release/obj.target/opencv4nodejs/cc/CustomMatAllocator.o CXX(target) Release/obj.target/opencv4nodejs/cc/ExternalMemTracking.o CXX(target) Release/obj.target/opencv4nodejs/cc/core/core.o CXX(target) Release/obj.target/opencv4nodejs/cc/core/coreConstants.o CXX(target) Release/obj.target/opencv4nodejs/cc/core/HistAxes.o CXX(target) Release/obj.target/opencv4nodejs/cc/core/Mat.o CXX(target) Release/obj.target/opencv4nodejs/cc/core/Point.o In file included from ../cc/CustomMatAllocator.cc:1: In file included from ../cc/CustomMatAllocator.h:8: ../cc/core/Size.h:1:10: fatal error: 'opencv2/core.hpp' file not found #include ^~~~~~~~~~~~~~~~~~ In file included from ../cc/core/core.cc:1: In file included from ../cc/core/core.h:1: In file included from ../cc/core/Mat.h:1: In file included from ../cc/core/coreUtils.h:1: ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found #include ^~~~~~~~~~~~~~~~~~ In file included from ../cc/opencv4nodejs.cc:2: In file included from ../cc/ExternalMemTracking.h:1: ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found #include ^~~~~~~~~~~~~~~~~~ In file included from ../cc/ExternalMemTracking.cc:1: In file included from ../cc/ExternalMemTracking.h:1: ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. In file included from ../cc/core/Mat.cc:1: In file included from ../cc/opencv_modules.h:1: ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found #include ^~~~~~~~~~~~~~~~~~ make: *** [Release/obj.target/opencv4nodejs/cc/CustomMatAllocator.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from ../cc/core/coreConstants.cc:1: In file included from ../cc/core/coreConstants.h:1: ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. 1 error generated. make: *** [Release/obj.target/opencv4nodejs/cc/ExternalMemTracking.o] Error 1 make: *** [Release/obj.target/opencv4nodejs/cc/core/coreConstants.o] Error 1 In file included from ../cc/core/HistAxes.cc:5: In file included from ../cc/core/HistAxes.h:4: ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [Release/obj.target/opencv4nodejs/cc/core/HistAxes.o] Error 1 In file included from ../cc/core/Point.cc:1: In file included from ../cc/core/Point.h:1: ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [Release/obj.target/opencv4nodejs/cc/core/Point.o] Error 1 1 error generated. make: *** [Release/obj.target/opencv4nodejs/cc/core/core.o] Error 1 1 error generated. make: *** [Release/obj.target/opencv4nodejs/cc/core/Mat.o] Error 1 1 error generated. make: *** [Release/obj.target/opencv4nodejs/cc/opencv4nodejs.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/opt/homebrew/lib/node_modules/node-gyp/lib/build.js:201:23) gyp ERR! stack at ChildProcess.emit (node:events:527:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) gyp ERR! System Darwin 20.4.0 gyp ERR! command "/usr/local/bin/node" "/opt/homebrew/bin/node-gyp" "build" "--jobs" "max" "--release" gyp ERR! cwd /opt/homebrew/lib/node_modules/@u4/opencv4nodejs gyp ERR! node -v v16.16.0 gyp ERR! node-gyp -v v9.1.0 gyp ERR! not ok error: Error: Command failed: node-gyp build --jobs max --release gyp info it worked if it ends with ok gyp info using node-gyp@9.1.0 gyp info using node@16.16.0 | darwin | arm64 gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build', '--jobs', 8 ] In file included from ../cc/CustomMatAllocator.cc:1: In file included from ../cc/CustomMatAllocator.h:8: ../cc/core/Size.h:1:10: fatal error: 'opencv2/core.hpp' file not found #include ^~~~~~~~~~~~~~~~~~ In file included from ../cc/core/core.cc:1: In file included from ../cc/core/core.h:1: In file included from ../cc/core/Mat.h:1: In file included from ../cc/core/coreUtils.h:1: ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found #include ^~~~~~~~~~~~~~~~~~ In file included from ../cc/opencv4nodejs.cc:2: In file included from ../cc/ExternalMemTracking.h:1: ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found #include ^~~~~~~~~~~~~~~~~~ In file included from ../cc/ExternalMemTracking.cc:1: In file included from ../cc/ExternalMemTracking.h:1: ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. In file included from ../cc/core/Mat.cc:1: In file included from ../cc/opencv_modules.h:1: ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found #include ^~~~~~~~~~~~~~~~~~ make: *** [Release/obj.target/opencv4nodejs/cc/CustomMatAllocator.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from ../cc/core/coreConstants.cc:1: In file included from ../cc/core/coreConstants.h:1: ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. 1 error generated. make: *** [Release/obj.target/opencv4nodejs/cc/ExternalMemTracking.o] Error 1 make: *** [Release/obj.target/opencv4nodejs/cc/core/coreConstants.o] Error 1 In file included from ../cc/core/HistAxes.cc:5: In file included from ../cc/core/HistAxes.h:4: ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [Release/obj.target/opencv4nodejs/cc/core/HistAxes.o] Error 1 In file included from ../cc/core/Point.cc:1: In file included from ../cc/core/Point.h:1: ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [Release/obj.target/opencv4nodejs/cc/core/Point.o] Error 1 1 error generated. make: *** [Release/obj.target/opencv4nodejs/cc/core/core.o] Error 1 1 error generated. make: *** [Release/obj.target/opencv4nodejs/cc/core/Mat.o] Error 1 1 error generated. make: *** [Release/obj.target/opencv4nodejs/cc/opencv4nodejs.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/opt/homebrew/lib/node_modules/node-gyp/lib/build.js:201:23) gyp ERR! stack at ChildProcess.emit (node:events:527:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) gyp ERR! System Darwin 20.4.0 gyp ERR! command "/usr/local/bin/node" "/opt/homebrew/bin/node-gyp" "build" "--jobs" "max" "--release" gyp ERR! cwd /opt/homebrew/lib/node_modules/@u4/opencv4nodejs gyp ERR! node -v v16.16.0 gyp ERR! node-gyp -v v9.1.0 gyp ERR! not ok at ChildProcess.exithandler (node:child_process:398:12) at ChildProcess.emit (node:events:527:28) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:527:28) at Pipe. (node:net:709:12) { code: 1, killed: false, signal: null, cmd: 'node-gyp build --jobs max --release ' } ERR! install node-gyp failed and return Error Command failed: node-gyp build --jobs max --release ERR! install gyp info it worked if it ends with ok ERR! install gyp info using node-gyp@9.1.0 ERR! install gyp info using node@16.16.0 | darwin | arm64 ERR! install gyp info spawn make ERR! install gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build', '--jobs', 8 ] ERR! install In file included from ../cc/CustomMatAllocator.cc:1: ERR! install In file included from ../cc/CustomMatAllocator.h:8: ERR! install ../cc/core/Size.h:1:10: fatal error: 'opencv2/core.hpp' file not found ERR! install #include ERR! install ^~~~~~~~~~~~~~~~~~ ERR! install In file included from ../cc/core/core.cc:1: ERR! install In file included from ../cc/core/core.h:1: ERR! install In file included from ../cc/core/Mat.h:1: ERR! install In file included from ../cc/core/coreUtils.h:1: ERR! install ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found ERR! install #include ERR! install ^~~~~~~~~~~~~~~~~~ ERR! install In file included from ../cc/opencv4nodejs.cc:2: ERR! install In file included from ../cc/ExternalMemTracking.h:1: ERR! install ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found ERR! install #include ERR! install ^~~~~~~~~~~~~~~~~~ ERR! install In file included from ../cc/ExternalMemTracking.cc:1: ERR! install In file included from ../cc/ExternalMemTracking.h:1: ERR! install ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found ERR! install #include ERR! install ^~~~~~~~~~~~~~~~~~ ERR! install 1 error generated. ERR! install In file included from ../cc/core/Mat.cc:1: ERR! install In file included from ../cc/opencv_modules.h:1: ERR! install ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found ERR! install #include ERR! install ^~~~~~~~~~~~~~~~~~ ERR! install make: *** [Release/obj.target/opencv4nodejs/cc/CustomMatAllocator.o] Error 1 ERR! install make: *** Waiting for unfinished jobs.... ERR! install In file included from ../cc/core/coreConstants.cc:1: ERR! install In file included from ../cc/core/coreConstants.h:1: ERR! install ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found ERR! install #include ERR! install ^~~~~~~~~~~~~~~~~~ ERR! install 1 error generated. ERR! install 1 error generated. ERR! install make: *** [Release/obj.target/opencv4nodejs/cc/ExternalMemTracking.o] Error 1 ERR! install make: *** [Release/obj.target/opencv4nodejs/cc/core/coreConstants.o] Error 1 ERR! install In file included from ../cc/core/HistAxes.cc:5: ERR! install In file included from ../cc/core/HistAxes.h:4: ERR! install ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found ERR! install #include ERR! install ^~~~~~~~~~~~~~~~~~ ERR! install 1 error generated. ERR! install make: *** [Release/obj.target/opencv4nodejs/cc/core/HistAxes.o] Error 1 ERR! install In file included from ../cc/core/Point.cc:1: ERR! install In file included from ../cc/core/Point.h:1: ERR! install ../cc/macros.h:2:10: fatal error: 'opencv2/core.hpp' file not found ERR! install #include ERR! install ^~~~~~~~~~~~~~~~~~ ERR! install 1 error generated. ERR! install make: *** [Release/obj.target/opencv4nodejs/cc/core/Point.o] Error 1 ERR! install 1 error generated. ERR! install make: *** [Release/obj.target/opencv4nodejs/cc/core/core.o] Error 1 ERR! install 1 error generated. ERR! install make: *** [Release/obj.target/opencv4nodejs/cc/core/Mat.o] Error 1 ERR! install 1 error generated. ERR! install make: *** [Release/obj.target/opencv4nodejs/cc/opencv4nodejs.o] Error 1 ERR! install gyp ERR! build error ERR! install gyp ERR! stack Error: `make` failed with exit code: 2 ERR! install gyp ERR! stack at ChildProcess.onExit (/opt/homebrew/lib/node_modules/node-gyp/lib/build.js:201:23) ERR! install gyp ERR! stack at ChildProcess.emit (node:events:527:28) ERR! install gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) ERR! install gyp ERR! System Darwin 20.4.0 ERR! install gyp ERR! command "/usr/local/bin/node" "/opt/homebrew/bin/node-gyp" "build" "--jobs" "max" "--release" ERR! install gyp ERR! cwd /opt/homebrew/lib/node_modules/@u4/opencv4nodejs ERR! install gyp ERR! node -v v16.16.0 ERR! install gyp ERR! node-gyp -v v9.1.0 ERR! install gyp ERR! not ok ERR! install return code: 1