-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Build] #13606
Comments
The Api with AllocatedStr appeared in later versions of Ort API. |
Later than 13? If available in the api of 13 why is onnxruntime.dll complains about it…? |
Let's start with the build problem. Open |
I can build this using onnxruntime-win-x64-1.13.1 But when I run it it says: The given version [13] is not supported, only version 1 to 10 is supported in this build. If I try with onnxruntime-win-x64-1.10.0 it does not compile because AllocatedStringPtr is not defined. Maybe you can try running imagenet ? |
Maybe you hit the same problem as #11230 |
My problem is ‘’The given version [13] is not supported, only version 1 to 10 is supported in this build.‘’ |
I got the same error on Windows and discovered the sample app was loading the onnxruntime.dll from the system directory (/c/WINDOWS/SYSTEM32/onnxruntime.dll ) I had set the ONNXRUNTIME_ROOTDIR to my new installation (1.14.0). Is there another config that is needed to load the DLL from the local dir rather than the system? If so let me know and I will update the docs |
Copy onnxruntime.dll to where your exe lives. |
Thanks - can this be done automatically via cmake or the sln project? |
thanks!!! that works for me, i download the onnxruntime version==1.16.2. |
thanks, it works. |
Describe the issue
Hello,
I am having this issue running imagenet. To have the project compile I need ONNX runtime 13 but when running it shutdowns with that error message:
The given version [13] is not supported, only version 1 to 10 is supported in this build.
I tried using an older version ex. onnxruntime-win-x64-1.10.0 but it does not compiles:
Severity Code Description Project File Line Suppression State
Error C2039 'AllocatedStringPtr': is not a member of 'Ort' capi_test D:\dev\onnxruntime-inference-examples-main\c_cxx\squeezenet\main.cpp 84
std::optionalOrt::AllocatedStringPtr input_name_;
The error seems to come from: onnxruntime.dll
I am using: onnxruntime-win-x64-1.13.1
Urgency
No response
Target platform
x64
Build script
cmake
Error / output
Severity Code Description Project File Line Suppression State
Error C2039 'AllocatedStringPtr': is not a member of 'Ort' capi_test D:\dev\onnxruntime-inference-examples-main\c_cxx\squeezenet\main.cpp 84
Visual Studio Version
2022
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: