Use Android NDK pre-built library in AOSP

206 views
Skip to first unread message

Dan Cape

unread,
Nov 21, 2018, 8:55:08 PM11/21/18
to android-porting
I have a library that was built with cmake using the NDK libc++_shared. I want to use that library in a HAL that I'm working on. From what I have seen, android sees some of its functions as incompatible due to one being built by the NDK and the HAL being being built with the AOSP libc++. Some function definitions don't line up. One is prefixed by std::__1 and the other has std::__ndk1. Is there some way to reconcile this?

Thanks

NIRAJ DESAI

unread,
Sep 30, 2019, 4:49:51 PM9/30/19
to android-porting
I have the same issue

Using libc++_shared.so in the NDK results in the symbols looking for std::__ndk1 whereas linking to a HAL implementation ends up searching for std::__1

thus preventing the linker from finding the symbols

Any way around this? 
Reply all
Reply to author
Forward
0 new messages