linux源码编译onnxruntime

目前成功的步骤:

export LANG=en_US.UTF-8
git clone https://github.com/microsoft/onnxruntime/
cd onnxruntime
git init
git submodule sync
git submodule update --init --recursive (反复执行该步骤直到所需文件均下载完成)
./build.sh --config RelWithDebInfo --build_shared_lib --parallel

成功后的截图:

linux源码编译onnxruntime_第1张图片

编译 成功后的文件:

 使用到的库:

./include/onnxruntime/core/providers/cpu/cpu_provider_factory.h
./include/onnxruntime/core/session/onnxruntime_c_api.h
./include/onnxruntime/core/session/onnxruntime_cxx_api.h
./include/onnxruntime/core/session/onnxruntime_cxx_inline.h

使用到的lib文件:

./build/Linux/RelWithDebInfo/libonnxruntime.so
./build/Linux/RelWithDebInfo/libonnxruntime.so.1.7.0
建立连接:ln -sf libonnxruntime.so libonnxruntime.so.1.7.0

你可能感兴趣的:(c++,后端)