We build individually our CMakelist based application, using Android Studio NDK toolchain and created libPVIS_r.a file. For building the libPVIS_r.a, the below attached script is used.
This static lib libPVIS_r.a is linked to EVS_APP using Android.bp file (/packages/services/Car/cpp/evs/apps/default/Android.bp) as follows:
But while building EVS_APP, we are getting following error:
**ld.lld: error: undefined symbol: std::ndk1::next_prime(unsigned long)
referenced by hash_table:2381 (/home/che7/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/hash_table:2381)**
Could you please help to understand what went wrong here?
Note : The same libPVIS_r.a, if there is no function call to std::unordered_map from inside lib, the EVS_APP build is successful.
Android code was checked out from here: https://github.com/raspberry-vanilla/android_local_manifest/tree/android-13.0 EVS_APP build successfully.
We build individually our CMakelist based application, using Android Studio NDK toolchain and created libPVIS_r.a file. For building the libPVIS_r.a, the below attached script is used.
This static lib libPVIS_r.a is linked to EVS_APP using Android.bp file (/packages/services/Car/cpp/evs/apps/default/Android.bp) as follows:
But while building EVS_APP, we are getting following error: **ld.lld: error: undefined symbol: std::ndk1::next_prime(unsigned long)
Could you please help to understand what went wrong here?
Note : The same libPVIS_r.a, if there is no function call to std::unordered_map from inside lib, the EVS_APP build is successful.