Open trunghvbk opened 1 year ago
The Swift project is just a totally new project and I have not added any codes to it.
If I remove "//mediapipe/graphs/pose_tracking:pose_tracking_gpu_deps"
and "@ios_opencv//:OpencvFramework",
in deps
, it will build successfully. But I need to use the pose tracking graph to implement the Pose function, so please help.
Thanks!
Hi @trunghvbk,
Could you please outline the exact steps you are following, referencing the documentation? Additionally, kindly confirm the macOS version you are using—specifying whether it is based on the Silicon chip or Intel. This information will help us reproduce and better understand the issue on our end.
Thank you
Hi @kuaashish The steps I'm following:
bazel build //mediapipe/examples/ios/posetrackinggpuswift:PoseTrackingGpuSwiftApp --ios_multi_cpus=arm64 --xcode_version=15.0
My Macbook is Macbook pro 2020 M1.
@kuaashish FYI this is the folder structure
Can you try building OpenCV from source? You can pass --define=OPENCV=source
.
Hi @schmidt-sebastian Thanks for your response I tried using the argument as you said but it appears the ERROR
ERROR: /private/var/tmp/_bazel_admin/dd64d0bbc2d480ced47ba389824ddbde/external/rules_foreign_cc/toolchains/BUILD.bazel:192:11: in ninja_tool rule @rules_foreign_cc//toolchains:ninja_tool:
Traceback (most recent call last):
File "/private/var/tmp/_bazel_admin/dd64d0bbc2d480ced47ba389824ddbde/external/rules_foreign_cc/foreign_cc/built_tools/ninja_build.bzl", line 16, column 30, in _ninja_tool_impl
additional_tools = depset(
Error in depset: at index 0 of transitive, got element of type NoneType, want depset
ERROR: /private/var/tmp/_bazel_admin/dd64d0bbc2d480ced47ba389824ddbde/external/rules_foreign_cc/toolchains/BUILD.bazel:192:11: Analysis of target '@rules_foreign_cc//toolchains:ninja_tool' failed
ERROR: Analysis of target '//mediapipe/examples/ios/posetrackinggpuswift:PoseTrackingGpuSwiftApp' failed; build aborted:
INFO: Elapsed time: 58.478s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (226 packages loaded, 28508 target\
s configured)
OS Platform and Distribution
MacOS 13.6
Compiler version
Apple clang version 15.0.0
Programming Language and version
Swift 5
Installed using virtualenv? pip? Conda?(if python)
No response
MediaPipe version
I pull the latest
main
branch (v10.7 on github version)Bazel version
bazel 6.3.2-homebrew
XCode and Tulsi versions (if iOS)
XCode 15.0
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
Failed when I run bazel build
bazel build //mediapipe/examples/ios/posetrackinggpuswift:PoseTrackingGpuSwiftApp --ios_multi_cpus=arm64 --xcode_version=15.0
BUILD
file content:Complete Logs