【问题标题】:is it binary compatible for emdebian and android?它二进制兼容 emdebian 和 android 吗?
【发布时间】:2010-05-27 09:35:45
【问题描述】:

Android ndk 很难用于旧的基于 autoconf 的代码,所以我使用了 scratchbox2/emdebian 来拥有一个完整的构建环境。我可以在 emdebian(arch 是 armel)中构建一个共享库,然后在 android 中使用它吗?

【问题讨论】:

    标签: android android-ndk binary-compatibility scratchbox


    【解决方案1】:

    官方 NDK 附带一个 GCC 版本,可与 Google 的自定义 Bionic libc 配合使用。如果您正在使用旨在与 GNU libc 一起使用的 GCC 版本,那么您必须静态链接它(就像 Crystax NDK 所做的那样)。因此,即使您的编译器生成了正确的指令,也可能值得重新设计您的构建环境以避免不必要地膨胀您的应用程序。

    【讨论】:

    【解决方案2】:

    armel 是 Arm Eabi。 Android 是 ARMv5 eABI。它们可能会兼容。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-10-11
      • 1970-01-01
      • 2011-11-13
      • 2013-01-30
      • 2018-12-27
      • 1970-01-01
      • 2020-05-12
      • 2011-08-03
      相关资源
      最近更新 更多