Jetson Xavier onnxruntime Problem

How to install onnruntime successfully?

 We build onnxruntime with experimental TensorRT support.
Compilation always fails when we use ./ --config Release --update --build --parallel --use_tensorrt --cuda_home /usr/local/cuda --cudnn_home /usr/lib/aarch64-linux-gnu  --tensorrt_home /usr/lib/aarch64-linux-gnu.
We're not sure where the problem is.


You can find the onnxruntime for Jetson below:



We try to build in C + + .and don’t know if Xavier support it

[ 70%] Linking CXX static library libonnxruntime_providers.a
[ 70%] Built target onnxruntime_providers
Makefile:181: recipe for target ‘all’ failed
make: *** [all] Error 2
Traceback (most recent call last):
File “/home/nvidia/onnxruntime/tools/ci_build/”, line 2114, in
File “/home/nvidia/onnxruntime/tools/ci_build/”, line 2040, in main
build_targets(args, cmake_path, build_dir, configs, num_parallel_jobs,
File “/home/nvidia/onnxruntime/tools/ci_build/”, line 1062, in build_targets
run_subprocess(cmd_args, env=env)
File “/home/nvidia/onnxruntime/tools/ci_build/”, line 578, in run_subprocess
return run(*args, cwd=cwd, capture_stdout=capture_stdout, shell=shell, env=my_env)
File “/home/nvidia/onnxruntime/tools/python/util/”, line 44, in run
env=env, shell=shell)
File “/home/nvidia/miniforge-pypy3/lib-python/3/”, line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[’/usr/bin/cmake’, ‘–build’, ‘/home/nvidia/onnxruntime/build/Linux/Release’, ‘–config’, ‘Release’, ‘–’, ‘-j4’]’ returned non-zero exit status 2.


Since TensorRT is enabled, please also select the CUDA to see if it works.