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

Build issue on Mac/IOS build on Intel Mac - Mediapipe 0.8.8 - Error wth bazel repository mirrors #339

Closed
ROBYER1 opened this issue Nov 3, 2021 · 2 comments

Comments

@ROBYER1
Copy link

ROBYER1 commented Nov 3, 2021

System information

  • OS Platform and Distribution: Intel Mac MacOS Big Sur 11.5.2
  • Target desktop cpu/IOS
  • Bazel version: 3.7.2
  • Python version: 3.9.0
  • Unity version: 2021.1.17f1

Describe the problem

Using Mediapipe 0.8.8 branch https://github.com/homuler/MediaPipeUnityPlugin/tree/build/mediapipe-0.8.8 I am having build issues on MacOS on a non-M1 mac for Mac OS CPU/IOS. I was able to build Mediapipe fine for Windows Desktop CPU and Android with this branch so this issue is only on Mac/IOS

I get errors such as these:
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/28407b24f04694a1353ffca91248e89bc250eb5b.zip failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found

The build completes with no fatal errors however a lot of tensorflow mirrors do not download (I have checked my internet here and tried multiple sources).

In Unity when I open the project, I see these errors that won't clear, plugins set to run on startup too
Screenshot 2021-11-03 at 13 20 55

Steps to reproduce the issue
Pull that branch and follow your readme steps for building on MacOS/IOS, I used this build command to test, as well as separate tests for macos and ios separate
python build.py build --desktop cpu --ios arm64 -v

Full logs
Logs:
logs.txt

@ROBYER1
Copy link
Author

ROBYER1 commented Nov 3, 2021

This could be related, although I do not hit that fatal error, it appears to build fine but doesn't work

google-ai-edge/mediapipe#2324

Edit:

I followed this comment and I will report back if it builds and works now - may be that bazel needs to be cleared if it has any leftover cache from previous builds somehow, for example I built Mediapipe 0.8.4 prior to trying to build 0.8.8.

bazel shutdown && bazel clean --expunge

@ROBYER1
Copy link
Author

ROBYER1 commented Nov 3, 2021

Confirmed that command and a rebuild fixed it - will close this now but hopefully this issue helps others if they have the same problems

@ROBYER1 ROBYER1 closed this as completed Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant