use /usr/local/include/ for header file
This commit is contained in:
parent
559a9deb88
commit
839094943a
|
@ -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
|
||||||
|
|
2
build.rs
2
build.rs
|
@ -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.*")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user