,我这里直接编译通过了,但是 out 目录下 system.img 等一些列镜像都没出来。 有人用过 mac osm2 编译过 aosp 嘛
1
pioooooooooip OP ❯ make
build/make/core/soong_config.mk:209: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead. build/make/core/soong_config.mk:210: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead. ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=13 TARGET_PRODUCT=aosp_flame TARGET_BUILD_VARIANT=userdebug TARGET_BUILD_TYPE=release TARGET_ARCH=arm64 TARGET_ARCH_VARIANT=armv8-a TARGET_CPU_VARIANT=generic TARGET_2ND_ARCH=arm TARGET_2ND_ARCH_VARIANT=armv8-a TARGET_2ND_CPU_VARIANT=generic HOST_ARCH=x86_64 HOST_OS=darwin HOST_OS_EXTRA=Darwin-22.3.0-x86_64-13.2.1 HOST_CROSS_OS=darwin HOST_CROSS_ARCH=arm64 HOST_BUILD_TYPE=release BUILD_ID=TQ2A.230405.003.E1 OUT_DIR=out PRODUCT_SOONG_NAMESPACES=hardware/google/av hardware/google/camera hardware/google/interfaces hardware/google/pixel device/google/coral hardware/qcom/sm8150/display hardware/qcom/sm8150/data/ipacfg-mgr hardware/qcom/sm8150/gps vendor/google/airbrush/floral vendor/google/biometrics/face/florence vendor/google/camera vendor/google/darwinn vendor/google_devices/common/proprietary/confirmatioui_hal vendor/google_nos/host/android vendor/qcom/sm8150 vendor/qcom/sm8150/proprietary/commonsys/telephony-apps/DataStatusNotification vendor/qcom/sm8150/proprietary/gps vendor/qcom/sm8150/proprietary/qmi vendor/qcom/sm8150/codeaurora/location vendor/google/interfaces vendor/google_nos/test/system-test-harness vendor/qcom/sensors vendor/google/tools/sensors vendor/qcom/sm7250/codeaurora/commonsys/telephony/ims/ims-ext-common vendor/qcom/sm7250/codeaurora/dataservices/rmnetctl vendor/qcom/sm7250/proprietary/commonsys/qcrilOemHook vendor/qcom/sm7250/proprietary/commonsys/telephony-apps/ims vendor/qcom/sm7250/proprietary/commonsys/telephony-apps/QtiTelephonyService vendor/qcom/sm7250/proprietary/commonsys/telephony-apps/xdivert vendor/qcom/sm7250/proprietary/qcril-data-hal vendor/qcom/sm7250/proprietary/qcril-hal vendor/qcom/sm7250/proprietary/data vendor/qcom/proprietary/bluetooth/hidl_client ============================================ [ 95% 916/964] //frameworks/compile/slang/BitWriter_3_2:libLLVMBitWriter_3_2 clang++ BitcodeWriter.cpp [darwin] frameworks/compile/slang/BitWriter_3_2/BitcodeWriter.cpp:646:12: warning: variable 'MDLocationAbbrev' set but not used [-Wunused-but-set-variable] unsigned MDLocationAbbrev = 0; ^ 1 warning generated. [ 95% 917/964] //frameworks/compile/slang/BitWriter_3_2:libLLVMBitWriter_3_2 clang++ BitcodeWriter.cpp [darwin arm64] frameworks/compile/slang/BitWriter_3_2/BitcodeWriter.cpp:646:12: warning: variable 'MDLocationAbbrev' set but not used [-Wunused-but-set-variable] unsigned MDLocationAbbrev = 0; ^ 1 warning generated. [ 97% 939/964] //frameworks/compile/libbcc/bcinfo:libbcinfo clang++ MetadataExtractor.cpp [darwin arm64] frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp:213:8: warning: variable 'success' set but not used [-Wunused-but-set-variable] bool success = true; ^ 1 warning generated. [ 97% 941/964] //frameworks/compile/libbcc/bcinfo:libbcinfo clang++ MetadataExtractor.cpp [darwin] frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp:213:8: warning: variable 'success' set but not used [-Wunused-but-set-variable] bool success = true; ^ 1 warning generated. [ 99% 960/964] //frameworks/compile/libbcc/tools/bcc:bcc link bcc [darwin] clang-14: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] [ 99% 961/964] //frameworks/compile/libbcc/tools/bcc:bcc link bcc [darwin arm64] clang-14: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] [100% 964/964] Install out/host/darwin-x86/bin/bcc #### build completed successfully (01:18 (mm:ss)) #### 这是编译日志 |
2
Shatyuka 2023-08-01 00:52:27 +08:00 via iPhone 1
建议别,官方已经放弃支持 macos 下编译了,坑只会越来越多
|
3
findex 2023-08-01 02:47:19 +08:00 via iPhone
干正事请放过苹果 m 芯片。新出的 x86 cpu 和 n 卡甩苹果几条街。手握 m 芯片的 mbp 真的干不了多少正事,剪视频作图什么的还不错。clang 是苹果吹捧的。建议先编译一个 arm64 的 gcc ,再用 gcc 编译其他软件。
|
4
t123yh 2023-08-01 07:43:15 +08:00
装个 VMware fusion ,在里面跑 Linux
|
5
LXGMAX 2023-08-01 10:01:26 +08:00
不建议浪费时间在这上面
|
6
rev1si0n 2023-08-01 12:27:49 +08:00
重要提示:自 2021 年 6 月 22 日起,我们不再支持在 MacOS 上进行平台开发。
用 M1 进行这些底层编译纯属找罪受。 |
7
mmdsun 2023-08-01 12:32:40 +08:00 via iPhone
换乌班图吧,Windows 上我用 WSL 2
|
8
mxT52CRuqR6o5 2023-08-01 13:03:51 +08:00
我觉得虚拟机里装个 arm linux 可能都容易编译一些
|
9
pioooooooooip OP 看来只能这样了,另外一台戴尔不支持 vt 虚拟化,想整个 docker 运行看看,也不行,唉
@mmdsun |
10
pioooooooooip OP @LXGMAX 谢谢,不瞎搞了,换 Ubuntu 虚拟机了
|
11
pioooooooooip OP @mmdsun 谢谢,换 ubuntu 了
|
12
pioooooooooip OP @rev1si0n 是啊,不搞了,换 ubuntu 了,感谢
|
13
pioooooooooip OP @findex 苹果 ios 开发还行吧
|
14
pioooooooooip OP @t123yh 谢谢,只能这样了
|