Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolchain error while building on M1 mac #81

Closed
arnoldy opened this issue Mar 5, 2021 · 2 comments
Closed

Toolchain error while building on M1 mac #81

arnoldy opened this issue Mar 5, 2021 · 2 comments
Labels
host:macos Issue that occurs when host OS is macOS type:build/install Cannot build/install the plugin

Comments

@arnoldy
Copy link

arnoldy commented Mar 5, 2021

Hi. Trying to build libs for macOS, iOS, and android.
Followed the installation guide both MediaPipe and from your repo.
MediaPipe "HelloWorld" proj works.
When I try to run make cpu, make ios_arm64 or make android_arm64 I get toolchain errors
For make ios_arm64:

ERROR: While resolving toolchains for target @org_tensorflow//tensorflow/tools/git:gen_git_source: No matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type. Maybe --incompatible_use_cc_configure_from_rules_cc has been flipped and there is no default C++ toolchain added in the WORKSPACE file? See https://github.com/bazelbuild/bazel/issues/10134 for details and migration instructions.
ERROR: Analysis of target '//mediapipe_api/objc:MediaPipeUnity' failed; build aborted: No matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type. Maybe --incompatible_use_cc_configure_from_rules_cc has been flipped and there is no default C++ toolchain added in the WORKSPACE file? See https://github.com/bazelbuild/bazel/issues/10134 for details and migration instructions.
INFO: Elapsed time: 1.120s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded, 3626 targets c\
onfigured)

System: MacBook Pro M1
OS: Big Sur
Bazel: 3.7.2
Xcode: 12.4

Thanks in advance.

@homuler
Copy link
Owner

homuler commented Mar 6, 2021

MediaPipe does not support M1 yet.
Please see the below comment for more details.
google-ai-edge/mediapipe#1514 (comment)

@homuler homuler changed the title Toolchain error while building on MacOS Toolchain error while building on M1 mac Mar 6, 2021
@homuler
Copy link
Owner

homuler commented Dec 4, 2021

fixed by #366

@homuler homuler closed this as completed Dec 4, 2021
@homuler homuler added host:macos Issue that occurs when host OS is macOS type:build/install Cannot build/install the plugin labels Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
host:macos Issue that occurs when host OS is macOS type:build/install Cannot build/install the plugin
Projects
None yet
Development

No branches or pull requests

2 participants