【发布时间】:2017-03-25 08:13:22
【问题描述】:
在我的 Android.mk 和 Application.mk 中,我使用的是使用 stlpot_static 构建的静态库,但我想使用 gnustl 而不是 stlport 来构建我的项目,因为我需要支持 c++11我的项目。
早些时候我在我的项目中使用APP_STL := stlport_sharedApplication.mk,我的项目运行成功。
但是现在我想让它APP_STL := gnustl_shared,项目编译成功,但它在运行时崩溃给我一个错误java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZNSt13_Filebuf_base12_M_page_sizeE",当我检查这个错误时,我在我的静态库中发现了这个依赖关系,它是使用stlport_static构建的。
如何在我的项目中使用 gnustl 而不会干扰依赖于 stlport_static 的静态库。
【问题讨论】:
标签: android c++11 android-ndk shared-libraries stlport