opencv4nodejs icon indicating copy to clipboard operation
opencv4nodejs copied to clipboard

M1 Mac with Macos Ventura stuck at 40% install

Open baditaflorin opened this issue 2 years ago • 3 comments

npx build-opencv rebuild


^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
[ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/softfloat.cpp.o
/Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/opencv/modules/core/src/persistence_xml.cpp:211:25: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                        sprintf( data, "#x%02x", (uchar)c );
                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
/Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/opencv/modules/core/src/persistence_xml.cpp:312:13: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
            sprintf( ptr, "<!-- %s -->", comment );
            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
/Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/opencv/modules/core/src/persistence_xml.cpp:347:13: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
            sprintf( ptr, "-->" );
            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
[ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/split.dispatch.cpp.o
[ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/stat.dispatch.cpp.o
3 warnings generated.
[ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/stat_c.cpp.o
[ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/stl.cpp.o
/Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/opencv/modules/core/src/persistence_yml.cpp:43:13: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
            sprintf(buf, "!!binary |");
            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
/Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/opencv/modules/core/src/persistence_yml.cpp:52:17: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf( buf, "!!%s %c", type_name, c );
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
/Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/opencv/modules/core/src/persistence_yml.cpp:62:13: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
            sprintf( buf, "!!%s", type_name );
            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
/Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/opencv/modules/core/src/persistence_yml.cpp:155:25: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                        sprintf( data, "x%02x", c );
                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
4 warnings generated.
[ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/sum.dispatch.cpp.o
[ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o
[ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/tables.cpp.o
[ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/trace.cpp.o
[ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/types.cpp.o
[ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/umatrix.cpp.o
[ 39%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/utils/datafile.cpp.o
9 warnings generated.
[ 40%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/utils/filesystem.cpp.o
3 warnings generated.
[ 40%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/utils/logtagconfigparser.cpp.o
[ 40%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/utils/logtagmanager.cpp.o
/Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/opencv/modules/core/src/system.cpp:1381:5: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
    sprintf(buf, "Unknown %s code %d", status >= 0 ? "status":"error", status);
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
[ 40%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/utils/samples.cpp.o
[ 40%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/opencl_kernels_core.cpp.o
[ 40%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/va_intel.cpp.o
1 warning generated.
[ 40%] Linking CXX shared library ../../lib/libopencv_core.dylib
[ 40%] Built target opencv_core
make: *** [all] Error 2
ERR! build Compilation failed, previous calls:
ERR! build rimraf /Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/build /Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/opencv /Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/opencv_contrib
ERR! build mkdir -p /Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/build
ERR! build cd /Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea
ERR! build git clone --quiet -b 4.6.0 --single-branch --depth 1 --progress https://github.com/opencv/opencv_contrib.git /Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/opencv_contrib
ERR! build git clone --quiet -b 4.6.0 --single-branch --depth 1 --progress https://github.com/opencv/opencv.git /Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/opencv
ERR! build export OPENCV_BIN_DIR=/Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/build/bin
ERR! build export OPENCV_INCLUDE_DIR=
ERR! build export OPENCV_LIB_DIR=/Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/build/lib
ERR! build cd /Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/build
ERR! build cmake /Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/opencv -DCMAKE_INSTALL_PREFIX=/Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_TYPES=Release -DBUILD_EXAMPLES=OFF -DBUILD_DOCS=OFF -DBUILD_TESTS=OFF -DBUILD_opencv_dnn=ON -DENABLE_FAST_MATH=ON -DBUILD_PERF_TESTS=OFF -DBUILD_JAVA=OFF -DBUILD_ZLIB=OFF -DCUDA_NVCC_FLAGS=--expt-relaxed-constexpr -DWITH_VTK=OFF -DOPENCV_ENABLE_NONFREE=ON -DOPENCV_EXTRA_MODULES_PATH=/Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/opencv_contrib/modules -DBUILD_opencv_apps=OFF -DBUILD_opencv_aruco=OFF -DBUILD_opencv_bgsegm=OFF -DBUILD_opencv_bindings_generator=OFF -DBUILD_opencv_bioinspired=OFF -DBUILD_opencv_calib3d=ON -DBUILD_opencv_ccalib=OFF -DBUILD_opencv_core=ON -DBUILD_opencv_datasets=OFF -DBUILD_opencv_dnn=ON -DBUILD_opencv_dnn_objdetect=OFF -DBUILD_opencv_dpm=OFF -DBUILD_opencv_face=ON -DBUILD_opencv_features2d=ON -DBUILD_opencv_flann=ON -DBUILD_opencv_fuzzy=OFF -DBUILD_opencv_gapi=ON -DBUILD_opencv_hfs=OFF -DBUILD_opencv_highgui=ON -DBUILD_opencv_img_hash=ON -DBUILD_opencv_imgcodecs=ON -DBUILD_opencv_imgproc=ON -DBUILD_opencv_java_bindings_generator=OFF -DBUILD_opencv_js=OFF -DBUILD_opencv_line_descriptor=OFF -DBUILD_opencv_ml=ON -DBUILD_opencv_objc_bindings_generator=OFF -DBUILD_opencv_objdetect=ON -DBUILD_opencv_optflow=OFF -DBUILD_opencv_phase_unwrapping=OFF -DBUILD_opencv_photo=ON -DBUILD_opencv_python3=OFF -DBUILD_opencv_python_bindings_generator=OFF -DBUILD_opencv_python_tests=ON -DBUILD_opencv_reg=OFF -DBUILD_opencv_rgbd=OFF -DBUILD_opencv_saliency=OFF -DBUILD_opencv_shape=OFF -DBUILD_opencv_stereo=OFF -DBUILD_opencv_stitching=OFF -DBUILD_opencv_structured_light=OFF -DBUILD_opencv_superres=OFF -DBUILD_opencv_surface_matching=OFF -DBUILD_opencv_text=ON -DBUILD_opencv_tracking=ON -DBUILD_opencv_ts=OFF -DBUILD_opencv_video=ON -DBUILD_opencv_videoio=ON -DBUILD_opencv_videostab=ON -DBUILD_opencv_wechat_qrcode=OFF -DBUILD_opencv_world=OFF -DBUILD_opencv_xfeatures2d=ON -DBUILD_opencv_ximgproc=ON -DBUILD_opencv_xobjdetect=OFF -DBUILD_opencv_xphoto=OFF
ERR! build cd /Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/build
ERR! build make install -j10
ERR! install running: make install -j10
ERR! install in /Users/florin/Documents/GITHUB_PROJECTS/scrape_hub/src/node/node_modules/@u4/opencv-build/dist/opencv-4.6.0-8b1ea/build exited with code 2 (for more info, set '--loglevel silly')

baditaflorin avatar Oct 03 '23 23:10 baditaflorin

Same here! Did you find a solution?

MendleM avatar Nov 14 '23 11:11 MendleM

Same to me, any suggestions?

cqq626 avatar Jan 03 '24 06:01 cqq626

Same to me, any suggestions?

zehuiguan avatar Feb 27 '24 12:02 zehuiguan