Skip to content
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

Onnx runtime fail to run on windows #83

Open
ssankko opened this issue Jun 28, 2021 · 1 comment
Open

Onnx runtime fail to run on windows #83

ssankko opened this issue Jun 28, 2021 · 1 comment

Comments

@ssankko
Copy link

ssankko commented Jun 28, 2021

When you try to run project containing onnxruntime (0.0.12) it fails to launch because downloaded dll can't be found.

It exits with following error.

error: process didn't exit successfully: `target\debug\onnx_test.exe` (exit code: 0xc000007b)

I don't actually know what im doing wrong here. Rust code itself does not matter because it fails before entering the main function.

To run the program you have to manually copy downloaded dll from within build directory. Rust generates random names for output directory each clean rebuild so its not possible to automate copying to run program in docker. Its kinda unusual from user perspective.

I'm gladly will receive any guidance on that error if there's any known solutions.

@radu-matei
Copy link

radu-matei commented Jun 29, 2021

Windows requires the shared libraries (DLLs) to be either in a directory from the path, or in the same directory as the executable that needs to load them - https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order#search-order-for-desktop-applications

So you can download the ONNX release from the GitHub page, extract it, then either add it to the path, or copy it in the directory with the binary.

ahirner added a commit to ahirner/infur that referenced this issue Nov 20, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
ahirner added a commit to ahirner/infur that referenced this issue Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants