using bazel to build opencv

50 views Asked by At

I tried to follow the following instruction. I attempted two methods one with new_local_repository the other with http_archive.

How to use Bazel to build project uses OpenCV

In both situations, including @opencv in main BUILD file actually worked. But I got stuck on once I start to include "#include". The vscode editor seems to understand where the header files are but bazelisk build will generate error related to can't find header.

main/hello-world.cc:7:10: fatal error: opencv2/core.hpp: No such file or directory

0

There are 0 answers