diff --git a/scripts/config.py b/scripts/config.py index e4e83357e..1b14a07b3 100644 --- a/scripts/config.py +++ b/scripts/config.py @@ -327,6 +327,9 @@ def _config_compiler(self): if hdf5Inc: self.configDict["INCDIRFLAGS"] += " -I%s" % hdf5Inc + if findFileInDirList("opencv4/opencv2/core/core.hpp", ["/usr/include"]): + self.configDict["INCDIRFLAGS"] += " -I%s" % "/usr/include/opencv4" + if self.configDict["PYTHON_LIB"] == "": # malloc flavour is not needed from 3.8 malloc = "m" if sys.version_info.minor < 8 else ""