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)
@LovelyBuggies
pwdinandroid-ndk-r15cdirectory andecho $ANDROID_NDK_HOMEto confirm.This is a possible solution. https://stackoverflow.com/questions/45276830/xcode-version-must-be-specified-to-use-an-apple-crosstool