-
I followed the instructions described here to build ORT from source. The build was successful and therefore, I wanted to try the MNIST app given in the samples folder. I used the commands described here to run it but got the following error
System information |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 1 reply
-
It seems like the x86 compiler (cl.exe) is being used to build the MNIST.exe app and that is linking to the onnxruntime.dll built for x64 architecture and that causes the linker warning/error. Can you try using the |
Beta Was this translation helpful? Give feedback.
-
@hariharans29 Thanks for the suggestion. I used the x64 Native tools command prompt and the build command works. However, I get the following error when I type So I looked that the onnxruntime.dll is located on the path |
Beta Was this translation helpful? Give feedback.
-
Yes, your app should be able to find the onnxruntime dll. Pls add it to PATH and try. |
Beta Was this translation helpful? Give feedback.
-
@hariharans29 Thanks. I am able to run the MNIST.exe but I cannot see the GUI as mentioned in this tutorial. Could you please help with that |
Beta Was this translation helpful? Give feedback.
-
I am not familiar with the GUI aspect of the tutorial. CC: @snnn who contributed the tutorial and might be able to help |
Beta Was this translation helpful? Give feedback.
-
Hi @mayani-nv , excuse me, instead of setting PATH, you should copy onnxruntime.dll to the same folder of MNIST.exe. In general, set PATH is not a reliable way to resolve DLL not found issues. |
Beta Was this translation helpful? Give feedback.
-
@snnn Thanks for the suggestion. I copied the onnxruntime.dll file to the MNIST folder. It gets build but I got the following message.
I still cannot see the GUI |
Beta Was this translation helpful? Give feedback.
-
Debugging. |
Beta Was this translation helpful? Give feedback.
-
It works fine on my PC. Based on the limited information I have now, it's hard to say what went wrong in your place. I have two suggestions:
Then run it and copy the onnxruntime.dll from unzipped folder to the same dir of MNIST.exe. Also, please don't forget to download the model file and put it there.
|
Beta Was this translation helpful? Give feedback.
-
@snnn Thanks for the suggestion. The option 1 works and now I can see the GUI. Very much appreciate your help. |
Beta Was this translation helpful? Give feedback.
It works fine on my PC. Based on the limited information I have now, it's hard to say what went wrong in your place.
I have two suggestions:
Then run it and copy the onnxruntime.dll from unzipped folder to the same dir of MNIST.exe. Also, please don't forget to download the mode…