You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to generate binding for opencv build fails on cv::OutputArray. This happens when I tried to generate bindings for generate!("cv::VideoCapture"). Tried to add header file where cv::OutputArray is defined #include "opencv2/core/mat.hpp" still fails.
To Reproduce
Cargo.toml
[package]
name = "cpp_test"version = "0.1.0"edition = "2021"# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.htmlbuild = "build.rs"links = "opencv4"
[dependencies]
cxx = "1.0.116"autocxx = "0.26.0"
[build-dependencies]
pkg-config = "0.3.29"autocxx-build = "0.26.0"miette = { version = "5", features = ["fancy"] } # optional but gives nicer error messages!
error: cannot convert ‘const cv::_OutputArray*’ to ‘cv::OutputArray’ {aka ‘const cv::_OutputArray&’}
The text was updated successfully, but these errors were encountered:
Dines97
changed the title
When trying to generate binding for opencv build fails on cv::OutputArray. This happens when I tried to generate bindings for generate!("cv::VideoCapture"). Tried to add header file where cv::OutputArray is defined #include "opencv2/core/mat.hpp" still fails.
Couldn’t generate binding for opencv cv::OutputArray
Feb 12, 2024
Describe the bug
When trying to generate binding for opencv build fails on
cv::OutputArray
. This happens when I tried to generate bindings forgenerate!("cv::VideoCapture")
. Tried to add header file wherecv::OutputArray
is defined#include "opencv2/core/mat.hpp
" still fails.To Reproduce
Cargo.toml
build.rs
src/main.rs
Expected behavior
Successful build and also working cv::VideoCapture.read() method which depends on this type
Additional context
Error:
Where main information I believe is:
The text was updated successfully, but these errors were encountered: