You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using AIDL to generate native service,build commonAPI gen_code and AIDL platform_ndk.so
build failed: error message
external/libcxx/include/memory:4972:16: error: use of dynamic_cast requires -frtti
_Tp* __p = dynamic_cast<_Tp*>(__r.get());
this error message solution:Android.bp add :rtti :true
but cause a new problem,
ld.lld: error: undefined symbol: typeinfo for aidl::android::hardware::xxx::adcu_hmiservice::BnAdcuService
referenced by AdcuHmiServiceStub.cpp
out/soong/.intermediates/hardware/interfaces/xxx/adcu/default/android.hardware.xxx.adcu_hmiservice_bin/android_vendor.32_arm64_armvnterfaces/xxx/adcu/default/src/AdcuHmiServiceStub.o:(typeinfo for aidl::android::hardware::xxx::adcu_hmiservice::stub::AdcuHmiServiceStub)
did you mean: vtable for aidl::android::hardware::xxx::adcu_hmiservice::BnAdcuService
defined in: out/soong/.intermediates/hardware/interfaces/xxx/adcu/android.hardware.xxx.adcu_hmiservice-V1-ndk_platform/android_vendor.32_arm64_arid.hardware.xxx.adcu_hmiservice-V1-ndk_platform.so
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
13:49:29 ninja failed with: exit status 1
AIDL gencode build failed,
Have you ever encountered this problem
Android.bp
Using AIDL to generate native service,build commonAPI gen_code and AIDL platform_ndk.so
build failed: error message
this error message solution:Android.bp add :rtti :true
but cause a new problem,
ld.lld: error: undefined symbol: typeinfo for aidl::android::hardware::xxx::adcu_hmiservice::BnAdcuService
AIDL gencode build failed,
Have you ever encountered this problem
Android.bp
cc_binary {
name: "android.hardware.xxx.adcu_hmiservice_bin",
relative_install_path: "hw",
stl: "c++_shared",
init_rc: ["config/xxx-adcu_hmiservice1.rc"],
vintf_fragments: ["config/xxx-adcu_hmiservice1.xml"],
vendor: true,
owner:"omg",
srcs: [
"src/AdcuHmiServiceMain.cpp",
"src/AdcuHmiServiceStub.cpp",
],
//ldflags: ["-export-dynamic"],
shared_libs: [
"libbase",
"libbinder_ndk",
"android.hardware.xxx.adcu_hmiservice-V1-ndk_platform",
"libCommonAPI",
"libADCU_HmiService-someip",
],
local_include_dirs: ["include", "src", "include/aidl/android/hardware/xxx/adcu_hmiservice/"],
}
The text was updated successfully, but these errors were encountered: