Linux下安装onnxruntime

下载:https://github.com/microsoft/onnxruntime/releases

sudo mkdir /usr/lib/onnxruntime
sudo mkdir /usr/include/onnxruntime
mv path/onnxruntime-linux-x64-1.17.3/lib/* /usr/lib/onnxruntime
mv path/onnxruntime-linux-x64-1.17.3/include/* /usr/include/onnxruntime

vscode可能要配置下路径,参考 https://www.coder4.com/archives/8141

编译时需要指定下位置

-L/usr/lib/onnxruntime -l onnxruntime

 

Leave a Reply

Your email address will not be published. Required fields are marked *