在 Apple Silicon 上构建 Alexa Auto SDK
Build Alexa Auto SDK on Apple Silicon
我尝试构建 Alexa Auto SDK https://github.com/alexa/alexa-auto-sdk/blob/3.2/builder/README.md
并且我使用的是 Apple Silicon M1,已成功安装 Docker 但是
遗憾的是我运行现在
./builder/build.sh android -t androidx86-64 --android-api 28
进入
Build Configuration:
BB_VERSION = "1.36.0"
BUILD_SYS = "aarch64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "x86_64-linux-android"
MACHINE = "androidx86-64"
DISTRO = "aac"
DISTRO_VERSION = "3.2.0"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
meta-aac-ubuntu = "GithubActionDocker:d95957b17c830989e17cb92440bfbda90135e051"
meta = "HEAD:1b18cdf6b8bdb00ff5df165b9ac7bc2b10c87d57"
meta-aac
meta-aac-builder = "GithubActionDocker:d95957b17c830989e17cb92440bfbda90135e051"
Initialising tasks: 100% |############################################################################################################| Time: 0:00:02
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: zlib-native-1.0-r0 do_install: Function failed: do_install (log file is located at /workdir/build/tmp-android-28/work/aarch64-linux/zlib-native/1.0-r0/temp/log.do_install.4431)
ERROR: Logfile of failure stored in: /workdir/build/tmp-android-28/work/aarch64-linux/zlib-native/1.0-r0/temp/log.do_install.4431
Log data follows:
| DEBUG: Executing shell function do_install
| cp: cannot stat '/usr/lib/x86_64-linux-gnu/libz.*': No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install (log file is located at /workdir/build/tmp-android-28/work/aarch64-linux/zlib-native/1.0-r0/temp/log.do_install.4431)
ERROR: Task (/home/builder/aac/builder/meta-aac-ubuntu/recipes-native/zlib/zlib-native.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 67 tasks of which 0 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/builder/aac/builder/meta-aac-ubuntu/recipes-native/zlib/zlib-native.bb:do_install
有人知道如何解决这个问题吗?
我不知道这是否能解决您的问题,但我在 MAC OS 机器(基于英特尔)上为 android 构建 auto-sdk 时遇到了类似的问题硅)
我们能够通过增加 docker 默认 ram 使用(设置为 2gb)来解决问题。
https://docs.docker.com/desktop/mac/
增加到 6gb 后,它完美运行。
我尝试构建 Alexa Auto SDK https://github.com/alexa/alexa-auto-sdk/blob/3.2/builder/README.md
并且我使用的是 Apple Silicon M1,已成功安装 Docker 但是
遗憾的是我运行现在
./builder/build.sh android -t androidx86-64 --android-api 28
进入
Build Configuration:
BB_VERSION = "1.36.0"
BUILD_SYS = "aarch64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "x86_64-linux-android"
MACHINE = "androidx86-64"
DISTRO = "aac"
DISTRO_VERSION = "3.2.0"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
meta-aac-ubuntu = "GithubActionDocker:d95957b17c830989e17cb92440bfbda90135e051"
meta = "HEAD:1b18cdf6b8bdb00ff5df165b9ac7bc2b10c87d57"
meta-aac
meta-aac-builder = "GithubActionDocker:d95957b17c830989e17cb92440bfbda90135e051"
Initialising tasks: 100% |############################################################################################################| Time: 0:00:02
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: zlib-native-1.0-r0 do_install: Function failed: do_install (log file is located at /workdir/build/tmp-android-28/work/aarch64-linux/zlib-native/1.0-r0/temp/log.do_install.4431)
ERROR: Logfile of failure stored in: /workdir/build/tmp-android-28/work/aarch64-linux/zlib-native/1.0-r0/temp/log.do_install.4431
Log data follows:
| DEBUG: Executing shell function do_install
| cp: cannot stat '/usr/lib/x86_64-linux-gnu/libz.*': No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install (log file is located at /workdir/build/tmp-android-28/work/aarch64-linux/zlib-native/1.0-r0/temp/log.do_install.4431)
ERROR: Task (/home/builder/aac/builder/meta-aac-ubuntu/recipes-native/zlib/zlib-native.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 67 tasks of which 0 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/builder/aac/builder/meta-aac-ubuntu/recipes-native/zlib/zlib-native.bb:do_install
有人知道如何解决这个问题吗?
我不知道这是否能解决您的问题,但我在 MAC OS 机器(基于英特尔)上为 android 构建 auto-sdk 时遇到了类似的问题硅) 我们能够通过增加 docker 默认 ram 使用(设置为 2gb)来解决问题。 https://docs.docker.com/desktop/mac/ 增加到 6gb 后,它完美运行。