I'm new to bazel and c++ development. I have a similar situation as posted in here and here. Followed the steps posted in the first link ,where I'm trying to load this locally built package into a bazel project.
WORKSPACE
new_local_repository(
name = "openvino",
build_file = "backend/cpp/BUILD",
path = "C:\\Users\\user\\OpenVINO2022.1.0.dev20220316_OMP\\openvino",
)
BUILD
file inside backend/cpp folder
cc_library(
name = "openvino",
srcs = glob(["**/*.lib"])+ glob(["**/*.dll"]),
hdrs = glob(["**/*.hpp"]),
includes = ["src/inference/include/openvino"],
visibility = ["//visibility:public"]
)
cc_library(
name = "main_c",
srcs = ["main_c.cc"],
hdrs = [
"utils.h",
],
deps = [
"//flutter/cpp/c:headers",
],
alwayslink = 1,
visibility = ["//visibility:public"]
)
cc_binary(
name = "libbackend.dll",
linkshared = 1,
win_def_file = "//flutter/cpp/c:dll_export.def",
deps = [
":openvino",
":main_c",
],
linkopts = ["-shared"],
)
main_c.cc file in backend/cpp folder
#include "openvino\src\inference\include\openvino\openvino.hpp"
But I'm still not able to load this library.
Error
backend/cpp/main_c.cc(7): fatal error C1083: Cannot open include file: 'openvino\src\inference\include\openvino\openvino.hpp': No such file or directory
Any help is appreciated.