Open SolomidHero opened 1 year ago
Ah, MacOS. I haven't built on this myself but I'm suspicious of this line in the cmake:
If you remove that line, does it then build? (or at least remove the "Darwin" part)
@RyanUnderhill It started build for a long time and ended with error on about 41% Error:
[ 41%] Building CXX object CMakeFiles/onnxruntime_providers_shared.dir/Users/sotomi/projects/real-time-audiostreaming/onnxruntime/onnxruntime/core/providers/shared/common.cc.o
[ 41%] Linking CXX shared library libonnxruntime_providers_shared.dylib
Undefined symbols for architecture x86_64:
"Provider_GetHost", referenced from:
-exported_symbol[s_list] command line option
(maybe you meant: _Provider_GetHost)
"Provider_SetHost", referenced from:
-exported_symbol[s_list] command line option
(maybe you meant: _Provider_SetHost)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libonnxruntime_providers_shared.dylib] Error 1
make[1]: *** [CMakeFiles/onnxruntime_providers_shared.dir/all] Error 2
make: *** [all] Error 2
Traceback (most recent call last):
File "/Users/sotomi/projects/real-time-audiostreaming/onnxruntime/tools/ci_build/build.py", line 2744, in <module>
sys.exit(main())
File "/Users/sotomi/projects/real-time-audiostreaming/onnxruntime/tools/ci_build/build.py", line 2663, in main
build_targets(args, cmake_path, build_dir, configs, num_parallel_jobs, args.target)
File "/Users/sotomi/projects/real-time-audiostreaming/onnxruntime/tools/ci_build/build.py", line 1301, in build_targets
run_subprocess(cmd_args, env=env)
File "/Users/sotomi/projects/real-time-audiostreaming/onnxruntime/tools/ci_build/build.py", line 714, in run_subprocess
return run(*args, cwd=cwd, capture_stdout=capture_stdout, shell=shell, env=my_env)
File "/Users/sotomi/projects/real-time-audiostreaming/onnxruntime/tools/python/util/run.py", line 49, in run
completed_process = subprocess.run(
File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/local/bin/cmake', '--build', '/Users/sotomi/projects/real-time-audiostreaming/onnxruntime/build/MacOS/RelWithDebInfo', '--config', 'RelWithDebInfo']' returned non-zero exit status 2.
Oh OpenVINO Execution Provider does not support MacOS as of now
Ah, that would do it. I just asked the OpenVINO provider folks on our team and MacOS is not supported currently, and we don't have any immediate plans to support it.
You're welcome to add support yourself and submit a PR. I can explain how we use those symbols above, but you'd need to make the changes to fix it. As you can see, we don't have many MacOS resources internally.
Describe the bug
Failed to install openVINO EP following guide - https://onnxruntime.ai/docs/build/eps.html#openvino
installed OpenVINO™ (runtime, offline, macos, from here)
cloned onnxruntime repo
build stage (from onnxruntime/)
error:
Urgency If there are particular important use cases blocked by this or strict project-related timelines, please share more information and dates. If there are no hard deadlines, please specify none.
System information
To Reproduce code above
Expected behavior Onnxruntime has been built from source with OpenVINOExecutionProvider