Closed uranus0206 closed 4 months ago
Hi. I finally solve the issue by uninstall cmake from homebrew and downgrade cmake version to 3.24.4 by official installer.
Now i can build MediaPipeTasksCommon and MediaPipeTasksVision xcframework.
And i also confirm the frameworks which i built from mac can be used by my example app.
OS Platform and Distribution
macOS 14.4.1
Compiler version
No response
Programming Language and version
Python3.11.9
Installed using virtualenv? pip? Conda?(if python)
pyenv
MediaPipe version
commit "6c463513"
Bazel version
6.1.1
XCode and Tulsi versions (if iOS)
Xcode 15.3
Android SDK and NDK versions (if android)
No response
Android AAR (if android)
No
OpenCV version (if running on desktop)
No response
Describe the problem
Framework build fail
Complete Logs
I am trying to build ios framework from source code. I found there's a script in
mediapipe/tasks/ios/build_ios_framework.sh
. I thought it's the script ot build mediapipe xcframework for ios platform.Then i try to build "MediaPipaTasksCommon" by the script. First i have encountered some python check error for external library org_tensorflow. I fix the issue by coping python env related parameters to .bazelrc as below.
Then i run the script again. However i got some error related to opencv.
According to errors, it seems failed on build opencv by cmake. I have installed cmake by homebrew and the info version as below
Also checked the suggestions to make sure xcode develop tools path https://github.com/google-ai-edge/mediapipe/issues/5221#issuecomment-1993658734
And from the suggestion about opencv source, i do not know what content i should change if i just want to build the xcframework same as cocoapods provided. https://github.com/google-ai-edge/mediapipe/issues/5143#issuecomment-1948598238
Is anyone try to build framework for ios too?