M1 macos big sur 11.4 error install
KrisBaymax opened this issue · 11 comments
node --version v14.17.3
npm --version 6.14.13
brew --version 3.2.2
1. brew install opencv@4
2. brew link --force opencv@4
3. export OPENCV4NODEJS_DISABLE_AUTOBUILD=1
4. npm install opencv4nodejs
Terminal output after excute step 4
Error Message
opencv-build@0.1.9 install /Users/timowan/node_modules/opencv-build
node ./install.js
info install OPENCV4NODEJS_DISABLE_AUTOBUILD is set
info install skipping auto build...
opencv4nodejs@5.6.0 install /Users/timowan/node_modules/opencv4nodejs
node ./install/install.js
info install using lib dir: /opt/homebrew/Cellar/opencv/4.5.3/lib
info install found the following libs:
info install core : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_core.4.5.3.dylib
info install highgui : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_highgui.4.5.3.dylib
info install imgcodecs : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_imgcodecs.4.5.3.dylib
info install imgproc : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_imgproc.4.5.3.dylib
info install features2d : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_features2d.4.5.3.dylib
info install calib3d : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_calib3d.4.5.3.dylib
info install photo : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_photo.4.5.3.dylib
info install objdetect : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_objdetect.4.5.3.dylib
info install ml : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_ml.4.5.3.dylib
info install video : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_video.4.5.3.dylib
info install videoio : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_videoio.4.5.3.dylib
info install videostab : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_videostab.4.5.3.dylib
info install dnn : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_dnn.4.5.3.dylib
info install face : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_face.4.5.3.dylib
info install text : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_text.4.5.3.dylib
info install tracking : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_tracking.4.5.3.dylib
info install xfeatures2d : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_xfeatures2d.4.5.3.dylib
info install ximgproc : /opt/homebrew/Cellar/opencv/4.5.3/lib/libopencv_ximgproc.4.5.3.dylib
info install OPENCV_INCLUDE_DIR is not set, looking for default include dir
info install setting the following defines:
info defines OPENCV4NODEJS_FOUND_LIBRARY_CORE
info defines OPENCV4NODEJS_FOUND_LIBRARY_HIGHGUI
info defines OPENCV4NODEJS_FOUND_LIBRARY_IMGCODECS
info defines OPENCV4NODEJS_FOUND_LIBRARY_IMGPROC
info defines OPENCV4NODEJS_FOUND_LIBRARY_FEATURES2D
info defines OPENCV4NODEJS_FOUND_LIBRARY_CALIB3D
info defines OPENCV4NODEJS_FOUND_LIBRARY_PHOTO
info defines OPENCV4NODEJS_FOUND_LIBRARY_OBJDETECT
info defines OPENCV4NODEJS_FOUND_LIBRARY_ML
info defines OPENCV4NODEJS_FOUND_LIBRARY_VIDEO
info defines OPENCV4NODEJS_FOUND_LIBRARY_VIDEOIO
info defines OPENCV4NODEJS_FOUND_LIBRARY_VIDEOSTAB
info defines OPENCV4NODEJS_FOUND_LIBRARY_DNN
info defines OPENCV4NODEJS_FOUND_LIBRARY_FACE
info defines OPENCV4NODEJS_FOUND_LIBRARY_TEXT
info defines OPENCV4NODEJS_FOUND_LIBRARY_TRACKING
info defines OPENCV4NODEJS_FOUND_LIBRARY_XFEATURES2D
info defines OPENCV4NODEJS_FOUND_LIBRARY_XIMGPROC
info install setting the following includes:
info includes /usr/local/include
info includes /usr/local/include/opencv4
info install setting the following libs:
info libs -L/opt/homebrew/Cellar/opencv/4.5.3/lib
info libs -lopencv_core
info libs -lopencv_highgui
info libs -lopencv_imgcodecs
info libs -lopencv_imgproc
info libs -lopencv_features2d
info libs -lopencv_calib3d
info libs -lopencv_photo
info libs -lopencv_objdetect
info libs -lopencv_ml
info libs -lopencv_video
info libs -lopencv_videoio
info libs -lopencv_videostab
info libs -lopencv_dnn
info libs -lopencv_face
info libs -lopencv_text
info libs -lopencv_tracking
info libs -lopencv_xfeatures2d
info libs -lopencv_ximgproc
info libs -Wl,-rpath,/opt/homebrew/Cellar/opencv/4.5.3/lib
info install spawning node gyp process: node-gyp rebuild --jobs max
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/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 <opencv2/core.hpp>
^~~~~~~~~~~~~~~~~~
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 <opencv2/core.hpp>
^~~~~~~~~~~~~~~~~~
1 error generated.
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 <opencv2/core.hpp>
^~~~~~~~~~~~~~~~~~
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 <opencv2/core.hpp>
^~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Release/obj.target/opencv4nodejs/cc/core/Point.o] Error 1
make: *** Waiting for unfinished jobs....
1 error generated.
make: *** [Release/obj.target/opencv4nodejs/cc/core/coreConstants.o] Error 1
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 <opencv2/core.hpp>
^~~~~~~~~~~~~~~~~~
make: *** [Release/obj.target/opencv4nodejs/cc/core/HistAxes.o] Error 1
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 <opencv2/core.hpp>
^~~~~~~~~~~~~~~~~~
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 <opencv2/core.hpp>
^~~~~~~~~~~~~~~~~~
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 <opencv2/core.hpp>
^~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Release/obj.target/opencv4nodejs/cc/ExternalMemTracking.o] Error 1
1 error generated.
make: *** [Release/obj.target/opencv4nodejs/cc/CustomMatAllocator.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 (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:375:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Darwin 20.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--jobs" "max"
gyp ERR! cwd /Users/timowan/node_modules/opencv4nodejs
gyp ERR! node -v v14.17.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
ERR! Error: Command failed: node-gyp rebuild --jobs max
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 <opencv2/core.hpp>
^~~~~~~~~~~~~~~~~~
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 <opencv2/core.hpp>
^~~~~~~~~~~~~~~~~~
1 error generated.
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 <opencv2/core.hpp>
^~~~~~~~~~~~~~~~~~
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 <opencv2/core.hpp>
^~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Release/obj.target/opencv4nodejs/cc/core/Point.o] Error 1
make: *** Waiting for unfinished jobs....
1 error generated.
make: *** [Release/obj.target/opencv4nodejs/cc/core/coreConstants.o] Error 1
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 <opencv2/core.hpp>
^~~~~~~~~~~~~~~~~~
make: *** [Release/obj.target/opencv4nodejs/cc/core/HistAxes.o] Error 1
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 <opencv2/core.hpp>
^~~~~~~~~~~~~~~~~~
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 <opencv2/core.hpp>
^~~~~~~~~~~~~~~~~~
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 <opencv2/core.hpp>
^~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Release/obj.target/opencv4nodejs/cc/ExternalMemTracking.o] Error 1
1 error generated.
make: *** [Release/obj.target/opencv4nodejs/cc/CustomMatAllocator.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 (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:375:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Darwin 20.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--jobs" "max"
gyp ERR! cwd /Users/timowan/node_modules/opencv4nodejs
gyp ERR! node -v v14.17.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN timowan No description
npm WARN timowan No repository field.
npm WARN timowan No license field.
- opencv4nodejs@5.6.0
updated 1 package and audited 30 packages in 7.341s
found 0 vulnerabilities
I got almost the same output
0 verbose cli [
0 verbose cli '/usr/local/Cellar/node/16.3.0/bin/node',
0 verbose cli '/usr/local/bin/npm',
0 verbose cli 'install',
0 verbose cli '-g',
0 verbose cli 'opencv4nodejs@4.1.0',
0 verbose cli '--allow-root',
0 verbose cli '--unsafe-perm=true'
0 verbose cli ]
1 info using npm@7.15.1
2 info using node@v16.3.0
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 3ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/Users/rct/Documents/.npmrc Completed in 0ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:/Users/rct/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 9ms
19 timing npm:load:configload Completed in 9ms
20 timing npm:load:setTitle Completed in 3ms
21 timing npm:load:setupLog Completed in 1ms
22 timing npm:load:cleanupLog Completed in 3ms
23 timing npm:load:configScope Completed in 0ms
24 timing npm:load:projectScope Completed in 0ms
25 timing npm:load Completed in 17ms
26 timing config:load:flatten Completed in 2ms
27 timing arborist:ctor Completed in 1ms
28 timing idealTree:init Completed in 9ms
29 timing idealTree:userRequests Completed in 5ms
30 silly idealTree buildDeps
31 silly fetch manifest opencv4nodejs@4.1.0
32 http fetch GET 200 https://registry.npmjs.org/opencv4nodejs 17ms (from cache)
33 silly placeDep ROOT opencv4nodejs@4.1.0 OK for: want: 4.1.0
34 silly fetch manifest macro-inferno@^0.2.1
35 silly fetch manifest nan@^2.7.0
36 silly fetch manifest native-node-utils@0.0.4
37 silly fetch manifest opencv-build@0.0.11
38 silly fetch manifest @types/node@>6
39 http fetch GET 200 https://registry.npmjs.org/nan 26ms (from cache)
40 http fetch GET 200 https://registry.npmjs.org/native-node-utils 27ms (from cache)
41 http fetch GET 200 https://registry.npmjs.org/opencv-build 26ms (from cache)
42 http fetch GET 200 https://registry.npmjs.org/macro-inferno 30ms (from cache)
43 http fetch GET 200 https://registry.npmjs.org/@types%2fnode 31ms (from cache)
44 timing idealTree:#root Completed in 69ms
45 silly placeDep node_modules/opencv4nodejs @types/node@16.7.10 OK for: opencv4nodejs@4.1.0 want: >6
46 silly placeDep node_modules/opencv4nodejs macro-inferno@0.2.3 OK for: opencv4nodejs@4.1.0 want: ^0.2.1
47 silly placeDep node_modules/opencv4nodejs nan@2.15.0 OK for: opencv4nodejs@4.1.0 want: ^2.7.0
48 silly placeDep node_modules/opencv4nodejs native-node-utils@0.0.4 OK for: opencv4nodejs@4.1.0 want: 0.0.4
49 silly placeDep node_modules/opencv4nodejs opencv-build@0.0.11 OK for: opencv4nodejs@4.1.0 want: 0.0.11
50 silly fetch manifest npmlog@^4.1.2
51 http fetch GET 200 https://registry.npmjs.org/npmlog 6ms (from cache)
52 timing idealTree:node_modules/opencv4nodejs Completed in 15ms
53 timing idealTree:node_modules/opencv4nodejs/node_modules/@types/node Completed in 0ms
54 timing idealTree:node_modules/opencv4nodejs/node_modules/macro-inferno Completed in 0ms
55 timing idealTree:node_modules/opencv4nodejs/node_modules/nan Completed in 0ms
56 timing idealTree:node_modules/opencv4nodejs/node_modules/native-node-utils Completed in 0ms
57 silly placeDep node_modules/opencv4nodejs npmlog@4.1.2 OK for: opencv-build@0.0.11 want: ^4.1.2
58 silly fetch manifest are-we-there-yet@~1.1.2
59 silly fetch manifest console-control-strings@~1.1.0
60 silly fetch manifest gauge@~2.7.3
61 silly fetch manifest set-blocking@~2.0.0
62 http fetch GET 200 https://registry.npmjs.org/are-we-there-yet 14ms (from cache)
63 http fetch GET 200 https://registry.npmjs.org/console-control-strings 13ms (from cache)
64 http fetch GET 200 https://registry.npmjs.org/set-blocking 14ms (from cache)
65 http fetch GET 200 https://registry.npmjs.org/gauge 17ms (from cache)
66 timing idealTree:node_modules/opencv4nodejs/node_modules/opencv-build Completed in 23ms
67 silly placeDep node_modules/opencv4nodejs are-we-there-yet@1.1.5 OK for: npmlog@4.1.2 want: ~1.1.2
68 silly placeDep node_modules/opencv4nodejs console-control-strings@1.1.0 OK for: npmlog@4.1.2 want: ~1.1.0
69 silly placeDep node_modules/opencv4nodejs gauge@2.7.4 OK for: npmlog@4.1.2 want: ~2.7.3
70 silly placeDep node_modules/opencv4nodejs set-blocking@2.0.0 OK for: npmlog@4.1.2 want: ~2.0.0
71 silly fetch manifest delegates@^1.0.0
72 silly fetch manifest readable-stream@^2.0.6
73 silly fetch manifest aproba@^1.0.3
74 silly fetch manifest has-unicode@^2.0.0
75 silly fetch manifest object-assign@^4.1.0
76 silly fetch manifest signal-exit@^3.0.0
77 silly fetch manifest string-width@^1.0.1
78 silly fetch manifest strip-ansi@^3.0.1
79 silly fetch manifest wide-align@^1.1.0
80 http fetch GET 200 https://registry.npmjs.org/aproba 27ms (from cache)
81 http fetch GET 200 https://registry.npmjs.org/has-unicode 26ms (from cache)
82 http fetch GET 200 https://registry.npmjs.org/readable-stream 30ms (from cache)
83 http fetch GET 200 https://registry.npmjs.org/delegates 33ms (from cache)
84 http fetch GET 200 https://registry.npmjs.org/object-assign 30ms (from cache)
85 http fetch GET 200 https://registry.npmjs.org/strip-ansi 32ms (from cache)
86 http fetch GET 200 https://registry.npmjs.org/wide-align 33ms (from cache)
87 http fetch GET 200 https://registry.npmjs.org/string-width 36ms (from cache)
88 http fetch GET 200 https://registry.npmjs.org/signal-exit 38ms (from cache)
89 timing idealTree:node_modules/opencv4nodejs/node_modules/npmlog Completed in 50ms
90 silly placeDep node_modules/opencv4nodejs delegates@1.0.0 OK for: are-we-there-yet@1.1.5 want: ^1.0.0
91 silly placeDep node_modules/opencv4nodejs readable-stream@2.3.7 OK for: are-we-there-yet@1.1.5 want: ^2.0.6
92 silly fetch manifest core-util-is@~1.0.0
93 silly fetch manifest inherits@~2.0.3
94 silly fetch manifest isarray@~1.0.0
95 silly fetch manifest process-nextick-args@~2.0.0
96 silly fetch manifest safe-buffer@~5.1.1
97 silly fetch manifest string_decoder@~1.1.1
98 silly fetch manifest util-deprecate@~1.0.1
99 http fetch GET 200 https://registry.npmjs.org/process-nextick-args 19ms (from cache)
100 http fetch GET 200 https://registry.npmjs.org/inherits 20ms (from cache)
101 http fetch GET 200 https://registry.npmjs.org/core-util-is 22ms (from cache)
102 http fetch GET 200 https://registry.npmjs.org/isarray 21ms (from cache)
103 http fetch GET 200 https://registry.npmjs.org/string_decoder 21ms (from cache)
104 http fetch GET 200 https://registry.npmjs.org/util-deprecate 21ms (from cache)
105 http fetch GET 200 https://registry.npmjs.org/safe-buffer 24ms (from cache)
106 timing idealTree:node_modules/opencv4nodejs/node_modules/are-we-there-yet Completed in 29ms
107 timing idealTree:node_modules/opencv4nodejs/node_modules/console-control-strings Completed in 0ms
108 timing idealTree:node_modules/opencv4nodejs/node_modules/delegates Completed in 0ms
109 silly placeDep node_modules/opencv4nodejs aproba@1.2.0 OK for: gauge@2.7.4 want: ^1.0.3
110 silly placeDep node_modules/opencv4nodejs has-unicode@2.0.1 OK for: gauge@2.7.4 want: ^2.0.0
111 silly placeDep node_modules/opencv4nodejs object-assign@4.1.1 OK for: gauge@2.7.4 want: ^4.1.0
112 silly placeDep node_modules/opencv4nodejs signal-exit@3.0.3 OK for: gauge@2.7.4 want: ^3.0.0
113 silly placeDep node_modules/opencv4nodejs string-width@1.0.2 OK for: gauge@2.7.4 want: ^1.0.1
114 silly placeDep node_modules/opencv4nodejs strip-ansi@3.0.1 OK for: gauge@2.7.4 want: ^3.0.1
115 silly placeDep node_modules/opencv4nodejs wide-align@1.1.3 OK for: gauge@2.7.4 want: ^1.1.0
116 silly fetch manifest code-point-at@^1.0.0
117 silly fetch manifest is-fullwidth-code-point@^1.0.0
118 silly fetch manifest ansi-regex@^2.0.0
119 http fetch GET 200 https://registry.npmjs.org/is-fullwidth-code-point 12ms (from cache)
120 http fetch GET 200 https://registry.npmjs.org/ansi-regex 13ms (from cache)
121 http fetch GET 200 https://registry.npmjs.org/code-point-at 15ms (from cache)
122 timing idealTree:node_modules/opencv4nodejs/node_modules/gauge Completed in 24ms
123 timing idealTree:node_modules/opencv4nodejs/node_modules/aproba Completed in 0ms
124 timing idealTree:node_modules/opencv4nodejs/node_modules/has-unicode Completed in 0ms
125 timing idealTree:node_modules/opencv4nodejs/node_modules/object-assign Completed in 0ms
126 silly placeDep node_modules/opencv4nodejs core-util-is@1.0.3 OK for: readable-stream@2.3.7 want: ~1.0.0
127 silly placeDep node_modules/opencv4nodejs inherits@2.0.4 OK for: readable-stream@2.3.7 want: ~2.0.3
128 silly placeDep node_modules/opencv4nodejs isarray@1.0.0 OK for: readable-stream@2.3.7 want: ~1.0.0
129 silly placeDep node_modules/opencv4nodejs process-nextick-args@2.0.1 OK for: readable-stream@2.3.7 want: ~2.0.0
130 silly placeDep node_modules/opencv4nodejs safe-buffer@5.1.2 OK for: readable-stream@2.3.7 want: ~5.1.1
131 silly placeDep node_modules/opencv4nodejs string_decoder@1.1.1 OK for: readable-stream@2.3.7 want: ~1.1.1
132 silly placeDep node_modules/opencv4nodejs util-deprecate@1.0.2 OK for: readable-stream@2.3.7 want: ~1.0.1
133 timing idealTree:node_modules/opencv4nodejs/node_modules/readable-stream Completed in 9ms
134 timing idealTree:node_modules/opencv4nodejs/node_modules/core-util-is Completed in 0ms
135 timing idealTree:node_modules/opencv4nodejs/node_modules/inherits Completed in 0ms
136 timing idealTree:node_modules/opencv4nodejs/node_modules/isarray Completed in 0ms
137 timing idealTree:node_modules/opencv4nodejs/node_modules/process-nextick-args Completed in 0ms
138 timing idealTree:node_modules/opencv4nodejs/node_modules/safe-buffer Completed in 0ms
139 timing idealTree:node_modules/opencv4nodejs/node_modules/set-blocking Completed in 0ms
140 timing idealTree:node_modules/opencv4nodejs/node_modules/signal-exit Completed in 1ms
141 timing idealTree:node_modules/opencv4nodejs/node_modules/string_decoder Completed in 0ms
142 silly placeDep node_modules/opencv4nodejs code-point-at@1.1.0 OK for: string-width@1.0.2 want: ^1.0.0
143 silly placeDep node_modules/opencv4nodejs is-fullwidth-code-point@1.0.0 OK for: string-width@1.0.2 want: ^1.0.0
144 silly fetch manifest number-is-nan@^1.0.0
145 http fetch GET 200 https://registry.npmjs.org/number-is-nan 3ms (from cache)
146 timing idealTree:node_modules/opencv4nodejs/node_modules/string-width Completed in 7ms
147 timing idealTree:node_modules/opencv4nodejs/node_modules/code-point-at Completed in 0ms
148 silly placeDep node_modules/opencv4nodejs number-is-nan@1.0.1 OK for: is-fullwidth-code-point@1.0.0 want: ^1.0.0
149 timing idealTree:node_modules/opencv4nodejs/node_modules/is-fullwidth-code-point Completed in 1ms
150 timing idealTree:node_modules/opencv4nodejs/node_modules/number-is-nan Completed in 0ms
151 silly placeDep node_modules/opencv4nodejs ansi-regex@2.1.1 OK for: strip-ansi@3.0.1 want: ^2.0.0
152 timing idealTree:node_modules/opencv4nodejs/node_modules/strip-ansi Completed in 1ms
153 timing idealTree:node_modules/opencv4nodejs/node_modules/ansi-regex Completed in 0ms
154 timing idealTree:node_modules/opencv4nodejs/node_modules/util-deprecate Completed in 0ms
155 timing idealTree:node_modules/opencv4nodejs/node_modules/wide-align Completed in 0ms
156 timing idealTree:buildDeps Completed in 231ms
157 timing idealTree:fixDepFlags Completed in 1ms
158 timing idealTree Completed in 246ms
159 timing reify:loadTrees Completed in 249ms
160 timing reify:diffTrees Completed in 2ms
161 silly reify moves {}
162 timing reify:retireShallow Completed in 0ms
163 timing reify:createSparse Completed in 71ms
164 timing reify:loadBundles Completed in 0ms
165 silly audit bulk request {
165 silly audit opencv4nodejs: [ '4.1.0' ],
165 silly audit '@types/node': [ '16.7.10' ],
165 silly audit 'macro-inferno': [ '0.2.3' ],
165 silly audit nan: [ '2.15.0' ],
165 silly audit 'native-node-utils': [ '0.0.4' ],
165 silly audit 'opencv-build': [ '0.0.11' ],
165 silly audit npmlog: [ '4.1.2' ],
165 silly audit 'are-we-there-yet': [ '1.1.5' ],
165 silly audit 'console-control-strings': [ '1.1.0' ],
165 silly audit gauge: [ '2.7.4' ],
165 silly audit 'set-blocking': [ '2.0.0' ],
165 silly audit delegates: [ '1.0.0' ],
165 silly audit 'readable-stream': [ '2.3.7' ],
165 silly audit aproba: [ '1.2.0' ],
165 silly audit 'has-unicode': [ '2.0.1' ],
165 silly audit 'object-assign': [ '4.1.1' ],
165 silly audit 'signal-exit': [ '3.0.3' ],
165 silly audit 'string-width': [ '1.0.2' ],
165 silly audit 'strip-ansi': [ '3.0.1' ],
165 silly audit 'wide-align': [ '1.1.3' ],
165 silly audit 'core-util-is': [ '1.0.3' ],
165 silly audit inherits: [ '2.0.4' ],
165 silly audit isarray: [ '1.0.0' ],
165 silly audit 'process-nextick-args': [ '2.0.1' ],
165 silly audit 'safe-buffer': [ '5.1.2' ],
165 silly audit string_decoder: [ '1.1.1' ],
165 silly audit 'util-deprecate': [ '1.0.2' ],
165 silly audit 'code-point-at': [ '1.1.0' ],
165 silly audit 'is-fullwidth-code-point': [ '1.0.0' ],
165 silly audit 'number-is-nan': [ '1.0.1' ],
165 silly audit 'ansi-regex': [ '2.1.1' ]
165 silly audit }
166 timing reifyNode:node_modules/opencv4nodejs/node_modules/code-point-at Completed in 194ms
167 timing reifyNode:node_modules/opencv4nodejs/node_modules/ansi-regex Completed in 195ms
168 timing reifyNode:node_modules/opencv4nodejs/node_modules/number-is-nan Completed in 195ms
169 timing reifyNode:node_modules/opencv4nodejs/node_modules/is-fullwidth-code-point Completed in 195ms
170 timing reifyNode:node_modules/opencv4nodejs/node_modules/process-nextick-args Completed in 195ms
171 timing reifyNode:node_modules/opencv4nodejs/node_modules/wide-align Completed in 195ms
172 timing reifyNode:node_modules/opencv4nodejs/node_modules/string-width Completed in 195ms
173 timing reifyNode:node_modules/opencv4nodejs/node_modules/object-assign Completed in 195ms
174 timing reifyNode:node_modules/opencv4nodejs/node_modules/aproba Completed in 195ms
175 timing reifyNode:node_modules/opencv4nodejs/node_modules/has-unicode Completed in 195ms
176 timing reifyNode:node_modules/opencv4nodejs/node_modules/strip-ansi Completed in 195ms
177 timing reifyNode:node_modules/opencv4nodejs/node_modules/inherits Completed in 218ms
178 timing reifyNode:node_modules/opencv4nodejs/node_modules/set-blocking Completed in 220ms
179 timing reifyNode:node_modules/opencv4nodejs/node_modules/console-control-strings Completed in 220ms
180 timing reifyNode:node_modules/opencv4nodejs/node_modules/util-deprecate Completed in 222ms
181 timing reifyNode:node_modules/opencv4nodejs/node_modules/signal-exit Completed in 221ms
182 timing reifyNode:node_modules/opencv4nodejs/node_modules/safe-buffer Completed in 225ms
183 timing reifyNode:node_modules/opencv4nodejs/node_modules/core-util-is Completed in 225ms
184 timing reifyNode:node_modules/opencv4nodejs/node_modules/npmlog Completed in 283ms
185 timing reifyNode:node_modules/opencv4nodejs/node_modules/isarray Completed in 285ms
186 timing reifyNode:node_modules/opencv4nodejs/node_modules/string_decoder Completed in 288ms
187 timing reifyNode:node_modules/opencv4nodejs/node_modules/delegates Completed in 290ms
188 timing reifyNode:node_modules/opencv4nodejs/node_modules/are-we-there-yet Completed in 292ms
189 timing reifyNode:node_modules/opencv4nodejs/node_modules/macro-inferno Completed in 295ms
190 timing reifyNode:node_modules/opencv4nodejs/node_modules/native-node-utils Completed in 295ms
191 timing reifyNode:node_modules/opencv4nodejs/node_modules/opencv-build Completed in 303ms
192 timing reifyNode:node_modules/opencv4nodejs/node_modules/gauge Completed in 307ms
193 timing reifyNode:node_modules/opencv4nodejs/node_modules/readable-stream Completed in 318ms
194 timing reifyNode:node_modules/opencv4nodejs/node_modules/nan Completed in 341ms
195 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 381ms
196 timing auditReport:getReport Completed in 382ms
197 silly audit report {}
198 timing auditReport:init Completed in 0ms
199 timing reify:audit Completed in 383ms
200 timing reifyNode:node_modules/opencv4nodejs/node_modules/@types/node Completed in 388ms
201 timing reifyNode:node_modules/opencv4nodejs Completed in 628ms
202 timing reify:unpack Completed in 629ms
203 timing reify:unretire Completed in 0ms
204 timing build:queue Completed in 3ms
205 info run opencv4nodejs@4.1.0 install node_modules/opencv4nodejs node-gyp rebuild
206 info run opencv-build@0.0.11 install node_modules/opencv4nodejs/node_modules/opencv-build node ./install.js
207 info run opencv4nodejs@4.1.0 install { code: 1, signal: null }
208 timing reify:rollback:createSparse Completed in 176ms
209 timing reify:rollback:retireShallow Completed in 0ms
210 timing command:install Completed in 4737ms
211 verbose stack Error: command failed
211 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
211 verbose stack at ChildProcess.emit (node:events:394:28)
211 verbose stack at maybeClose (node:internal/child_process:1067:16)
211 verbose stack at Socket.<anonymous> (node:internal/child_process:453:11)
211 verbose stack at Socket.emit (node:events:394:28)
211 verbose stack at Pipe.<anonymous> (node:net:661:12)
212 verbose pkgid opencv4nodejs@4.1.0
213 verbose cwd /Users/rct/Documents/prod
214 verbose Darwin 20.5.0
215 verbose argv "/usr/local/Cellar/node/16.3.0/bin/node" "/usr/local/bin/npm" "install" "-g" "opencv4nodejs@4.1.0" "--allow-root" "--unsafe-perm=true"
216 verbose node v16.3.0
217 verbose npm v7.15.1
218 error code 1
219 error path /usr/local/lib/node_modules/opencv4nodejs
220 error command failed
221 error command sh -c node-gyp rebuild
222 error CXX(target) Release/obj.target/opencv4nodejs/cc/opencv4nodejs.o
223 error gyp info it worked if it ends with ok
223 error gyp info using node-gyp@7.1.2
223 error gyp info using node@16.3.0 | darwin | x64
223 error gyp info find Python using Python version 3.9.5 found at "/usr/local/opt/python@3.9/bin/python3.9"
223 error (node:31766) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
223 error (Use `node --trace-deprecation ...` to show where the warning was created)
223 error gyp info spawn /usr/local/opt/python@3.9/bin/python3.9
223 error gyp info spawn args [
223 error gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
223 error gyp info spawn args 'binding.gyp',
223 error gyp info spawn args '-f',
223 error gyp info spawn args 'make',
223 error gyp info spawn args '-I',
223 error gyp info spawn args '/usr/local/lib/node_modules/opencv4nodejs/build/config.gypi',
223 error gyp info spawn args '-I',
223 error gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
223 error gyp info spawn args '-I',
223 error gyp info spawn args '/Users/rct/Library/Caches/node-gyp/16.3.0/include/node/common.gypi',
223 error gyp info spawn args '-Dlibrary=shared_library',
223 error gyp info spawn args '-Dvisibility=default',
223 error gyp info spawn args '-Dnode_root_dir=/Users/rct/Library/Caches/node-gyp/16.3.0',
223 error gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
223 error gyp info spawn args '-Dnode_lib_file=/Users/rct/Library/Caches/node-gyp/16.3.0/<(target_arch)/node.lib',
223 error gyp info spawn args '-Dmodule_root_dir=/usr/local/lib/node_modules/opencv4nodejs',
223 error gyp info spawn args '-Dnode_engine=v8',
223 error gyp info spawn args '--depth=.',
223 error gyp info spawn args '--no-parallel',
223 error gyp info spawn args '--generator-output',
223 error gyp info spawn args 'build',
223 error gyp info spawn args '-Goutput_dir=.'
223 error gyp info spawn args ]
223 error No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
223 error
223 error No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
223 error
223 error No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
223 error
223 error gyp info spawn make
223 error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
223 error In file included from ../cc/opencv4nodejs.cc:1:
223 error In file included from /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/node.h:63:
223 error In file included from /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:30:
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8-internal.h:452:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?
223 error !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
223 error ~~~~~^~~~~~~~~~~
223 error remove_cv
223 error /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:776:50: note: 'remove_cv' declared here
223 error template <class _Tp> struct _LIBCPP_TEMPLATE_VIS remove_cv
223 error ^
223 error In file included from ../cc/opencv4nodejs.cc:2:
223 error In file included from ../cc/ExternalMemTracking.h:1:
223 error In file included from ../cc/macros.h:1:
223 error In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/macro-inferno/src/macro-inferno.h:2:
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/macro-inferno/src/ff_marshalling.h:17:40: error: no viable conversion from 'v8::Local<v8::Context>' to 'v8::Isolate *'
223 error struct FF_TYPE(BOOL, bool, FF_IS_BOOL, FF_CAST_BOOL);
223 error ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/macro-inferno/src/ff_marshalling.h:12:11: note: expanded from macro 'FF_TYPE'
223 error return ff_castType(val); \
223 error ^~~~~~~~~~~~~~~~
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/macro-inferno/src/ff.h:16:42: note: expanded from macro 'FF_CAST_BOOL'
223 error #define FF_CAST_BOOL(val) val->ToBoolean(Nan::GetCurrentContext()).ToLocalChecked()->Value()
223 error ^~~~~~~~~~~~~~~~~~~~~~~~
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:3057:37: note: passing argument to parameter 'isolate' here
223 error Local<Boolean> ToBoolean(Isolate* isolate) const;
223 error ^
223 error In file included from ../cc/opencv4nodejs.cc:2:
223 error In file included from ../cc/ExternalMemTracking.h:1:
223 error ../cc/macros.h:136:21: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
223 error for (int i = 0; i < jsArray->Length(); i++) {
223 error ~ ^ ~~~~~~~~~~~~~~~~~
223 error In file included from ../cc/opencv4nodejs.cc:2:
223 error In file included from ../cc/ExternalMemTracking.h:2:
223 error In file included from ../cc/CustomMatAllocator.h:7:
223 error In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/Converters.h:1:
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/TypeConverters.h:25:28: error: too few arguments to function call, single argument 'context' was not specified
223 error return jsVal->Int32Value();
223 error ~~~~~~~~~~~~~~~~~ ^
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:3078:40: note: 'Int32Value' declared here
223 error V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
223 error ^
223 error In file included from ../cc/opencv4nodejs.cc:2:
223 error In file included from ../cc/ExternalMemTracking.h:2:
223 error In file included from ../cc/CustomMatAllocator.h:7:
223 error In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/Converters.h:1:
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/TypeConverters.h:43:29: error: too few arguments to function call, single argument 'context' was not specified
223 error return jsVal->Uint32Value();
223 error ~~~~~~~~~~~~~~~~~~ ^
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:3075:41: note: 'Uint32Value' declared here
223 error V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
223 error ^
223 error In file included from ../cc/opencv4nodejs.cc:2:
223 error In file included from ../cc/ExternalMemTracking.h:2:
223 error In file included from ../cc/CustomMatAllocator.h:7:
223 error In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/Converters.h:1:
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/TypeConverters.h:60:36: error: too few arguments to function call, single argument 'context' was not specified
223 error return (float)jsVal->NumberValue();
223 error ~~~~~~~~~~~~~~~~~~ ^
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:3070:39: note: 'NumberValue' declared here
223 error V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
223 error ^
223 error In file included from ../cc/opencv4nodejs.cc:2:
223 error In file included from ../cc/ExternalMemTracking.h:2:
223 error In file included from ../cc/CustomMatAllocator.h:7:
223 error In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/Converters.h:1:
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/TypeConverters.h:78:30: error: too few arguments to function call, single argument 'isolate' was not specified
223 error return jsVal->BooleanValue();
223 error ~~~~~~~~~~~~~~~~~~~ ^
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:3067:8: note: 'BooleanValue' declared here
223 error bool BooleanValue(Isolate* isolate) const;
223 error ^
223 error In file included from ../cc/opencv4nodejs.cc:2:
223 error In file included from ../cc/ExternalMemTracking.h:2:
223 error In file included from ../cc/CustomMatAllocator.h:7:
223 error In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/Converters.h:1:
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/TypeConverters.h:95:29: error: too few arguments to function call, single argument 'context' was not specified
223 error return jsVal->NumberValue();
223 error ~~~~~~~~~~~~~~~~~~ ^
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:3070:39: note: 'NumberValue' declared here
223 error V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
223 error ^
223 error In file included from ../cc/opencv4nodejs.cc:2:
223 error In file included from ../cc/ExternalMemTracking.h:2:
223 error In file included from ../cc/CustomMatAllocator.h:7:
223 error In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/Converters.h:1:
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/TypeConverters.h:113:36: error: too few arguments to function call, single argument 'context' was not specified
223 error return (float)jsVal->NumberValue();
223 error ~~~~~~~~~~~~~~~~~~ ^
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:3070:39: note: 'NumberValue' declared here
223 error V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
223 error ^
223 error In file included from ../cc/opencv4nodejs.cc:2:
223 error In file included from ../cc/ExternalMemTracking.h:2:
223 error In file included from ../cc/CustomMatAllocator.h:7:
223 error In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/Converters.h:1:
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/TypeConverters.h:131:55: error: too few arguments to function call, single argument 'context' was not specified
223 error return std::string(*Nan::Utf8String(jsVal->ToString()));
223 error ~~~~~~~~~~~~~~~ ^
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:3019:44: note: 'ToString' declared here
223 error V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
223 error ^
223 error In file included from ../cc/opencv4nodejs.cc:2:
223 error In file included from ../cc/ExternalMemTracking.h:2:
223 error In file included from ../cc/CustomMatAllocator.h:7:
223 error In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/Converters.h:2:
223 error In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/ArrayConverters.h:2:
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/InstanceConverter.h:18:57: error: too few arguments to function call, single argument 'context' was not specified
223 error return Nan::ObjectWrap::Unwrap<Clazz>(jsVal->ToObject())->getNativeObject();
223 error ~~~~~~~~~~~~~~~ ^
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:3031:44: note: 'ToObject' declared here
223 error V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
223 error ^
223 error In file included from ../cc/opencv4nodejs.cc:2:
223 error In file included from ../cc/ExternalMemTracking.h:2:
223 error In file included from ../cc/CustomMatAllocator.h:7:
223 error In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/Converters.h:2:
223 error In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/ArrayConverters.h:2:
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/InstanceConverter.h:22:57: error: too few arguments to function call, single argument 'context' was not specified
223 error return Nan::ObjectWrap::Unwrap<Clazz>(jsVal->ToObject())->getNativeObjectPtr();
223 error ~~~~~~~~~~~~~~~ ^
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:3031:44: note: 'ToObject' declared here
223 error V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
223 error ^
223 error In file included from ../cc/opencv4nodejs.cc:2:
223 error In file included from ../cc/ExternalMemTracking.h:2:
223 error In file included from ../cc/CustomMatAllocator.h:7:
223 error In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/Converters.h:2:
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/ArrayConverters.h:21:41: error: no matching member function for call to 'Get'
223 error if (!Converter::assertType(jsArr->Get(i))) {
223 error ~~~~~~~^~~
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:3973:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
223 error V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
223 error ^
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:3976:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
223 error V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
223 error ^
223 error In file included from ../cc/opencv4nodejs.cc:2:
223 error In file included from ../cc/ExternalMemTracking.h:2:
223 error In file included from ../cc/CustomMatAllocator.h:7:
223 error In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/Converters.h:2:
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/ArrayConverters.h:33:54: error: no matching member function for call to 'Get'
223 error CastType obj = (CastType)Converter::unwrap(jsArr->Get(i));
223 error ~~~~~~~^~~
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:3973:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
223 error V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
223 error ^
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:3976:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
223 error V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
223 error ^
223 error In file included from ../cc/opencv4nodejs.cc:2:
223 error In file included from ../cc/ExternalMemTracking.h:2:
223 error In file included from ../cc/CustomMatAllocator.h:7:
223 error In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/Converters.h:2:
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/ArrayConverters.h:76:72: error: no matching member function for call to 'Get'
223 error if (ArrayConverterType<Converter, T, CastType>::unwrap(&vec, jsArr->Get(i))) {
223 error ~~~~~~~^~~
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:3973:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
223 error V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
223 error ^
223 error /Users/rct/Library/Caches/node-gyp/16.3.0/include/node/v8.h:3976:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
223 error V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
223 error ^
223 error In file included from ../cc/opencv4nodejs.cc:2:
223 error In file included from ../cc/ExternalMemTracking.h:2:
223 error In file included from ../cc/CustomMatAllocator.h:7:
223 error In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/Converters.h:2:
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/ArrayConverters.h:73:21: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
223 error for (int i = 0; i < jsArr->Length(); i++) {
223 error ~ ^ ~~~~~~~~~~~~~~~
223 error /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/ArrayConverters.h:87:21: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
223 error for (int i = 0; i < jsArr->Length(); i++) {
223 error ~ ^ ~~~~~~~~~~~~~~~
223 error In file included from ../cc/opencv4nodejs.cc:2:
223 error In file included from ../cc/ExternalMemTracking.h:2:
223 error In file included from ../cc/CustomMatAllocator.h:8:
223 error ../cc/core/Size.h:1:10: fatal error: 'opencv2/core.hpp' file not found
223 error #include <opencv2/core.hpp>
223 error ^~~~~~~~~~~~~~~~~~
223 error 3 warnings and 15 errors generated.
223 error make: *** [Release/obj.target/opencv4nodejs/cc/opencv4nodejs.o] Error 1
223 error gyp ERR! build error
223 error gyp ERR! stack Error: `make` failed with exit code: 2
223 error gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
223 error gyp ERR! stack at ChildProcess.emit (node:events:394:28)
223 error gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
223 error gyp ERR! System Darwin 20.5.0
223 error gyp ERR! command "/usr/local/Cellar/node/16.3.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
223 error gyp ERR! cwd /usr/local/lib/node_modules/opencv4nodejs
223 error gyp ERR! node -v v16.3.0
223 error gyp ERR! node-gyp -v v7.1.2
223 error gyp ERR! not ok
224 verbose exit 1
Also getting similar issue on Mac m1 mini. Have tried terminal in Rosetta mode also, no luck
the same issue for long time without any solution
This may help: #538 (comment)
I got opencv4nodejs working on my M1 Max MacBook running node.js@v16.
223 error ../cc/core/Size.h:1:10: fatal error: 'opencv2/core.hpp' file not found
You're right. This failed because export OPENCV4NODEJS_DISABLE_AUTOBUILD=1
wasn't set before installing.
Hi,
Great news for those people that do not want to build their OpenCV:
I published @u4/opencv4nodejs V 6.2.4 today,
This version autodetects the common setup path for Brew on Mac, Chocolatey on Windows, and Apt on Linux.
- Windows:
choco install opencv
- Mac:
brew install opencv
- debian:
apt -y install libopencv-contrib-dev libopencv-dev
just define environment variable: OPENCV4NODEJS_DISABLE_AUTOBUILD=1
And your prebuild OpenCV will be used.
You may need to call:
npx build-opencv rebuild
or
npx build-opencv --nobuild rebuild
(if you do not define OPENCV4NODEJS_DISABLE_AUTOBUILD variable)
npx build-opencv rebuild
> npx build-opencv rebuild
env: node\r: No such file or directory
M1 Pro
I'm working in cross-environment, currently on M1,
send me the lines to reproduce the error, I will be happy to fix it.
send me the lines to reproduce the error, I will be happy to fix it.
Can you maybe setup a minimal demo nodejs project with a package.json and a index.js to test it out?
hi y'all, as of today once you've installed:
brew install cmake
you then need to set a few overrides for cmake to injest at build time:
export CXXFLAGS="-std=c++17 -Wno-register -Wno-dynamic-exception-spec -Wno-c++11-narrowing"
this will overwrite the needed errors and then set the correct std lib.
Hi, Great news for those people that do not want to build their OpenCV: I published @u4/opencv4nodejs V 6.2.4 today,
This version autodetects the common setup path for Brew on Mac, Chocolatey on Windows, and Apt on Linux.
- Windows:
choco install opencv
- Mac:
brew install opencv
- debian:
apt -y install libopencv-contrib-dev libopencv-dev
just define environment variable: OPENCV4NODEJS_DISABLE_AUTOBUILD=1
And your prebuild OpenCV will be used.
You may need to call:
npx build-opencv rebuild
ornpx build-opencv --nobuild rebuild
(if you do not define OPENCV4NODEJS_DISABLE_AUTOBUILD variable)
I perform this action and still have this error
Error: Cannot find module '/Users/myproject/node_modules/opencv4nodejs/build/Release/opencv4nodejs
mac m1
node 18.16.1
npm 9.8.1