Skip to content

Commit

Permalink
Opencv not detected. Added include to user/include/opencv4 folder on …
Browse files Browse the repository at this point in the history
…config file
  • Loading branch information
albertmena authored and DStrelak committed Oct 22, 2021
1 parent 9012e04 commit e01dcd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit e01dcd4

Please sign in to comment.