felixrieseberg / windows-build-tools

:package: Install C++ Build Tools for Windows using npm
MIT License
3.4k stars 236 forks source link

Failed at the opencv-build@0.1.9 install script. #226

Open spandey1296 opened 4 years ago

spandey1296 commented 4 years ago

opencv-build@0.1.9 install C:\Users\91727\Videos\Nodejs project\StreamVedioapp\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:\Users\91727\Videos\Nodejs project\StreamVedioapp\node_modules\opencv-build\opencv\auto-build.json C:\Users\91727\Videos\Nodejs project\StreamVedioapp\node_modules\opencv-build\opencv\auto-build.json info install failed to find auto-build.json: C:\Users\91727\Videos\Nodejs project\StreamVedioapp\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.28.0.windows.1 info install info install executing: cmake --version info install cmake --version: cmake version 3.18.3 info install info install CMake suite maintained and supported by Kitware (kitware.com/cmake). info install info find-msbuild failed to find vs2017 via powershell: unexpected powershell output info find-msbuild attempting to find msbuild via registry query... info find-msbuild trying the following msbuild paths: info find-msbuild version: 14, path: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe info find-msbuild version: 4, path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe info install using msbuild: { info install version: 14, info install path: 'C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe' info install } info install installing opencv version 3.4.6 into directory: C:\Users\91727\Videos\Nodejs project\StreamVedioapp\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 | 249.00 KiB/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

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 3961 (delta 673), pack-reused 0 Receiving objects: 100% (7328/7328), 81.32 MiB | 610.00 KiB/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

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:\Users\91727\Videos\Nodejs project\StreamVedioapp\node_modules\opencv-build\opencv\opencv', info install '-G', info install 'Visual Studio 14 2015 Win64', info install '-DCMAKE_INSTALL_PREFIX=C:\Users\91727\Videos\Nodejs project\StreamVedioapp\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:\Users\91727\Videos\Nodejs project\StreamVedioapp\node_modules\opencv-build\opencv\opencv_contrib\modules' info install ] -- Selecting Windows SDK version to target Windows 10.0.19041. CMake Error at CMakeLists.txt:135 (project): Failed to run MSBuild command:

C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe

to get the value of VCTargetsPath:

Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 10/1/2020 12:01:08 PM.
Project "C:\Users\91727\Videos\Nodejs project\StreamVedioapp\node_modules\opencv-build\opencv\build\CMakeFiles\3.18.3\VCTargetsPath.vcxproj" on node 1 (default targets).
C:\Users\91727\Videos\Nodejs project\StreamVedioapp\node_modules\opencv-build\opencv\build\CMakeFiles\3.18.3\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Done Building Project "C:\Users\91727\Videos\Nodejs project\StreamVedioapp\node_modules\opencv-build\opencv\build\CMakeFiles\3.18.3\VCTargetsPath.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Users\91727\Videos\Nodejs project\StreamVedioapp\node_modules\opencv-build\opencv\build\CMakeFiles\3.18.3\VCTargetsPath.vcxproj" (default target) (1) ->
  C:\Users\91727\Videos\Nodejs project\StreamVedioapp\node_modules\opencv-build\opencv\build\CMakeFiles\3.18.3\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.49

Exit code: 1

-- Configuring incomplete, errors occurred! See also "C:/Users/91727/Videos/Nodejs project/StreamVedioapp/node_modules/opencv-build/opencv/build/CMakeFiles/CMakeOutput.log". ERR! child process exited with code 1 (for more info, set '--loglevel silly') npm WARN stramlive_video@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"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\91727\AppData\Roaming\npm-cache_logs\2020-10-01T06_31_53_543Z-debug.log PS C:\Users\91727\Videos\Nodejs project\StreamVedioapp>

@insin