V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
pioooooooooip
V2EX  ›  Android

有人用过苹果 m2 编译 aosp 嘛

  •  
  •   pioooooooooip · 2023-07-31 21:50:55 +08:00 · 8624 次点击
    这是一个创建于 481 天前的主题,其中的信息可能已经有所发展或是发生改变。

    ,我这里直接编译通过了,但是 out 目录下 system.img 等一些列镜像都没出来。 有人用过 mac osm2 编译过 aosp 嘛

    14 条回复    2023-08-01 17:29:54 +08:00
    pioooooooooip
        1
    pioooooooooip  
    OP
       2023-07-31 21:53:34 +08:00
    ❯ 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)) ####
    这是编译日志
    Shatyuka
        2
    Shatyuka  
       2023-08-01 00:52:27 +08:00 via iPhone   ❤️ 1
    建议别,官方已经放弃支持 macos 下编译了,坑只会越来越多
    findex
        3
    findex  
       2023-08-01 02:47:19 +08:00 via iPhone
    干正事请放过苹果 m 芯片。新出的 x86 cpu 和 n 卡甩苹果几条街。手握 m 芯片的 mbp 真的干不了多少正事,剪视频作图什么的还不错。clang 是苹果吹捧的。建议先编译一个 arm64 的 gcc ,再用 gcc 编译其他软件。
    t123yh
        4
    t123yh  
       2023-08-01 07:43:15 +08:00
    装个 VMware fusion ,在里面跑 Linux
    LXGMAX
        5
    LXGMAX  
       2023-08-01 10:01:26 +08:00
    不建议浪费时间在这上面
    rev1si0n
        6
    rev1si0n  
       2023-08-01 12:27:49 +08:00
    重要提示:自 2021 年 6 月 22 日起,我们不再支持在 MacOS 上进行平台开发。

    用 M1 进行这些底层编译纯属找罪受。
    mmdsun
        7
    mmdsun  
       2023-08-01 12:32:40 +08:00 via iPhone
    换乌班图吧,Windows 上我用 WSL 2
    mxT52CRuqR6o5
        8
    mxT52CRuqR6o5  
       2023-08-01 13:03:51 +08:00
    我觉得虚拟机里装个 arm linux 可能都容易编译一些
    pioooooooooip
        9
    pioooooooooip  
    OP
       2023-08-01 17:28:11 +08:00
    看来只能这样了,另外一台戴尔不支持 vt 虚拟化,想整个 docker 运行看看,也不行,唉
    @mmdsun
    pioooooooooip
        10
    pioooooooooip  
    OP
       2023-08-01 17:28:28 +08:00
    @LXGMAX 谢谢,不瞎搞了,换 Ubuntu 虚拟机了
    pioooooooooip
        11
    pioooooooooip  
    OP
       2023-08-01 17:29:00 +08:00
    @mmdsun 谢谢,换 ubuntu 了
    pioooooooooip
        12
    pioooooooooip  
    OP
       2023-08-01 17:29:18 +08:00
    @rev1si0n 是啊,不搞了,换 ubuntu 了,感谢
    pioooooooooip
        13
    pioooooooooip  
    OP
       2023-08-01 17:29:36 +08:00
    @findex 苹果 ios 开发还行吧
    pioooooooooip
        14
    pioooooooooip  
    OP
       2023-08-01 17:29:54 +08:00
    @t123yh 谢谢,只能这样了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2673 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 15:15 · PVG 23:15 · LAX 07:15 · JFK 10:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.