If you are using opencv-rs, try adding the clang feature:
opencv = {version = "0.94.4", features = ["clang-runtime"]}