Skip to content

Try to build/example but get the error "error MSB8020: 无法找到 142 的生成工具(平台工具集 =“142”)" #1697

Answered by SuFIND
SuFIND asked this question in Q&A
Discussion options

You must be logged in to vote

using v142 replace 142

cmake ..\cpp -A x64 -T v142 `
-DOpenCV_DIR="D:\Deps\OpenCV-4.7.0\opencv\build\x64\vc16\lib\" `
-DMMDeploy_DIR="D:\project\mmdeploy-1.0.0rc1-windows-amd64-cuda11.1-tensorrt8.2.3.0\sdk\lib\cmake\MMDeploy" `
-DTENSORRT_DIR="D:\Deps\TensorRT-8.2.5.1" `
-DCUDNN_DIR="D:\Deps\CUDNN\v8.5.0.96"

it work for me.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lvhan028
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant