Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build successful but files are not copied and protobuf is not compiled #7

Closed
yellowflash07 opened this issue Sep 18, 2020 · 3 comments

Comments

@yellowflash07
Copy link

After running make, i get libmediapipe_c.so under bazel-bin/mediapipe_api. its not copied to SDK/Plugins and protobuf compiles were nowhere to be found.

the build was successful but had many warnings below is the result. everything is in order, openCV, android sdk are set correctly. i am able to build official examples too.

one thing i found was that the files it was trying to access were locked so i ran "sudo make" which gave

Either the path attribute of android_sdk_repository or the ANDROID_HOME environment variable must be set. even thought it was already set.

then i set it manually in workspace, then build completed succesfully after checking some caches in 5 seconds which didn't do anything.

result of make:-

mkdir -p .build
curl -L https://github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz -o .build/protobuf-3.13.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   133    0   133    0     0    378      0 --:--:-- --:--:-- --:--:--   378
100 5154k    0 5154k    0     0  2963k      0 --:--:--  0:00:01 --:--:-- 5064k
tar xf .build/protobuf-3.13.0.tar.gz -C .build
./.build/protobuf-3.13.0/csharp/buildall.sh
+ echo Building relevant projects.
Building relevant projects.
+ dotnet restore ./.build/protobuf-3.13.0/csharp/src/Google.Protobuf.sln
  Determining projects to restore...
  Restored /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test.TestProtos/Google.Protobuf.Test.TestProtos.csproj (in 342 ms).
  Restored /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/Google.Protobuf.csproj (in 342 ms).
  Restored /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.JsonDump/Google.Protobuf.JsonDump.csproj (in 342 ms).
  Restored /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/AddressBook/AddressBook.csproj (in 342 ms).
  Restored /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Benchmarks/Google.Protobuf.Benchmarks.csproj (in 375 ms).
  Restored /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Conformance/Google.Protobuf.Conformance.csproj (in 379 ms).
  Restored /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test/Google.Protobuf.Test.csproj (in 379 ms).
+ dotnet build -c Release ./.build/protobuf-3.13.0/csharp/src/Google.Protobuf.sln
Microsoft (R) Build Engine version 16.7.0+7fb82e5b2 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  All projects are up-to-date for restore.
  Google.Protobuf -> /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/bin/Release/net45/Google.Protobuf.dll
  Google.Protobuf -> /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/bin/Release/netstandard1.1/Google.Protobuf.dll
  Google.Protobuf -> /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/bin/Release/netstandard2.0/Google.Protobuf.dll
  Google.Protobuf.JsonDump -> /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.JsonDump/bin/Release/netcoreapp2.1/Google.Protobuf.JsonDump.dll
  AddressBook -> /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/AddressBook/bin/Release/netcoreapp2.1/AddressBook.dll
  Google.Protobuf.Test.TestProtos -> /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test.TestProtos/bin/Release/netstandard2.0/Google.Protobuf.Test.TestProtos.dll
  Google.Protobuf.Test.TestProtos -> /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test.TestProtos/bin/Release/net45/Google.Protobuf.Test.TestProtos.dll
  Google.Protobuf.Test.TestProtos -> /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test.TestProtos/bin/Release/netstandard1.1/Google.Protobuf.Test.TestProtos.dll
  Google.Protobuf.Test -> /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test/bin/Release/net451/Google.Protobuf.Test.dll
  Google.Protobuf.Benchmarks -> /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Benchmarks/bin/Release/netcoreapp3.1/Google.Protobuf.Benchmarks.dll
  Google.Protobuf.Test -> /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test/bin/Release/netcoreapp2.1/Google.Protobuf.Test.dll
  Google.Protobuf.Conformance -> /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Conformance/bin/Release/netcoreapp2.1/Google.Protobuf.Conformance.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:05.39
+ echo Running tests.
Running tests.
+ dotnet test -c Release -f netcoreapp2.1 ./.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test/Google.Protobuf.Test.csproj
Microsoft (R) Build Engine version 16.7.0+7fb82e5b2 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  All projects are up-to-date for restore.
Test run for /home/ershad/MediapipeUnityPlugin/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test/bin/Release/netcoreapp2.1/Google.Protobuf.Test.dll(.NETCoreApp,Version=v2.1)
Microsoft (R) Test Execution Command Line Tool Version 16.7.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...

A total of 1 test files matched the specified pattern.

Test Run Successful.
Total tests: 1124
     Passed: 1124
 Total time: 7.3851 Seconds
