microsoft / microsoft/onnxruntime-inference-examples
MNIST sample does not build
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.7k
- Forks
- 414
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 14
Description
I cloned this repo and ran the build file in the MNIST folder, which failed.
C:\Users\nakersha\Develop\code\microsoft\onnxruntime-inference-examples\c_cxx\MNIST>cl MNIST.cpp /Zi /EHsc /I..\..\..\include\onnxruntime\core\session /link /LIBPATH:..\..\..\build\Windows\Debug\Debug
Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29117 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
MNIST.cpp
MNIST.cpp(6): fatal error C1083: Cannot open include file: 'onnxruntime_cxx_api.h': No such file or directory
C:\Users\nakersha\Develop\code\microsoft\onnxruntime-inference-examples\c_cxx\MNIST>
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the build file in c_cxx/MNIST and MNIST.cpp, then rerun the shown cl command to inspect the missing onnxruntime_cxx_api.h include path. Done means the MNIST sample compiles successfully with the documented command.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100