question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build opencv failed use v14.0 toolset

See original GitHub issue
       - uses: ilammy/msvc-dev-cmd@v1
         with:
          arch: ${{ matrix.arch }}
          toolset: 14.0

https://github.com/xmake-mirror/build-artifacts/runs/3065402363?check_suite_focus=true

67>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB6001: Invalid command line switch for “cmd.exe”. System.ArgumentException: Item has already been added. Key in dictionary: ‘WINDOWSSDKVERSION’ Key being added: ‘WindowsSDKVersion’ [C:\Users\runneradmin\AppData\Local.xmake\cache\packages\2107\o\opencv\4.5.2\source\opencv-4.5.2\build\ZERO_CHECK.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB6001: at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pzhlkj6612commented, Jul 17, 2021

Hi, @waruqi . Did you try to runs-on “windows-2016”? I found that the MSBuild versions are not the same on different runners.

Virtual Environment Package Version
windows-2019@win19/20210711.1 Microsoft.Component.MSBuild 16.5.29515.121
windows-2016@win16/20210711.1 15.7.27520.0
1reaction
pzhlkj6612commented, Jul 16, 2021

FYI, Search · Invalid command line switch for "cmd.exe" shows that there may be some bugs in MSBuild…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed at the opencv-build@0.0.14 install script on Win10 #406
Hi, I am having troubles to install opencv4node on my Win 10 machine (build 17134.254). It looks like the problem is while installing ......
Read more >
Failed to build opencv-python - Stack Overflow
I'm using pycharm. I created a virtual environment to use and when I tried to install the opencv library, I got an error...
Read more >
Opencv Build failed - C++
Hi,. I tried to build the (opencv _4.6.0 + contrib_4.6.0) with Cuda support (cuda compatibility 3.5) and Cuda SDK Toolkit 10.0. It failed...
Read more >
Build Tools v143 not found - Visual Studio Feedback
“error MSB8052: MSVC Toolset Version '14.30.30705' is not compatible with 'v142' Platform Toolset.” I downloaded and installed “Visual Studio 2022 Community ...
Read more >
Install OpenCV 4.5 on Raspberry Pi 4 - Q-engineering
The Python3 installation script is incorrectly modified. It will put all libraries in the wrong directory and Python will not find them. By ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found