得到tgz压缩包后解压,文件里有inculde和lib文件夹,在cmakelist.txt中添加include和lib路径: step2 CMake: 例:CMakeList.txt: cmake_minimum_required (VERSION 2.8) project (demo) include_directories(${CMAKE_CURRENT_LIST_DIR}/onnxruntime-linux-x64-1.14.0/include) link_directories(${CMAKE_CURRENT_...
一、工程结构 工程结构如下: PANNET include onnxrumtime1.7.0 onnxruntime_cxx_api.h onnxruntime_c_api.h pannet_decode.h pannet.h model pannet.onnx src main.cpp pannet_decode.cpp pannet.cpp lib1.7…