mace: Build failed on MacOS

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS Catalina
  • NDK version(e.g., 15c): r15c
  • GCC version(if compiling for host, e.g., 5.4.0): Apple clang version 11.0.3 (clang-1103.0.32.29)
  • MACE version (Use the command: git describe --long --tags): v0.13.0-0-g9a06864a
  • Python version(2.7): 3.7.6
  • Bazel version (e.g., 0.13.0): 3.1.0

Model deploy file (*.yml)

mace-models/mobilenet-v2/mobilenet-v2.yml

Describe the problem

I am using MacOS to build Mace and meet the problem. I follow the manual install guide and use corresponding commands to install bazel, Andriod NDK, and extra tools. But when I try to build an example model with python3 tools/converter.py convert --config=/../mace-models/mobilenet-v2/mobilenet-v2.yml, an error is thrown:

ERROR: /Users/nino/bazel/mace/WORKSPACE:144:1: name 'new_http_archive' is not defined
ERROR: /Users/nino/bazel/mace/WORKSPACE:155:1: name 'new_http_archive' is not defined
ERROR: error loading package 'external': Package 'external' contains errors
INFO: Elapsed time: 0.104s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
ERROR: tools/python/py_proto/__init__.py:43: Failed in proto files' building

Can we set up Mace on OSX? And could you please give me some suggestions to deal with it?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

@LovelyBuggies

  1. You are using different versions of documents and codes, please read the corresponding version of the document according to the codes. So, there is no typo.
  2. Are all the files in the root directory? You can execute pwd in android-ndk-r15c directory and echo $ANDROID_NDK_HOME to confirm.