Closed SimonRelu closed 1 year ago
The build error seems to be coming from these lines:
Could you try setting the ENV
variable INTEL_OPENVINO_DIR
to the path of your OpenVINO toolkit installation and try again?
Hey, thank you for the reply. When I do that I get the following error:
CMake Error at onnxruntime_providers.cmake:793 (find_package):
By not providing "FindInferenceEngine.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"InferenceEngine", but CMake did not find one.
Could not find a package configuration file provided by "InferenceEngine"
with any of the following names:
InferenceEngineConfig.cmake
inferenceengine-config.cmake
Add the installation prefix of "InferenceEngine" to CMAKE_PREFIX_PATH or
set "InferenceEngine_DIR" to a directory containing one of the above files.
If "InferenceEngine" provides a separate development package or SDK, be
sure it has been installed.
I install openvino from here: https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.0.1/windows And I verified that I set the env correctly with:
>ls $env:INTEL_OPENVINO_DIR
Directory: C:\Users\holge\simon\onnxbuilder\openvino\w_openvino_toolkit_windows_2023.0.0.10926.b4452d56304_x86_64
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 7/3/2023 5:57 PM docs
d----- 7/3/2023 5:57 PM python
d----- 7/3/2023 5:57 PM runtime
d----- 7/3/2023 5:57 PM samples
d----- 7/3/2023 5:57 PM tools
-a---- 5/9/2023 8:41 AM 4701 setupvars.bat
Are you following instructions from here: https://onnxruntime.ai/docs/execution-providers/OpenVINO-ExecutionProvider.html#build ?
Yes
jywu-msft any suggestions on how to get a successful onnxruntime with OpenVINO build?
I've tried this on 2 different machines and got the same error twice. I've also tried building on Linux with the same options and that does work. I build against the 1.14.1 tag. I also tried with the latest main
and it also fails with the same error.
Seems like it doesn't work with PowerShell but does with command prompt for some reason. Maybe it could be useful to add this disclaimer to the build instructions?
Can you close this request
Describe the issue
I always get the following error:
[Couldn't locate OpenVINO] OpenVINO may not have been initialized
even though I set up the OpenVINO env:Urgency
No response
Target platform
Windows 11
Build script
Error / output
Visual Studio Version
2019
GCC / Compiler Version
No response