I've reduced the log as at the beginning of it there are only warnings from other dependencies. And the error is the following (actually there are a few of them):
cargo:warning=/home/sushik/Projects/cooltool/gaze-detector-rust/task-processor/target/debug/build/opencv-fcae9d68861c6517/out/dnn.cpp:1214:31: warning: parentheses were disambiguated as a function declaration [-Wvexing-parse]
cargo:warning= cv::dnn::KeypointsModel ret(std::string(model), std::string(config));
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/home/sushik/Projects/cooltool/gaze-detector-rust/task-processor/target/debug/build/opencv-fcae9d68861c6517/out/dnn.cpp:1214:32: note: add a pair of parentheses to declare a variable
cargo:warning= cv::dnn::KeypointsModel ret(std::string(model), std::string(config));
cargo:warning= ^
cargo:warning= ( )
cargo:warning=/home/sushik/Projects/cooltool/gaze-detector-rust/task-processor/target/debug/build/opencv-fcae9d68861c6517/out/dnn.cpp:1215:11: error: no matching function for call to 'Ok'
cargo:warning= return Ok<cv::dnn::KeypointsModel>(ret);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=/home/sushik/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.51.0/src_cpp/ocvrs_common.hpp:47:39: note: candidate function template not viable: no known conversion from 'cv::dnn::KeypointsModel (std::string, std::string)' (aka 'cv::dnn::dnn4_v20210301::KeypointsModel (basic_string<char>, basic_string<char>)') to 'cv::dnn::dnn4_v20210301::KeypointsModel' for 1st argument
cargo:warning=template<typename T> inline Result<T> Ok(T result) {
But it compiles with OpenCV 4.5.1 and I didn't found the changes in signatures of constructors (in the docs).
rustc 1.51.0 (2fd73fabe 2021-03-23)
Compile Log
I've reduced the log as at the beginning of it there are only warnings from other dependencies. And the error is the following (actually there are a few of them):
But it compiles with OpenCV 4.5.1 and I didn't found the changes in signatures of constructors (in the docs).