use /usr/local/include/ for header file

This commit is contained in:
Jules Youngberg 2022-07-26 18:05:32 -07:00
parent 559a9deb88
commit 839094943a
2 changed files with 4 additions and 2 deletions

View File

@ -36,13 +36,15 @@ Build & install the mediagraph library.
```shell ```shell
bazel build --define MEDIAPIPE_DISABLE_GPU=1 mediapipe:libmediagraph.dylib bazel build --define MEDIAPIPE_DISABLE_GPU=1 mediapipe:libmediagraph.dylib
sudo cp bazel-bin/mediapipe/libmediagraph.dylib /usr/local/lib/libmediagraph.dylib sudo cp bazel-bin/mediapipe/libmediagraph.dylib /usr/local/lib/libmediagraph.dylib
sudo cp mediapipe/mediagraph.h /usr/local/include/mediagraph.h
``` ```
#### linux (untested) #### linux (untested)
```shell ```shell
bazel build --define MEDIAPIPE_DISABLE_GPU=1 mediapipe:mediagraph bazel build --define MEDIAPIPE_DISABLE_GPU=1 mediapipe:mediagraph
cp bazel-bin/mediapipe/libmediagraph.so /usr/local/lib/libmediagraph.so sudo cp bazel-bin/mediapipe/libmediagraph.so /usr/local/lib/libmediagraph.so
sudo cp mediapipe/mediagraph.h /usr/local/include/mediagraph.h
``` ```
### linking ### linking

View File

@ -10,7 +10,7 @@ fn main() {
.clang_arg("-std=c++14") .clang_arg("-std=c++14")
.clang_arg("-I/usr/local/include/opencv4") .clang_arg("-I/usr/local/include/opencv4")
.generate_comments(true) .generate_comments(true)
.header("./mediapipe/mediagraph.h") .header("/usr/local/include/mediagraph.h")
.allowlist_function("mediagraph.*") .allowlist_function("mediagraph.*")
.allowlist_type("mediagraph.*") .allowlist_type("mediagraph.*")
.allowlist_var("mediagraph.*") .allowlist_var("mediagraph.*")