google-ai-edge / mediapipe

Cross-platform, customizable ML solutions for live and streaming media.
https://ai.google.dev/edge/mediapipe
Apache License 2.0
27.46k stars 5.15k forks source link

Error on compiling iOS #4326

Closed RaphaelThorp closed 1 year ago

RaphaelThorp commented 1 year ago

OS Platform and Distribution

macOS Monterey, v12.4

Compiler version

gcc 13

Programming Language and version

Swift 5.7, Python 3.7.9

Installed using virtualenv? pip? Conda?(if python)

No response

MediaPipe version

Latest at time of posting

Bazel version

6.1.2

XCode and Tulsi versions (if iOS)

Tulsi 0.20221005.88, Xcode 13.4.1

Android SDK and NDK versions (if android)

No response

Android AAR (if android)

None

OpenCV version (if running on desktop)

No response

Describe the problem

Following the instructions from https://developers.google.com/mediapipe/framework/getting_started/ios.
Ran the command "bazel build -c opt --verbose_failures --config=ios_arm64 mediapipe/examples/ios/posetrackinggpu:PoseTrackingGpuApp". 
Compiling results in an error.

Complete Logs

INFO: Build option --define has changed, discarding analysis cache.
WARNING: /Users/raphaelthorp/Desktop/mediapipe/mediapipe/framework/tool/BUILD:197:24: in cc_library rule //mediapipe/framework/tool:field_data_cc_proto: target '//mediapipe/framework/tool:field_data_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /Users/raphaelthorp/Desktop/mediapipe/mediapipe/framework/BUILD:54:24: in cc_library rule //mediapipe/framework:calculator_cc_proto: target '//mediapipe/framework:calculator_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
INFO: Analyzed target //mediapipe/examples/ios/posetrackinggpu:PoseTrackingGpuApp (0 packages loaded, 8943 targets configured).
INFO: Found 1 target...
ERROR: /Users/raphaelthorp/Desktop/mediapipe/mediapipe/modules/pose_landmark/BUILD:28:26: Linking mediapipe/modules/pose_landmark/pose_landmark_model_loader_graph_text_to_binary_graph [for tool] failed: (Exit 1): cc_wrapper.sh failed: error executing command (from target //mediapipe/modules/pose_landmark:pose_landmark_model_loader_graph_text_to_binary_graph) 
  (cd /private/var/tmp/_bazel_raphaelthorp/2bdfbff65ac844d4803c48f3ea895249/sandbox/darwin-sandbox/7656/execroot/mediapipe && \
  exec env - \
    APPLE_SDK_PLATFORM=MacOSX \
    APPLE_SDK_VERSION_OVERRIDE=12.3 \
    PATH=/Users/raphaelthorp/Library/Caches/bazelisk/downloads/bazelbuild/bazel-6.1.1-darwin-x86_64/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin \
    XCODE_VERSION_OVERRIDE=13.4.1.13F100 \
    ZERO_AR_DATE=1 \
  external/local_config_cc/cc_wrapper.sh @bazel-out/darwin-opt-exec-50AE0418-ST-9facee45ddd0/bin/mediapipe/modules/pose_landmark/pose_landmark_model_loader_graph_text_to_binary_graph-2.params)
# Configuration: ed0468280fbc762e7b790d435083e58d9aca6c7b817727625d2e4ab050cd028c
# Execution platform: @local_execution_config_platform//:platform

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
stderr (/private/var/tmp/_bazel_raphaelthorp/2bdfbff65ac844d4803c48f3ea895249/execroot/mediapipe/bazel-out/_tmp/actions/stderr-7) 1523788 exceeds maximum size of --experimental_ui_max_stdouterr_bytes=1048576 bytes; skipping
Target //mediapipe/examples/ios/posetrackinggpu:PoseTrackingGpuApp failed to build
INFO: Elapsed time: 5.247s, Critical Path: 0.97s
INFO: 15 processes: 15 internal.
FAILED: Build did NOT complete successfully
fengyun21 commented 1 year ago

I encountered the same problem ,the version of mediapipe is 0.9.3

fengyun21 commented 1 year ago

the mediapipe of 0.9.2.1 compiled ok . So i think it is the problem of v0.9.3.

btw: i made a wechat group for communication 。 If you are interested , you can add my wechat: 18616792121 when you add ,please remark mediapipe

Evizero commented 1 year ago

I encountered the same issue. funny enough after going back to an older version that used to work, it doesn't seem to work anymore (this might be unrelated). maybe the upgrade to latest macos and xcode contributes somehow?

fengyun21 commented 1 year ago

I encountered the same issue. funny enough after going back to an older version that used to work, it doesn't seem to work anymore (this might be unrelated). maybe the upgrade to latest macos and xcode contributes somehow?

In my experience ,xcode14.2+mediapipe v0.9.21. compiled ok, xcode14.3+ mediapipe 0.9.2.1 compiled fail, xcode14.2+mediapipe v0.9.3 compiled fail.

kuaashish commented 1 year ago

@fengyun21, Apologies for the delayed response, Would you please try with Xcode 14.2 and MediaPipe 0.10.0? There is a known issue in Xcode 14.3 on which team is working and Please revert back if error still persists. Thank you!

github-actions[bot] commented 1 year ago

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

github-actions[bot] commented 1 year ago

This issue was closed due to lack of activity after being marked stale for past 7 days.

google-ml-butler[bot] commented 1 year ago

Are you satisfied with the resolution of your issue? Yes No