T
Termux•4d ago
WaelShaikh

Has anyone successfully compiled onnxruntime-node?

Has anyone successfully built onnxruntime for node for termux. I've been able to build onnxruntime.so for arm64 from WSL. But cross compiling the node bindings seems impossible. Cuz the build toolchain requires linux-x86_64 but then it doesn't bind to nodejs for arm64. After a lot of trial and error and monkey patching, cmake stops at [100%] build progress. I've even tried to just use:
npm I onnxruntime-web
npm I onnxruntime-web
but even that depends on onnxruntime-node. I'm trying to load a huggingface TextToSpeech model and even when I specifiy device: "cpu" or device: "wasm". It still tries to load onnxruntime-node. I'm trying to run kokoro-js.
1 Reply
WaelShaikh
WaelShaikhOP•3d ago
I give up. onnxruntime-node isn't meant to be compiled on termux. Can't even load kokoro using python Even after manually building and installing onnx and pybind11 Also termux doesn't have support for huggingface/transformers cuz it depends on onnxruntime-node. I thought I used transforms js a few months ago 🤔 But now it's not working I am now able to produce static noise via onnx runtime python

Did you find this page helpful?