Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opencv-mobile-3.4.20 源码编译window的包报错:此项目不包含配置和平台组合 Debug|Win32 #173

Open
yangy996 opened this issue Dec 14, 2024 · 0 comments

Comments

@yangy996
Copy link

编译命令:
cmake -G "Visual Studio 17 2022" -A x86 -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release -DENABLE_CXX11=OFF -DBUILD_ZLIB=OFF -DBUILD_TIFF=OFF -DBUILD_JASPER=OFF -DBUILD_JPEG=OFF -DBUILD_PNG=OFF -DBUILD_OPENEXR=OFF -DBUILD_WEBP=OFF -DBUILD_TBB=OFF -DBUILD_IPP_IW=OFF -DBUILD_ITT=OFF -DWITH_AVFOUNDATION=OFF -DWITH_CAP_IOS=OFF -DWITH_CAROTENE=OFF -DWITH_CPUFEATURES=OFF -DWITH_EIGEN=OFF -DWITH_FFMPEG=OFF -DWITH_GSTREAMER=OFF -DWITH_GTK=OFF -DWITH_IPP=OFF -DWITH_HALIDE=OFF -DWITH_INF_ENGINE=OFF -DWITH_NGRAPH=OFF -DWITH_JASPER=OFF -DWITH_JPEG=OFF -DWITH_WEBP=OFF -DWITH_OPENEXR=OFF -DWITH_PNG=OFF -DWITH_TIFF=OFF -DWITH_OPENVX=OFF -DWITH_GDCM=OFF -DWITH_TBB=OFF -DWITH_HPX=OFF -DWITH_OPENMP=ON -DWITH_PTHREADS_PF=OFF -DWITH_V4L=OFF -DWITH_CLP=OFF -DWITH_OPENCL=OFF -DWITH_OPENCL_SVM=OFF -DWITH_ITT=OFF -DWITH_PROTOBUF=OFF -DWITH_IMGCODEC_HDR=OFF -DWITH_IMGCODEC_SUNRASTER=OFF -DWITH_IMGCODEC_PXM=OFF -DWITH_QUIRC=OFF -DWITH_TENGINE=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_opencv_apps=OFF -DBUILD_ANDROID_PROJECTS=OFF -DBUILD_ANDROID_EXAMPLES=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_PACKAGE=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DBUILD_WITH_STATIC_CRT=OFF -DBUILD_FAT_JAVA_LIB=OFF -DBUILD_ANDROID_SERVICE=OFF -DBUILD_JAVA=OFF -DENABLE_PRECOMPILED_HEADERS=OFF -DENABLE_FAST_MATH=ON -DCV_TRACE=OFF -DBUILD_opencv_java=OFF -DBUILD_opencv_js=OFF -DBUILD_opencv_ts=OFF -DBUILD_opencv_python2=OFF -DBUILD_opencv_python3=OFF -DBUILD_opencv_dnn=OFF -DBUILD_opencv_imgcodecs=OFF -DBUILD_opencv_videoio=OFF -DBUILD_opencv_calib3d=OFF -DBUILD_opencv_flann=OFF -DBUILD_opencv_objdetect=OFF -DBUILD_opencv_stitching=OFF -DBUILD_opencv_ml=OFF -DBUILD_opencv_shape=OFF -DBUILD_opencv_superres=OFF -DBUILD_opencv_videostab=OFF -DBUILD_opencv_highgui=ON -DBUILD_opencv_features2d=OFF -DBUILD_opencv_photo=OFF -DBUILD_opencv_video=OFF -DBUILD_opencv_world=OFF -DWITH_OPENMP=OFF -DOPENCV_DISABLE_FILESYSTEM_SUPPORT=ON ..

报错:
Failed to run MSBuild command:

d:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe

to get the value of VCTargetsPath:

适用于 .NET Framework MSBuild 版本 17.11.9+a69bbaaf5
生成启动时间为 2024/12/15 0:48:02。

节点 1 上的项目“D:\WorkSpaceProjects\PycharmProjects\buildProject\opencv-mobile-3.4.20\build\CMakeFiles\3.31.2\VCTargetsPath.vcxproj”(默认目标)。
d:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(452,5): error MSB8013: 此项目不包含配置和平台组合 Debug|Win32。 [D:\WorkSpaceProjects\PycharmProjects\buildProject\opencv-mobile-3.4.20\build\CMakeFiles\3.31.2\VCTargetsPath.vcxproj]
已完成生成项目“D:\WorkSpaceProjects\PycharmProjects\buildProject\opencv-mobile-3.4.20\build\CMakeFiles\3.31.2\VCTargetsPath.vcxproj”(默认目标)的操作 - 失败。

生成失败。

“D:\WorkSpaceProjects\PycharmProjects\buildProject\opencv-mobile-3.4.20\build\CMakeFiles\3.31.2\VCTargetsPath.vcxproj”(默认目标) (1) ->
(PrepareForBuild 目标) ->
  d:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(452,5): error MSB8013: 此项目不包含配置和平台组合 Debug|Win32。 [D:\WorkSpaceProjects\PycharmProjects\buildProject\opencv-mobile-3.4.20\build\CMakeFiles\3.31.2\VCTargetsPath.vcxproj]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant