从git上下载源码
git clone --recursive https://github.com/Microsoft/onnxruntime.git
打开visual studio promot 窗口,切换到源码目录
![](https://img-blog.csdnimg.cn/img_convert/30e405a850155a7844af8c05c1dc3c0d.png)
执行如下命令,等着编译完成就行了
.\build.bat --config RelWithDebInfo --build_shared_lib --parallel --cmake_generator "Visual Studio 16 2019"
4. 编译没有报错的话,在RelWithDebInfo 中看到所有相关的文件。
编译后的地址为: