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.07k stars 5.11k forks source link

when i use Tulsi generated Xcode project of handtracking , report error #4746

Closed chensisi0730 closed 1 year ago

chensisi0730 commented 1 year ago

OS Platform and Distribution

iOS

Compiler version

No response

Programming Language and version

oc

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

No response

MediaPipe version

0.9.2.1

Bazel version

5.2.0

XCode and Tulsi versions (if iOS)

14.3.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

brew config 
HOMEBREW_VERSION: 4.1.7
ORIGIN: https://github.com/Homebrew/brew
HEAD: d4444b563e24ac7c05a93121c464c02dfa04d44f
Last commit: 4 days ago
Core tap origin: https://github.com/Homebrew/homebrew-core
Core tap HEAD: d793577b4ad83222bb580364ff66b1c5fede26a6
Core tap last commit: 32 hours ago
Core tap branch: master
Core tap JSON: 30 Aug 08:57 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.10 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.10_1/bin/ruby
CPU: octa-core 64-bit icelake
Clang: 14.0.3 build 1403
Git: 2.33.0 => /usr/local/bin/git
Curl: 8.1.2 => /usr/bin/curl
macOS: 13.5.1-x86_64
CLT: 14.3.1.0.1.1683849156
Xcode: 14.3.1

note: this is intel cpu , not the same as #4741

i build in command line is ok ( bazel build -c opt --config=ios_arm64 mediapipe/examples/ios/handtrackinggpu:HandTrackingGpuApp)

when i use Tulsi  generated Xcode project of handtracking , report error

Complete Logs

/Users/zhiyun/work/mediapipe_work/ios/mediapipe_github/mediapipe/mediapipe/examples/ios/handtrackinggpu/BUILD:34:16: Target '//mediapipe/examples/ios/handtrackinggpu:HandTrackingGpuApp' depends on toolchain '@local_config_cc//:cc-compiler-darwin_x86_64', which cannot be found: no such target '@local_config_cc//:cc-compiler-darwin_x86_64': target 'cc-compiler-darwin_x86_64' not declared in package '' defined by /private/var/tmp/_bazel_zhiyun/2b457a6c89375daa2c15805eefa1944d/external/local_config_cc/BUILD'
chensisi0730 commented 1 year ago

note: this is intel cpu , not the same as #4741, in #4741 it is M1 cpu. err20

/Users/zhiyun/work/mediapipe_work/ios/mediapipe_github/mediapipe/mediapipe/examples/ios/handtrackinggpu/BUILD:34:16: Target '//mediapipe/examples/ios/handtrackinggpu:HandTrackingGpuApp' depends on toolchain '@local_config_cc//:cc-compiler-darwin_x86_64', which cannot be found: no such target '@local_config_cc//:cc-compiler-darwin_x86_64': target 'cc-compiler-darwin_x86_64' not declared in package '' defined by /private/var/tmp/_bazel_zhiyun/2b457a6c89375daa2c15805eefa1944d/external/local_config_cc/BUILD'

I exported the XCODE project according to the official tutorial refer to https://tulsi.bazel.build/docs/gettingstarted.html https://developers.google.com/mediapipe/framework/getting_started/ios

schmidt-sebastian commented 1 year ago

Please use the Hand Landmarker iOS Task via CocoaPods: https://github.com/google/mediapipe/tree/master/mediapipe/tasks/ios/vision/hand_landmarker

We unfortunately don't have documentation for this yet, but you can look at https://developers.google.com/mediapipe/solutions/vision/face_detector/ios

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

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