-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] error while loading shared libraries: libonnxruntime.so.1.8.1: cannot open shared object file: No such file or directory
#4724
Comments
Did you try to update LD_LIBRARY_PATH like this:
|
|
I have exactly same error msg right now with npm run tauri dev on Linux. No problem in Macos/Windows |
This is quite high on my to-do list but was delayed due to sickness. If nobody else wants to pick it up I'll start working on it in a few days/weeks. |
thank you FabianLars! By the way, I fixed my issue by creating a file on
it works, but everytime I make some litle bit changes on my project, it tries to re-compile wholoe project... I hope your sickness gets better soon! There is no hurry, health is more important! :) |
I'd appreciate it if some of you could test #11694. To do this, install tauri cli from git:
and then use that cli via
I'm pretty sure that this issue is solved there, i'm more interested in some general testing because i feel like i missed something in the pr... |
Describe the bug
libonnxruntime.so.1.8.1
is downloaded and used byonnxruntime
. In a normal rust project this works just fine, but I could not get it to work with tauri.Some info that might be relevant:
onnxruntime
) https://github.com/nbigaouette/onnxruntime-rsonnxruntime
depends ononnxruntime-sys
onnxruntime-sys
has a custom build.rs that downloadslibonnxruntime.so.1.8.1
Minimal reproduction repo here: https://github.com/bogdibota/tauri-onnxruntime
dev
error messagebuild -verbose
error messageReproduction
Minimal reproduction repo here: https://github.com/bogdibota/tauri-onnxruntime
Manual setup
yarn create tauri-app
onnxruntime = "0.0.14"
as dependencyonnxruntime
inmain.rs
yarn tauri dev
The dev build will finish successfully, but right after it fails with:
error while loading shared libraries: libonnxruntime.so.1.8.1: cannot open shared object file: No such file or directory
Expected behavior
Basically not fail to build / start. I expect
onnxruntime
to work with tauri.Platform and versions
The text was updated successfully, but these errors were encountered: