TermuxT
Termux9mo ago
7 replies
Wael

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

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.
Was this page helpful?