xmba15 / onnx_runtime_cpp

small c++ library to quickly deploy models using onnxruntime
MIT License
327 stars 49 forks source link

build error #42

Closed qazzombie closed 1 year ago

qazzombie commented 1 year ago

when I run make apps , have some error : /Users/admin/Desktop/onnx_runtime_cpp-master/include/ort_utility/Utility.hpp:92:26: error: no viable conversion from 'deque' to 'deque' std::deque sortedIndices = ::sortIndexes(scores); /Users/admin/Desktop/onnx_runtime_cpp-master/include/ort_utility/Utility.hpp:123:45: error: type 'const std::array<float, 4>' does not provide a subscript operator float tmpXmin = std::max(curBbox[0], bbox[0]); /Users/admin/Desktop/onnx_runtime_cpp-master/include/ort_utility/Utility.hpp:124:45: error: type 'const std::array<float, 4>' does not provide a subscript operator float tmpYmin = std::max(curBbox[1], bbox[1]); ........... how to deal it ?

xmba15 commented 1 year ago

What c++ compiler are you using? This repository only works with c++17 onwards.

xmba15 commented 1 year ago

Let's use docker for easier reproduction of the results. https://github.com/xmba15/onnx_runtime_cpp/issues/34

qazzombie commented 1 year ago

Let's use docker for easier reproduction of the results. #34

but mine is macos ,is this ubuntu-dockerfile suitable for me to docker build

xmba15 commented 1 year ago

Well you need customize dockers suitable for your OS then.

qazzombie commented 1 year ago

Well,thank you for your reply