【问题标题】:Linking gnustl into Android ndk project with stlport_static使用 stlport_static 将 gnustl 链接到 Android ndk 项目
【发布时间】: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


    【解决方案1】:
    猜你喜欢
    • 2021-02-06
    • 1970-01-01
    • 1970-01-01
    • 2012-04-09
    • 2011-11-06
    • 2017-05-29
    • 1970-01-01
    • 2012-05-22
    • 2012-08-06
    相关资源
    最近更新 更多