python-for-android icon indicating copy to clipboard operation
python-for-android copied to clipboard

Finally I have Onnxruntime recipe

Open sdas92 opened this issue 5 months ago • 1 comments

Background

  • Onnxruntime is an an open-source, high-performance inference engine that accelerates machine learning models in the Open Neural Network Exchange (ONNX) format.
  • Building it for android was a huge challenge. I have followed some patterns from termux-packages & after many days of hit-n-try, I was able to build it.

Custom recipe link

Constraints

  • I am currently building on numpy 1.26.5 due to #3203 issue as I also need opencv in my project.
  • Another one is, currently it is built using ndk 25b and that problem is also written in the above mentioned issue.

My thoughts

I'm not a build expert on cmake, wheel etc. I tried my best to make it work and I am sure that the developers can make it more robust.

Please feel free to let me know your thoughts. Thank you

sdas92 avatar Sep 20 '25 15:09 sdas92

@sdas92 Great work!

I will make PR soon.

T-Dynamos avatar Sep 20 '25 15:09 T-Dynamos