vsomeip icon indicating copy to clipboard operation
vsomeip copied to clipboard

Android build error [branch: master]

Open dterletskiy opened this issue 2 years ago • 3 comments

I've identified the following build error for AOSP build:

error: external/covesa/someip/vsomeip/Android.bp:176:1: module "vsomeip-helloworld-client" variant "android_vendor.31_x86_64": module source path "external/covesa/someip/vsomeip/examples/hello_world/hello_world_client.cpp" does not exist
error: external/covesa/someip/vsomeip/Android.bp:185:1: module "vsomeip-helloworld-service" variant "android_vendor.31_x86_64": module source path "external/covesa/someip/vsomeip/examples/hello_world/hello_world_service.cpp" does not exist

It seems to be the consequence of the following commit: https://github.com/COVESA/vsomeip/commit/18e8b7f98c3ecc9cf3bc7bd6c5c1098ad397d9ac

=> Could you, please, have a look at this issue? It blocks our work with Some/IP.

dterletskiy avatar Mar 24 '22 15:03 dterletskiy

Change the code in vsomeip/Android.bp :

cc_binary {
    name: "vsomeip-helloworld-client",
    defaults: ["vsomeip_example_defaults"],

    srcs: [
        "examples/hello_world/hello_world_client.cpp",
    ],
}

cc_binary {
    name: "vsomeip-helloworld-service",
    defaults: ["vsomeip_example_defaults"],

    srcs: [
        "examples/hello_world/hello_world_service.cpp",
    ],
}

To

cc_binary {
    name: "vsomeip-helloworld-client",
    defaults: ["vsomeip_example_defaults"],

    srcs: [
        "examples/hello_world/hello_world_client_main.cpp",
    ],
}

cc_binary {
    name: "vsomeip-helloworld-service",
    defaults: ["vsomeip_example_defaults"],

    srcs: [
        "examples/hello_world/hello_world_service_main.cpp",
    ],
}

It works for me and I hope it can help you.

Sphinxes0o0 avatar Apr 19 '22 19:04 Sphinxes0o0

The question is not how to fix it. I did it locally. The question is I clone automatically several github repos and build then. But it this case build system does not work without additional patching and so on.

But, anyway, thank for reply.

dterletskiy avatar May 01 '22 12:05 dterletskiy

you can compile the project with the demo not compilie

ByteXiaoTang avatar Jul 18 '22 06:07 ByteXiaoTang