Installation on macOS Big Sur 11.2.3 failed!!!
Opened this issue · 1 comments
`❯ opencv_version
4.5.1
❯ npm install --save opencv4nodejs
opencv-build@0.1.9 install /Users/jocs/opencvjs/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/jocs/opencvjs/node_modules/opencv4nodejs
node ./install/install.js
info install OPENCV_LIB_DIR is not set, looking for default lib dir
info install using lib dir: /usr/local/lib
info install found the following libs:
info install core : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_core.4.5.1.dylib
info install highgui : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_highgui.4.5.1.dylib
info install imgcodecs : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_imgcodecs.4.5.1.dylib
info install imgproc : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_imgproc.4.5.1.dylib
info install features2d : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_features2d.4.5.1.dylib
info install calib3d : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_calib3d.4.5.1.dylib
info install photo : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_photo.4.5.1.dylib
info install objdetect : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_objdetect.4.5.1.dylib
info install ml : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_ml.4.5.1.dylib
info install video : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_video.4.5.1.dylib
info install videoio : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_videoio.4.5.1.dylib
info install videostab : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_videostab.4.5.1.dylib
info install dnn : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_dnn.4.5.1.dylib
info install face : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_face.4.5.1.dylib
info install text : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_text.4.5.1.dylib
info install tracking : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_tracking.4.5.1.dylib
info install xfeatures2d : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_xfeatures2d.4.5.1.dylib
info install ximgproc : /usr/local/Cellar/opencv/4.5.1_3/lib/libopencv_ximgproc.4.5.1.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/usr/local/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,/usr/local/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
CXX(target) Release/obj.target/opencv4nodejs/cc/core/Vec.o
CXX(target) Release/obj.target/opencv4nodejs/cc/core/Size.o
CXX(target) Release/obj.target/opencv4nodejs/cc/core/Rect.o
CXX(target) Release/obj.target/opencv4nodejs/cc/core/RotatedRect.o
In file included from ../cc/core/Size.cc:1:
In file included from ../cc/core/Size.h:2:
In file included from /Users/jocs/opencvjs/node_modules/native-node-utils/src/NativeNodeUtils.h:5:
/Users/jocs/opencvjs/node_modules/native-node-utils/src/Binding.h:10:14: warning: 'static' function 'executeSyncBinding' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration]
static void executeSyncBinding(std::shared_ptr worker, std::string methodName, Nan::NAN_METHOD_ARGS_TYPE info) {
^
/Users/jocs/opencvjs/node_modules/native-node-utils/src/Binding.h:25:14: warning: 'static' function 'executeAsyncBinding' declared in header file should be declared 'static inline' [-Wunneeded-internal-declaration]
static void executeAsyncBinding(std::shared_ptr worker, std::string methodName, Nan::NAN_METHOD_ARGS_TYPE info) {
^
In file included from ../cc/core/Rect.cc:1:
In file included from ../cc/core/Rect.h:1:
In file included from /usr/local/include/opencv4/opencv2/core.hpp:52:
In file included from /usr/local/include/opencv4/opencv2/core/cvdef.h:738:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/array:111:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:643:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3607:5: warning: destructor called on non-final 'RectBindings::AndWorker' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
_data.second().~_Tp();
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3573:9: note: in instantiation of member function 'std::__1::__shared_ptr_emplace<RectBindings::AndWorker, std::__1::allocatorRectBindings::AndWorker >::__on_zero_shared' requested here
__shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
^
............
............
............
............(many error lines)
`
node version 14.16.0
npm version 6.14.11
Python version 3.9.1
node-gyp version 7.1.2
OpenCV version 4.5.1
With OpenCV-contrib? (extra modules): no
OS: macOS Big Sur 11.2.3
+1