sherpa-onnx icon indicating copy to clipboard operation
sherpa-onnx copied to clipboard

Buid failed on windows with cuda

Open thewh1teagle opened this issue 1 year ago • 2 comments

When enabling cuda on Windows it failed with the error

error: could not find native static library `onnxruntime`, perhaps an -L flag is missing?

Although I already link it. seems like it doesn't produce libonnxruntime? Or maybe it produce it in different foldeR?

Action run: https://github.com/thewh1teagle/sherpa-rs/actions/runs/9881675671/job/27292952044

Build options: https://github.com/thewh1teagle/sherpa-rs/blob/main/sys/build.rs

You can see that without cuda it build sueccessfuly.

Another action with debug steps:

https://github.com/thewh1teagle/sherpa-rs/actions/runs/9882452000/job/27295323663 You can see that it produce onnxruntime.lib but in the nvidia action there it's not there.

thewh1teagle avatar Jul 10 '24 22:07 thewh1teagle