[Windows] Unhandled 'error' event when installing library
Opened this issue · 0 comments
Error Message
Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\15.0\Bin\MSBuild.exe ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:269:19)
at onErrorNT (node:internal/child_process:467:16)
at processTicksAndRejections (node:internal/process/task_queues:80:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:275:12)
at onErrorNT (node:internal/child_process:467:16)
at processTicksAndRejections (node:internal/process/task_queues:80:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\15.0\Bin\MSBuild.exe',
path: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\15.0\Bin\MSBuild.exe',
spawnargs: [ './OpenCV.sln', '/p:Configuration=Release', '/p:Platform=x64' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! opencv-build@0.1.9 install: node ./install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the opencv-build@0.1.9 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ASD\AppData\Roaming\npm-cache_logs\2020-12-03T17_12_39_528Z-debug.log
Info: Process exited with code 1
Auto Build - Full Error Log
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\Users\ASD\Project> sudo npm install --global opencv4nodejs
Terminate batch job (Y/N)? PS C:\Users\ASD\Project> npm install --global opencv4nodejs
> opencv-build@0.1.9 install C:\Program Files\nodejs\node_modules\opencv4nodejs\node_modules\opencv-build
> node ./install.js
info install if you want to use an own OpenCV installation set OPENCV4NODEJS_DISABLE_AUTOBUILD
info readAutoBuildFile file does not exists: C:\Program Files\nodejs\node_modules\opencv4nodejs\node_modules\opencv-build\opencv\auto-build.json C:\Program Files\nodejs\node_modules\opencv4nodejs\node_modules\opencv-build\opencv\auto-build.json
info install failed to find auto-build.json: C:\Program Files\nodejs\node_modules\opencv4nodejs\node_modules\opencv-build\opencv\auto-build.json
info install
info install running install script...
info install
info install opencv version: 3.4.6
info install with opencv contrib: yes
info install custom build flags:
info install
info install executing: git --version
info install git --version: git version 2.29.2.windows.2
info install
info install executing: cmake --version
info install cmake --version: cmake version 3.18.20081302-MSVC_2
info install
info install CMake suite maintained and supported by Kitware (kitware.com/cmake).
info install
info install using msbuild: {
info install path: 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\MSBuild\\15.0\\Bin\\MSBuild.exe',
info install version: 15
info install }
info install installing opencv version 3.4.6 into directory: C:\Program Files\nodejs\node_modules\opencv4nodejs\node_modules\opencv-build\opencv
Cloning into 'opencv_contrib'...
remote: Enumerating objects: 2160, done.
remote: Counting objects: 100% (2160/2160), done.
remote: Compressing objects: 100% (1916/1916), done.
remote: Total 2160 (delta 365), reused 1101 (delta 134), pack-reused 0
Receiving objects: 100% (2160/2160), 50.82 MiB | 2.44 MiB/s, done.
Resolving deltas: 100% (365/365), done.
Note: switching to 'f26c98365da6af93cb5e49397b571190fca7bb55'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
Updating files: 100% (1780/1780), done.
Cloning into 'opencv'...
remote: Enumerating objects: 7328, done.
remote: Counting objects: 100% (7328/7328), done.
remote: Compressing objects: 100% (6279/6279), done.
remote: Total 7328 (delta 1164), reused 3958 (delta 673), pack-reused 0
Receiving objects: 100% (7328/7328), 81.32 MiB | 3.08 MiB/s, done.
Resolving deltas: 100% (1164/1164), done.
Note: switching to '33b765d7979fd8a6038026aa44f6ff1a9c082b7b'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
Updating files: 100% (6080/6080), done.
info install running cmake [
info install 'C:\\Program Files\\nodejs\\node_modules\\opencv4nodejs\\node_modules\\opencv-build\\opencv\\opencv',
info install '-G',
info install 'Visual Studio 15 2017 Win64',
info install '-DCMAKE_INSTALL_PREFIX=C:\\Program Files\\nodejs\\node_modules\\opencv4nodejs\\node_modules\\opencv-build\\opencv\\build',
info install '-DCMAKE_BUILD_TYPE=Release',
info install '-DBUILD_EXAMPLES=OFF',
info install '-DBUILD_DOCS=OFF',
info install '-DBUILD_TESTS=OFF',
info install '-DBUILD_PERF_TESTS=OFF',
info install '-DBUILD_JAVA=OFF',
info install '-DCUDA_NVCC_FLAGS=--expt-relaxed-constexpr',
info install '-DBUILD_opencv_apps=OFF',
info install '-DBUILD_opencv_aruco=OFF',
info install '-DBUILD_opencv_bgsegm=OFF',
info install '-DBUILD_opencv_bioinspired=OFF',
info install '-DBUILD_opencv_ccalib=OFF',
info install '-DBUILD_opencv_datasets=OFF',
info install '-DBUILD_opencv_dnn_objdetect=OFF',
info install '-DBUILD_opencv_dpm=OFF',
info install '-DBUILD_opencv_fuzzy=OFF',
info install '-DBUILD_opencv_hfs=OFF',
info install '-DBUILD_opencv_java_bindings_generator=OFF',
info install '-DBUILD_opencv_js=OFF',
info install '-DBUILD_opencv_img_hash=OFF',
info install '-DBUILD_opencv_line_descriptor=OFF',
info install '-DBUILD_opencv_optflow=OFF',
info install '-DBUILD_opencv_phase_unwrapping=OFF',
info install '-DBUILD_opencv_python3=OFF',
info install '-DBUILD_opencv_python_bindings_generator=OFF',
info install '-DBUILD_opencv_reg=OFF',
info install '-DBUILD_opencv_rgbd=OFF',
info install '-DBUILD_opencv_saliency=OFF',
info install '-DBUILD_opencv_shape=OFF',
info install '-DBUILD_opencv_stereo=OFF',
info install '-DBUILD_opencv_stitching=OFF',
info install '-DBUILD_opencv_structured_light=OFF',
info install '-DBUILD_opencv_superres=OFF',
info install '-DBUILD_opencv_surface_matching=OFF',
info install '-DBUILD_opencv_ts=OFF',
info install '-DBUILD_opencv_xobjdetect=OFF',
info install '-DBUILD_opencv_xphoto=OFF',
info install '-DWITH_VTK=OFF',
info install '-DOPENCV_ENABLE_NONFREE=ON',
info install '-DOPENCV_EXTRA_MODULES_PATH=C:\\Program Files\\nodejs\\node_modules\\opencv4nodejs\\node_modules\\opencv-build\\opencv\\opencv_contrib\\modules'
info install ]
-- The CXX compiler identification is MSVC 19.16.27044.0
-- The C compiler identification is MSVC 19.16.27044.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test HAVE_CXX11 (check file: cmake/checks/cxx11.cpp)
-- Performing Test HAVE_CXX11 - Success
-- Found PythonInterp: C:/ProgramData/chocolatey/bin/python2.7.exe (found suitable version "2.7.9", minimum required is "2.7")
-- Could NOT find PythonLibs: Found unsuitable version "2.7.15", but required is exact version "2.7.9" (found C:/Users/ASD/.windows-build-tools/python27/libs/python27.lib)
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named numpy.distutils
-- Found PythonInterp: C:/Python39/python.exe (found suitable version "3.9", minimum required is "3.2")
-- Found PythonLibs: C:/Python39/libs/python39.lib (found suitable exact version "3.9.0")
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'
-- Performing Test HAVE_CPU_SSE3_SUPPORT (check file: cmake/checks/cpu_sse3.cpp)
-- Performing Test HAVE_CPU_SSE3_SUPPORT - Success
-- Performing Test HAVE_CPU_SSSE3_SUPPORT (check file: cmake/checks/cpu_ssse3.cpp)
-- Performing Test HAVE_CPU_SSSE3_SUPPORT - Success
-- Performing Test HAVE_CPU_SSE4_1_SUPPORT (check file: cmake/checks/cpu_sse41.cpp)
-- Performing Test HAVE_CPU_SSE4_1_SUPPORT - Success
-- Performing Test HAVE_CPU_POPCNT_SUPPORT (check file: cmake/checks/cpu_popcnt.cpp)
-- Performing Test HAVE_CPU_POPCNT_SUPPORT - Success
-- Performing Test HAVE_CPU_SSE4_2_SUPPORT (check file: cmake/checks/cpu_sse42.cpp)
-- Performing Test HAVE_CPU_SSE4_2_SUPPORT - Success
-- Performing Test HAVE_CXX_ARCH:AVX (check file: cmake/checks/cpu_fp16.cpp)
-- Performing Test HAVE_CXX_ARCH:AVX - Success
-- Performing Test HAVE_CXX_ARCH:AVX2 (check file: cmake/checks/cpu_avx2.cpp)
-- Performing Test HAVE_CXX_ARCH:AVX2 - Success
-- Performing Test HAVE_CPU_AVX_512F_SUPPORT (check file: cmake/checks/cpu_avx512.cpp)
-- Performing Test HAVE_CPU_AVX_512F_SUPPORT - Failed
-- AVX_512F is not supported by C++ compiler
-- Performing Test HAVE_CPU_AVX512_SKX_SUPPORT (check file: cmake/checks/cpu_avx512skx.cpp)
-- Performing Test HAVE_CPU_AVX512_SKX_SUPPORT - Failed
-- AVX512_SKX is not supported by C++ compiler
-- Dispatch optimization AVX512_SKX is not available, skipped
-- Performing Test HAVE_CPU_BASELINE_FLAGS
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 - Success
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Searching 16 bit integer - Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for fseeko
-- Looking for fseeko - not found
-- Check size of off64_t
-- Check size of off64_t - failed
-- libjpeg-turbo: VERSION = 2.0.2, BUILD = opencv-3.4.6-libjpeg-turbo
-- Check size of size_t
-- Check size of size_t - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Looking for include file intrin.h
-- Looking for include file intrin.h - found
-- Looking for assert.h
-- Looking for assert.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for io.h
-- Looking for io.h - found
-- Looking for limits.h
-- Looking for limits.h - found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for search.h
-- Looking for search.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Performing Test C_HAS_inline
-- Performing Test C_HAS_inline - Success
-- Check size of signed short
-- Check size of signed short - done
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Check size of signed int
-- Check size of signed int - done
-- Check size of unsigned int
-- Check size of unsigned int - done
-- Check size of signed long
-- Check size of signed long - done
-- Check size of signed long long
-- Check size of signed long long - done
-- Check size of unsigned long long
-- Check size of unsigned long long - done
-- Check size of unsigned char *
-- Check size of unsigned char * - done
-- Check size of ptrdiff_t
-- Check size of ptrdiff_t - done
-- Looking for memmove
-- Looking for memmove - not found
-- Looking for setmode
-- Looking for setmode - found
-- Looking for strcasecmp
-- Looking for strcasecmp - not found
-- Looking for strchr
-- Looking for strchr - found
-- Looking for strrchr
-- Looking for strrchr - found
-- Looking for strstr
-- Looking for strstr - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for lfind
-- Looking for lfind - found
-- Performing Test HAVE_SNPRINTF
-- Performing Test HAVE_SNPRINTF - Success
-- Check if the system is big endian
-- Searching 16 bit integer
-- Searching 16 bit integer - Using unsigned short
-- Check if the system is big endian - little endian
-- FFMPEG: Download: opencv_ffmpeg.dll
-- FFMPEG: Download: opencv_ffmpeg_64.dll
-- FFMPEG: Download: ffmpeg_version.cmake
-- Looking for Mfapi.h
-- Looking for Mfapi.h - found
-- Looking for D3D11.h
-- Looking for D3D11.h - found
-- Looking for D3d11_4.h
-- Looking for D3d11_4.h - found
-- IPPICV: Download: ippicv_2019_win_intel64_20180723_general.zip
-- found Intel IPP (ICV version): 2019.0.0 [2019.0.0 Gold]
-- at: C:/Program Files/nodejs/node_modules/opencv4nodejs/node_modules/opencv-build/opencv/build/3rdparty/ippicv/ippicv_win/icv
-- found Intel IPP Integration Wrappers sources: 2019.0.0
-- at: C:/Program Files/nodejs/node_modules/opencv4nodejs/node_modules/opencv-build/opencv/build/3rdparty/ippicv/ippicv_win/iw
-- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Could NOT find BLAS (missing: BLAS_LIBRARIES)
-- LAPACK requires BLAS
-- A library with LAPACK API not found. Please specify library location.
-- OpenCV Python: during development append to PYTHONPATH: C:/Program Files/nodejs/node_modules/opencv4nodejs/node_modules/opencv-build/opencv/build/python_loader
-- Caffe: NO
-- Protobuf: NO
-- Glog: NO
-- freetype2: NO
-- harfbuzz: NO
-- Module opencv_ovis disabled because OGRE3D was not found
-- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
-- Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
-- Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
-- Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
-- Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
-- Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
-- Excluding from source files list: modules/imgproc/src/sumpixels.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp
-- Tesseract: NO
-- xfeatures2d/boostdesc: Download: boostdesc_bgm.i
-- xfeatures2d/boostdesc: Download: boostdesc_bgm_bi.i
-- xfeatures2d/boostdesc: Download: boostdesc_bgm_hd.i
-- xfeatures2d/boostdesc: Download: boostdesc_binboost_064.i
-- xfeatures2d/boostdesc: Download: boostdesc_binboost_128.i
-- xfeatures2d/boostdesc: Download: boostdesc_binboost_256.i
-- xfeatures2d/boostdesc: Download: boostdesc_lbgm.i
-- xfeatures2d/vgg: Download: vgg_generated_48.i
-- xfeatures2d/vgg: Download: vgg_generated_64.i
-- xfeatures2d/vgg: Download: vgg_generated_80.i
-- xfeatures2d/vgg: Download: vgg_generated_120.i
-- data: Download: face_landmark_model.dat
--
-- General configuration for OpenCV 3.4.6 =====================================
-- Version control: 3.4.6
--
-- Extra modules:
-- Location (extra): C:/Program Files/nodejs/node_modules/opencv4nodejs/node_modules/opencv-build/opencv/opencv_contrib/modules
-- Version control (extra): 3.4.6
--
-- Platform:
-- Timestamp: 2020-12-03T19:07:46Z
-- Host: Windows 10.0.19041 AMD64
-- CMake: 3.18.20081302-MSVC_2
-- CMake generator: Visual Studio 15 2017 Win64
-- CMake build tool: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin/MSBuild.exe
-- MSVC: 1916
--
-- CPU/HW features:
-- Baseline: SSE SSE2 SSE3
-- requested: SSE3
-- Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2
-- requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
-- SSE4_1 (12 files): + SSSE3 SSE4_1
-- SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2
-- FP16 (0 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
-- AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
-- AVX2 (26 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
--
-- C/C++:
-- Built as dynamic libs?: YES
-- C++11: YES
-- C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe (ver 19.16.27044.0)
-- C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP8 /MD /O2 /Ob2 /DNDEBUG
-- C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP8 /MDd /Zi /Ob0 /Od /RTC1
-- C Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP8 /MD /O2 /Ob2 /DNDEBUG
-- C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP8 /MDd /Zi /Ob0 /Od /RTC1
-- Linker flags (Release): /machine:x64 /INCREMENTAL:NO
-- Linker flags (Debug): /machine:x64 /debug /INCREMENTAL
-- ccache: NO
-- Precompiled headers: YES
-- Extra dependencies:
-- 3rdparty dependencies:
--
-- OpenCV modules:
-- To be built: calib3d core dnn face features2d flann highgui imgcodecs imgproc ml objdetect photo plot text tracking video videoio videostab xfeatures2d ximgproc
-- Disabled: aruco bgsegm bioinspired ccalib datasets dnn_objdetect dpm fuzzy hfs img_hash java_bindings_generator line_descriptor optflow phase_unwrapping python_bindings_generator reg rgbd saliency shape stereo stitching structured_light superres surface_matching world xobjdetect xphoto
-- Disabled by dependency: -
-- Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype hdf java js matlab ovis python2 python3 sfm ts viz
-- Applications: -
-- Documentation: NO
-- Non-free algorithms: YES
--
-- Windows RT support: NO
--
-- GUI:
-- Win32 UI: YES
--
-- Media I/O:
-- ZLib: build (ver 1.2.11)
-- JPEG: build-libjpeg-turbo (ver 2.0.2-62)
-- WEBP: build (ver encoder: 0x020e)
-- PNG: build (ver 1.6.36)
-- TIFF: build (ver 42 - 4.0.10)
-- JPEG 2000: build (ver 1.900.1)
-- OpenEXR: build (ver 1.7.1)
-- HDR: YES
-- SUNRASTER: YES
-- PXM: YES
--
-- Video I/O:
-- DC1394: NO
-- FFMPEG: YES (prebuilt binaries)
-- avcodec: YES (ver 57.107.100)
-- avformat: YES (ver 57.83.100)
-- avutil: YES (ver 55.78.100)
-- swscale: YES (ver 4.8.100)
-- avresample: YES (ver 3.7.0)
-- GStreamer: NO
-- DirectShow: YES
-- Media Foundation: YES
-- DXVA: YES
--
-- Parallel framework: Concurrency
--
-- Trace: YES (with Intel ITT)
--
-- Other third-party libraries:
-- Intel IPP: 2019.0.0 Gold [2019.0.0]
-- at: C:/Program Files/nodejs/node_modules/opencv4nodejs/node_modules/opencv-build/opencv/build/3rdparty/ippicv/ippicv_win/icv
-- Intel IPP IW: sources (2019.0.0)
-- at: C:/Program Files/nodejs/node_modules/opencv4nodejs/node_modules/opencv-build/opencv/build/3rdparty/ippicv/ippicv_win/iw
-- Lapack: NO
-- Eigen: NO
-- Custom HAL: NO
-- Protobuf: build (3.5.1)
--
-- OpenCL: YES (NVD3D11)
-- Include path: C:/Program Files/nodejs/node_modules/opencv4nodejs/node_modules/opencv-build/opencv/opencv/3rdparty/include/opencl/1.2
-- Link libraries: Dynamic load
--
-- Python (for build): C:/ProgramData/chocolatey/bin/python2.7.exe
--
-- Install to: C:/Program Files/nodejs/node_modules/opencv4nodejs/node_modules/opencv-build/opencv/build
-- -----------------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Program Files/nodejs/node_modules/opencv4nodejs/node_modules/opencv-build/opencv/build
info install starting build...
node:events:353
throw er; // Unhandled 'error' event
^
Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\15.0\Bin\MSBuild.exe ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:269:19)
at onErrorNT (node:internal/child_process:467:16)
at processTicksAndRejections (node:internal/process/task_queues:80:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:275:12)
at onErrorNT (node:internal/child_process:467:16)
at processTicksAndRejections (node:internal/process/task_queues:80:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\MSBuild\\15.0\\Bin\\MSBuild.exe',
path: 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\MSBuild\\15.0\\Bin\\MSBuild.exe',
spawnargs: [ './OpenCV.sln', '/p:Configuration=Release', '/p:Platform=x64' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! opencv-build@0.1.9 install: `node ./install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the opencv-build@0.1.9 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ASD\AppData\Roaming\npm-cache\_logs\2020-12-03T19_07_54_334Z-debug.log
PS C:\Users\ASD\Project
OpenCV version: 4.1.2
With OpenCV-contrib? (extra modules): yes/no? no
OS: Windows 10