# TODO build all the .proto files and output to the same directories
protoc --proto_path=Assets/Mediapipe/SDK/Scripts --csharp_out=Assets/Mediapipe/SDK/Scripts/Protobuf Assets/Mediapipe/SDK/Scripts/Protobuf/*.proto && \
protoc --proto_path=Assets/Mediapipe/SDK/Scripts --csharp_out=Assets/Mediapipe/SDK/Scripts/Protobuf/Annotation Assets/Mediapipe/SDK/Scripts/Protobuf/Annotation/*.proto
cd C && bazel build -c opt --copt -DMESA_EGL_NO_X11_HEADERS --copt -DEGL_NO_X11 //mediapipe_api:mediapipe_c //mediapipe_api:mediapipe_models
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
WARNING: Download from https://mirror.bazel.build/github.com/tensorflow/tensorflow/archive/7c09d15f9fcc14343343c247ebf5b8e0afe3e4aa.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
WARNING: Download from http://mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
INFO: SHA256 (https://github.com/bazelbuild/rules_cc/archive/master.zip) = 2a34fa56d923f774409d23720e60ddf6536e88622d000e6925f7cebbad65e281
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "2a34fa56d923f774409d23720e60ddf6536e88622d000e6925f7cebbad65e281"
DEBUG: Repository rules_cc instantiated at:
  no stack (--record_rule_instantiation_callstack not enabled)
Repository rule http_archive defined at:
  /home/ershad/.cache/bazel/_bazel_ershad/2addae6667761cbddc94a55966b17a28/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
  no stack (--record_rule_instantiation_callstack not enabled)
Repository rule git_repository defined at:
  /home/ershad/.cache/bazel/_bazel_ershad/2addae6667761cbddc94a55966b17a28/external/bazel_tools/tools/build_defs/repo/git.bzl:195:33: in <toplevel>
WARNING: Download from https://mirror.bazel.build/github.com/Maratyszcza/FP16/archive/3c54eacb74f6f5e39077300c5564156c424d77ba.zip failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/5cb16e7ace0fcdcab164af01620a606ba828a3be.zip failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
INFO: Analyzed 2 targets (149 packages loaded, 6033 targets configured).
INFO: Found 2 targets...
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/graphs/iris_tracking/calculators/iris_to_depth_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/rect_to_render_scale_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/framework/calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/labels_to_render_data_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/core/concatenate_vector_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/detections_to_rects_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/rect_transformation_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/framework/calculator_profile.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/annotation_overlay_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/gpu/gl_context_options.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/framework/calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/thresholding_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/image/image_transformation_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/tflite/tflite_tensors_to_landmarks_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/tflite/tflite_tensors_to_landmarks_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/core/split_vector_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/tflite/tflite_converter_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/collection_has_min_size_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/image/image_cropping_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/landmark_projection_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/tflite/tflite_inference_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/detections_to_rects_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/core/clip_vector_size_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/landmarks_to_detection_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/tflite/tflite_tensors_to_detections_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/tflite/ssd_anchors_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/non_max_suppression_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/non_max_suppression_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/framework/tool/calculator_graph_template.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/framework/calculator_profile.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/tflite/tflite_converter_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/internal/callback_packet_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/gpu/gl_context_options.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/tflite/ssd_anchors_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/tflite/tflite_tensors_to_detections_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/image/image_transformation_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/rect_to_render_data_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/detection_label_id_to_text_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/tflite/tflite_inference_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/landmarks_to_render_data_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/landmarks_to_detection_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/core/gate_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/collection_has_min_size_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/core/gate_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/rect_transformation_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/image/image_cropping_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/core/split_vector_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/landmark_projection_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/core/clip_vector_size_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/association_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/thresholding_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/association_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/detections_to_render_data_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/rect_to_render_data_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/landmarks_to_render_data_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/annotation_overlay_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/detections_to_render_data_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/framework/tool/calculator_graph_template.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/graphs/iris_tracking/calculators/iris_to_depth_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/graphs/iris_tracking/calculators/iris_to_render_data_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/internal/callback_packet_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/graphs/iris_tracking/calculators/iris_to_render_data_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/core/concatenate_vector_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/detection_label_id_to_text_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/graphs/pose_tracking/calculators/landmarks_smoothing_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/tflite/tflite_custom_op_resolver_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/core/constant_side_packet_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/core/constant_side_packet_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/tflite/tflite_custom_op_resolver_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/tflite/tflite_tensors_to_classification_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From Compiling external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc [for host]:
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc: In member function 'virtual google::protobuf::uint8* mediapipe::ProfilerConfig::_InternalSerialize(google::protobuf::uint8*, google::protobuf::io::EpsCopyOutputStream*) const':
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:1711:41: warning: 'bool mediapipe::ProfilerConfig::enable_input_output_latency() const' is deprecated [-Wdeprecated-declarations]
 1711 |   if (this->enable_input_output_latency() != 0) {
      |                                         ^
In file included from bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:4:
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.h:2714:13: note: declared here
 2714 | inline bool ProfilerConfig::enable_input_output_latency() const {
      |             ^~~~~~~~~~~~~~
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:1778:39: warning: 'bool mediapipe::ProfilerConfig::trace_log_duration_events() const' is deprecated [-Wdeprecated-declarations]
 1778 |   if (this->trace_log_duration_events() != 0) {
      |                                       ^
In file included from bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:4:
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.h:2981:13: note: declared here
 2981 | inline bool ProfilerConfig::trace_log_duration_events() const {
      |             ^~~~~~~~~~~~~~
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc: In member function 'virtual size_t mediapipe::ProfilerConfig::ByteSizeLong() const':
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:1860:41: warning: 'bool mediapipe::ProfilerConfig::enable_input_output_latency() const' is deprecated [-Wdeprecated-declarations]
 1860 |   if (this->enable_input_output_latency() != 0) {
      |                                         ^
In file included from bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:4:
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.h:2714:13: note: declared here
 2714 | inline bool ProfilerConfig::enable_input_output_latency() const {
      |             ^~~~~~~~~~~~~~
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:1915:39: warning: 'bool mediapipe::ProfilerConfig::trace_log_duration_events() const' is deprecated [-Wdeprecated-declarations]
 1915 |   if (this->trace_log_duration_events() != 0) {
      |                                       ^
In file included from bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:4:
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.h:2981:13: note: declared here
 2981 | inline bool ProfilerConfig::trace_log_duration_events() const {
      |             ^~~~~~~~~~~~~~
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc: In member function 'void mediapipe::ProfilerConfig::MergeFrom(const mediapipe::ProfilerConfig&)':
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:1976:40: warning: 'bool mediapipe::ProfilerConfig::enable_input_output_latency() const' is deprecated [-Wdeprecated-declarations]
 1976 |   if (from.enable_input_output_latency() != 0) {
      |                                        ^
In file included from bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:4:
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.h:2714:13: note: declared here
 2714 | inline bool ProfilerConfig::enable_input_output_latency() const {
      |             ^~~~~~~~~~~~~~
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:2003:38: warning: 'bool mediapipe::ProfilerConfig::trace_log_duration_events() const' is deprecated [-Wdeprecated-declarations]
 2003 |   if (from.trace_log_duration_events() != 0) {
      |                                      ^
In file included from bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:4:
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.h:2981:13: note: declared here
 2981 | inline bool ProfilerConfig::trace_log_duration_events() const {
      |             ^~~~~~~~~~~~~~
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc: In member function 'virtual google::protobuf::uint8* mediapipe::CalculatorGraphConfig_Node::_InternalSerialize(google::protobuf::uint8*, google::protobuf::io::EpsCopyOutputStream*) const':
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:2572:33: warning: 'bool mediapipe::CalculatorGraphConfig_Node::has_profiler_config() const' is deprecated [-Wdeprecated-declarations]
 2572 |   if (this->has_profiler_config()) {
      |                                 ^
In file included from bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:4:
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.h:3835:13: note: declared here
 3835 | inline bool CalculatorGraphConfig_Node::has_profiler_config() const {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc: In member function 'virtual size_t mediapipe::CalculatorGraphConfig_Node::ByteSizeLong() const':
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:2708:33: warning: 'bool mediapipe::CalculatorGraphConfig_Node::has_profiler_config() const' is deprecated [-Wdeprecated-declarations]
 2708 |   if (this->has_profiler_config()) {
      |                                 ^
In file included from bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:4:
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.h:3835:13: note: declared here
 3835 | inline bool CalculatorGraphConfig_Node::has_profiler_config() const {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc: In member function 'void mediapipe::CalculatorGraphConfig_Node::MergeFrom(const mediapipe::CalculatorGraphConfig_Node&)':
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:2794:32: warning: 'bool mediapipe::CalculatorGraphConfig_Node::has_profiler_config() const' is deprecated [-Wdeprecated-declarations]
 2794 |   if (from.has_profiler_config()) {
      |                                ^
In file included from bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.cc:4:
bazel-out/host/bin/external/com_google_mediapipe/mediapipe/framework/calculator.pb.h:3835:13: note: declared here
 3835 | inline bool CalculatorGraphConfig_Node::has_profiler_config() const {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
INFO: From Compiling external/org_tensorflow/tensorflow/lite/delegates/gpu/api.cc:
In file included from external/opencl_headers/CL/cl.h:32,
                 from external/org_tensorflow/tensorflow/lite/delegates/gpu/api.h:42,
                 from external/org_tensorflow/tensorflow/lite/delegates/gpu/api.cc:16:
external/opencl_headers/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |                                                                                                        ^
INFO: From Compiling external/org_tensorflow/tensorflow/lite/delegates/gpu/gl/api2.cc:
In file included from external/opencl_headers/CL/cl.h:32,
                 from external/org_tensorflow/tensorflow/lite/delegates/gpu/api.h:42,
                 from external/org_tensorflow/tensorflow/lite/delegates/gpu/gl/api2.h:23,
                 from external/org_tensorflow/tensorflow/lite/delegates/gpu/gl/api2.cc:16:
external/opencl_headers/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |                                                                                                        ^
INFO: From Executing genrule @com_google_mediapipe//mediapipe/graphs/hand_tracking/subgraphs:multi_hand_detection_gpu_graph:
[libprotobuf WARNING external/com_google_protobuf/src/google/protobuf/text_format.cc:324] Warning parsing text-format mediapipe.CalculatorGraphConfig: 58:5: text format contains deprecated field "use_gpu"
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/tflite/tflite_tensors_to_classification_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/labels_to_render_data_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/image/recolor_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/image/set_alpha_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/tflite/tflite_tensors_to_segmentation_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile external/com_google_mediapipe/mediapipe/calculators/util/rect_to_render_scale_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From Compiling external/com_google_mediapipe/mediapipe/util/tflite/tflite_gpu_runner.cc:
In file included from external/opencl_headers/CL/cl.h:32,
                 from external/org_tensorflow/tensorflow/lite/delegates/gpu/api.h:42,
                 from external/com_google_mediapipe/mediapipe/util/tflite/tflite_gpu_runner.h:25,
                 from external/com_google_mediapipe/mediapipe/util/tflite/tflite_gpu_runner.cc:15:
external/opencl_headers/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |                                                                                                        ^
INFO: From Executing genrule @com_google_mediapipe//mediapipe/graphs/hand_tracking/subgraphs:hand_detection_gpu_graph:
[libprotobuf WARNING external/com_google_protobuf/src/google/protobuf/text_format.cc:324] Warning parsing text-format mediapipe.CalculatorGraphConfig: 58:5: text format contains deprecated field "use_gpu"
INFO: From Executing genrule @com_google_mediapipe//mediapipe/graphs/hand_tracking/subgraphs:hand_landmark_gpu_graph:
[libprotobuf WARNING external/com_google_protobuf/src/google/protobuf/text_format.cc:324] Warning parsing text-format mediapipe.CalculatorGraphConfig: 80:5: text format contains deprecated field "use_gpu"
INFO: From Compiling external/com_google_mediapipe/mediapipe/calculators/tflite/tflite_inference_calculator.cc:
In file included from external/opencl_headers/CL/cl.h:32,
                 from external/org_tensorflow/tensorflow/lite/delegates/gpu/api.h:42,
                 from external/com_google_mediapipe/mediapipe/util/tflite/tflite_gpu_runner.h:25,
                 from external/com_google_mediapipe/mediapipe/calculators/tflite/tflite_inference_calculator.cc:39:
external/opencl_headers/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |                                                                                                        ^
INFO: From Compiling external/org_tensorflow/tensorflow/lite/delegates/gpu/gl/kernels/converter.cc:
In file included from external/opencl_headers/CL/cl.h:32,
                 from external/org_tensorflow/tensorflow/lite/delegates/gpu/api.h:42,
                 from external/org_tensorflow/tensorflow/lite/delegates/gpu/spi.h:21,
                 from external/org_tensorflow/tensorflow/lite/delegates/gpu/gl/kernels/converter.h:22,
                 from external/org_tensorflow/tensorflow/lite/delegates/gpu/gl/kernels/converter.cc:16:
external/opencl_headers/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |                                                                                                        ^
INFO: Elapsed time: 561.545s, Critical Path: 258.65s
INFO: 2136 processes: 2136 linux-sandbox.
INFO: Build completed successfully, 2351 total actions

what am i doing wrong? I'm sorry I am new to linux.

@homuler
Copy link
Owner

homuler commented Sep 18, 2020

Please run make install after make. (cf. https://github.com/homuler/MediapipeUnityPlugin#build)
make compiles protobuf files and build libmediapipe_c.so, Google.Protobuf.dll, and a zip file which contains mediapipe models but not copy them to the target directories (exceptionally, protoc outputs the compiled files under Assets/Mediapipe/SDK/Scripts/Protobuf).

one thing i found was that the files it was trying to access were locked so i ran "sudo make" which gave
Either the path attribute of android_sdk_repository or the ANDROID_HOME environment variable must be set. even thought it was already set.

If you run make with sudo, root user's environment variables will be used instead of yours.

@homuler
Copy link
Owner

homuler commented Sep 18, 2020

Project structure changed recently, so if you have placed some files under Assets/Mediapipe/SDK/Plugins, you may need to remove those files first.

@yellowflash07
Copy link
Author

oh i am sorry i read the build info as

gpu for make and cpu for make install.

its working now

thank you .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants