使用IE(推理引擎)编译时发生OpenCV生成错误

使用IE(推理引擎)编译时发生OpenCV生成错误,opencv,openvino,inference-engine,Opencv,Openvino,Inference Engine,OpenCV版本:4.4.0(最新) OpenVINO版本:2020.4(最新) 尝试在Windows 10上生成由CMake 3.18.0生成的项目时出错。 我曾多次尝试从头开始构建(清除所有缓存,更新源代码,重新安装OpenVINO工具包,并成功运行所有演示),但问题仍然存在 以下是VS 2019生成错误日志: 46>Done building project "opencv_dnn.vcxproj" -- FAILED. 73>LINK : fatal e

OpenCV版本:4.4.0(最新) OpenVINO版本:2020.4(最新)

尝试在Windows 10上生成由CMake 3.18.0生成的项目时出错。 我曾多次尝试从头开始构建(清除所有缓存,更新源代码,重新安装OpenVINO工具包,并成功运行所有演示),但问题仍然存在

以下是VS 2019生成错误日志:

46>Done building project "opencv_dnn.vcxproj" -- FAILED.

73>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\opencv_dnn440.lib'
75>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\opencv_dnn440.lib'
73>Done building project "opencv_text.vcxproj" -- FAILED.
81>------ Build started: Project: opencv_datasets, Configuration: Release x64 ------
82>------ Build started: Project: opencv_videostab, Configuration: Release x64 ------
75>Done building project "opencv_mcc.vcxproj" -- FAILED.

81>Done building project "opencv_datasets.vcxproj" -- FAILED.

88>Done building project "opencv_dnn_objdetect.vcxproj" -- FAILED.

87>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\opencv_datasets440.lib'
87>Done building project "opencv_tracking.vcxproj" -- FAILED.

94>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\opencv_tracking440.lib'
94>Done building project "opencv_stereo.vcxproj" -- FAILED.
95>cv2.cpp
95>D:\GitHub\opencv\opencv_contrib\modules\saliency\include\opencv2/saliency/saliencySpecializedClasses.hpp(1,1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
95>D:\GitHub\opencv\opencv_contrib\modules\datasets\include\opencv2/datasets/dataset.hpp(1,1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
93>LINK : fatal error LNK1181: cannot open input file '..\..\..\lib\Release\opencv_tracking440.lib'
93>Done building project "opencv_java.vcxproj" -- FAILED.
95>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\opencv_dnn_superres440.lib'
95>Done building project "opencv_python3.vcxproj" -- FAILED.
96>------ Build started: Project: ALL_BUILD, Configuration: Release x64 ------
96>Building Custom Rule D:/GitHub/opencv/opencv/CMakeLists.txt
在10月底失败了:

=============生成:86个成功,10个失败,0个最新,0个跳过===========

注意:在我能够使用IE构建OpenCV之前,没有任何错误,但在新版本中,在编译和构建时有许多错误

有什么解决办法吗

我准备提供更多的日志和信息,如果需要的话


谢谢

通过使用
ngraph
标志配置CMake并定位其CMake文件目录位置,解决了该问题