ndk icon indicating copy to clipboard operation
ndk copied to clipboard

libc++_shared.so missing in ROM

Open Murphy0571 opened this issue 8 years ago • 2 comments

Description

Hi guys,

I'm using NDK r18 and linking libc++_shared.so as the STL implementation for clang.

APP_STL := c++_shared NDK_TOOLCHAIN_VERSION=clang

However, from ROM's /system/lib or /vendor/lib or any other relevant directories, there is no such libc++_shared.so and only a libc++.so existing. Therefore naturally I had the error that libc++_shared.so couldn't be found.

Appreciate your support.

Br, Murphy

Environment Details

  • NDK Version: r18
  • Build system: ndk-build
  • Host OS: Ubuntu 16.04
  • Compiler: clang
  • ABI: armeabi-v7a
  • STL: c++_shared
  • NDK API level: any
  • Device API level: any

Murphy0571 avatar Nov 02 '18 07:11 Murphy0571

you need to ship libc++_shared within your apk

amartinz avatar Nov 02 '18 11:11 amartinz

amartinz is corect. see the "note" at https://developer.android.com/ndk/guides/cpp-support#libc

i'll reorder that page to make it a bit more logical...

enh avatar Nov 02 '18 15:11 enh