-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Build] how to build onnxruntime with openvino EP for android #23222
Comments
It's not a currently supported combination. You could try removing the line that excludes the creation of onnxruntime_providers_shared on Anrdoid as a first step.
|
Thanks. I'll try it. |
@skottmckay As you suggestion, I deleted the cmake Line 218. But I encountered a lot of variable errors, as shown below:
|
The CI builds of OpenVINO we have must not have that warning available as e.g. the Linux CI for OpenVINO does not have that warning available. Your quickest way to test it out would be to disable the warning by commenting this out: onnxruntime/cmake/CMakeLists.txt Lines 750 to 752 in 8687011
|
Do you mean that this warning can be ignored? |
I encoutered another error in the process of building.
|
@junruizh2021, these warnings were from OpenVino code that was contributed from Intel. You may help us contact your coworker to fix them, or you may add "--compile-no-warning-as-error" to your build command to suppress the warnings. |
As Scott suggested, the line int pos = output_name.find("/"); Should be changed to: size_t pos = output_name.find("/"); |
@snnn Thanks. I added the "--compile_no_warning_as_error" in the cmake command and it worked. But I encountered the "error: undefined symbol: Provider_GetHost". Did you know how to address this error?
|
Describe the issue
I want to use openvino as Execution Providers to compile onnxruntime, but need to execute on android x86 device. The compilation command I currently use is as follows:
The openvino_dir specified here is the installation path of an Android version of openvino.
During the compilation process of onnxruntime, I encountered this error:
Urgency
No response
Target platform
x86
Build script
$ ./build.sh --android --android_sdk_path /home/user/sdk --android_ndk_path /home/junruizh/sdk/ndk/27.0.11718014 --android_abi x86_64 --android_api 34 --config RelWithDebInfo --use_openvino GPU --build_shared_lib --cmake_extra_defines OpenVINO_DIR=/home/user/openvino-android/openvino-install-android/runtime/cmake
Error / output
CMake Error at onnxruntime_providers_openvino.cmake:49 (add_dependencies):
The dependency target "onnxruntime_providers_shared" of target
"onnxruntime_providers_openvino" does not exist.
Call Stack (most recent call first):
onnxruntime_providers.cmake:143 (include)
CMakeLists.txt:1768 (include)
Visual Studio Version
No response
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: