If I just download the zip from the Release page and then follow the build instructions, I get this error:
subprocess.CalledProcessError: Command ‘[‘git’, ‘submodule’, ‘sync’, ‘ — recursive’]’ returned non-zero exit status 128.
You can’t just build from the latest on master branch, you need to checkout a tag for a release and build from that. Master could have anything in it, and it is not guaranteed to work. This is not explicitly stated in their documentation.
Do this instead:
git clone https://github.com/microsoft/onnxruntime.git
git tag -l
### This will show you all the available release tags
# prolly will look something like this:ls
v1.4.0# Now to git checkout tags/vx.x.x
git checkout tags/v1.4.0