美文网首页
build/make/core/Makefile:49: err

build/make/core/Makefile:49: err

作者: gale_小米 | 来源:发表于2021-09-09 11:58 被阅读0次

    集成第三方算法库时遇到的错误
    要求替换:/vendor/lib/hw/audio.stub.default.so
    [100% 341/341] writing build rules ...
    FAILED:
    build/make/core/Makefile:49: error: overriding commands for target `out/target/product/xxx/vendor/lib/hw/audio.stub.default.so', previously defined at build/make/core/base_rules.mk:492
    11:32:56 ckati failed with: exit status 1

    解决方案:
    1.找到对应的库生成地方
    \hardware\libhardware\modules\audio\Android.bp
    2.注释掉中间的代码
    /cc_library_shared {
    name: "audio.stub.default",
    relative_install_path: "hw",
    proprietary: true,
    srcs: ["audio_hw.c"],
    header_libs: ["libhardware_headers"],
    shared_libs: [
    "liblog",
    ],
    cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"],
    }
    /

    相关文章

      网友评论

          本文标题:build/make/core/Makefile:49: err

          本文链接:https://www.haomeiwen.com/subject/xwyiwltx.html