HomeiOS DevelopmentError, when construct Mediapipe graph for iOS utilizing bazel

Error, when construct Mediapipe graph for iOS utilizing bazel


I cloned official mediapipe repository and tried to construct examples for iOS, accordingly directions. However once I construct any instance I bought linking error.

For Intel iMac logs:

ERROR: /Customers/artemsokolovskiy/mediapipe0.10.1/mediapipe/mediapipe/graphs/face_detection/BUILD:56:23: Linking mediapipe/graphs/face_detection/face_detection_mobile_cpu_binary_graph_text_to_binary_graph [for tool] failed: (Exit 1): cc_wrapper.sh failed: error executing command (from goal //mediapipe/graphs/face_detection:face_detection_mobile_cpu_binary_graph_text_to_binary_graph)
(cd /personal/var/tmp/_bazel_artemsokolovskiy/8ec7566841d7814b73c1b8ae8937638c/sandbox/darwin-sandbox/1944/execroot/mediapipe && 
exec env - 
APPLE_SDK_PLATFORM=MacOSX 
APPLE_SDK_VERSION_OVERRIDE=13.1 
PATH=/usr/native/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin 
XCODE_VERSION_OVERRIDE=14.2.0.14C18 
ZERO_AR_DATE=1 
exterior/local_config_cc/cc_wrapper.sh @bazel-out/darwin-opt-exec-50AE0418-ST-0d1fe7b00ffe/bin/mediapipe/graphs/face_detection/face_detection_mobile_cpu_binary_graph_text_to_binary_graph-2.params)
Configuration: e9670154d5af08fa52d86e0762a1381506511f62455c5fc774c6bd94d6701f1f
Execution platform: @local_execution_config_platform//:platform

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox construct root for debugging
stderr (/personal/var/tmp/_bazel_artemsokolovskiy/8ec7566841d7814b73c1b8ae8937638c/execroot/mediapipe/bazel-out/_tmp/actions/stderr-326) 1953000 exceeds most dimension of --experimental_ui_max_stdouterr_bytes=1048576 bytes; skipping
Goal //mediapipe/examples/ios/facedetectioncpu:FaceDetectionCpuApp didn't construct
INFO: Elapsed time: 12.650s, Essential Path: 12.39s
INFO: 200 processes: 3 inner, 197 darwin-sandbox.
FAILED: Construct did NOT full efficiently

For Mac mini M1 logs:

ERROR: /Customers/timuribragimov/mediapipev0.10.1/mediapipe/mediapipe/graphs/face_detection/BUILD:56:23: Linking mediapipe/graphs/face_detection/face_detection_mobile_cpu_binary_graph_text_to_binary_graph [for tool] failed: (Exit 1): cc_wrapper.sh failed: error executing command (from goal //mediapipe/graphs/face_detection:face_detection_mobile_cpu_binary_graph_text_to_binary_graph)
(cd /personal/var/tmp/_bazel_timuribragimov/fedbca33a62f845c3a501d6b33f83488/sandbox/darwin-sandbox/1641/execroot/mediapipe && 
exec env - 
APPLE_SDK_PLATFORM=MacOSX 
APPLE_SDK_VERSION_OVERRIDE=13.1 
PATH=/usr/native/decide/ruby/bin:/usr/native/lib/ruby/gems/2.6.8/bin:/usr/native/decide/ruby/bin:/usr/native/lib/ruby/gems/2.6.0/bin:/usr/native/bin:/usr/native/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin 
XCODE_VERSION_OVERRIDE=14.2.0.14C18 
ZERO_AR_DATE=1 
exterior/local_config_cc/cc_wrapper.sh @bazel-out/darwin-opt-exec-50AE0418-ST-0d1fe7b00ffe/bin/mediapipe/graphs/face_detection/face_detection_mobile_cpu_binary_graph_text_to_binary_graph-2.params)
Configuration: e9670154d5af08fa52d86e0762a1381506511f62455c5fc774c6bd94d6701f1f
Execution platform: @local_execution_config_platform//:platform

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox construct root for debugging
stderr (/personal/var/tmp/_bazel_timuribragimov/fedbca33a62f845c3a501d6b33f83488/execroot/mediapipe/bazel-out/_tmp/actions/stderr-724) 1953000 exceeds most dimension of --experimental_ui_max_stdouterr_bytes=1048576 bytes; skipping
Goal //mediapipe/examples/ios/facedetectioncpu:FaceDetectionCpuApp didn't construct
INFO: Elapsed time: 74.324s, Essential Path: 67.76s
INFO: 500 processes: 80 inner, 420 darwin-sandbox.
FAILED: Construct did NOT full efficiently

Command to provide: bazel construct mediapipe/examples/ios/facedetectioncpu:FaceDetectionCpuApp –verbose_failures –copt=-fembed-bitcode –apple_bitcode=embedded

Mediapipe v0.10.1. Xcode 14.2. I attempted it on Intel iMac 2020 and on M1 Mac mini.
P.S. Additionally I attempted older variations of Mediapipe, however end result is identical.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments