简体   繁体   English

为android 64位arm架构构建本机代码

[英]build native code for android 64-bit arm architecture

We have a native .so file for 32-bit Android. 我们有一个用于32位Android的本地.so文件。 We need to port it to 64-bit Android code (for Android L). 我们需要将其移植到64位Android代码(适用于Android L)。 We are not using NDK to build. 我们没有使用NDK进行构建。 We use make files and arm-linux-androideabi-g++ with command line options to build our source. 我们使用make文件和带有命令行选项的arm-linux-androideabi-g ++来构建源代码。

Can someone please let me know how to port our code to 64-bit Android platform? 有人可以让我知道如何将我们的代码移植到64位Android平台吗?

You'll need to create a new standalone toolchain (same process you used to generate arm-linux-androideabi-g++ ) for arm64 (requires NDK r10). 您需要为arm-linux-androideabi-g++创建一个新的独立工具链(用于生成arm-linux-androideabi-g++相同过程)(需要NDK r10)。

http://www.kandroid.org/ndk/docs/STANDALONE-TOOLCHAIN.html http://www.kandroid.org/ndk/docs/STANDALONE-TOOLCHAIN.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Phonegap Build-错误-应用程序不支持强制性的arm64(64位支持)体系结构 - Phonegap Build - Error - app does not support the compulsory arm64 (64-bit support) architecture 如何使用Expo CLI为Android构建64位本机代码 - How to Build 64-bit native code for android using Expo CLI DS-5版,用于使用Arm 64位和32位本机库开发和调试Android应用 - DS-5 edition to develop and debug Android Apps with Arm 64-bit and 32-bit native libraries 哪个版本的android OS支持64位架构 - Which version of android OS support 64-bit architecture 由于缺少 64 位库,无法构建 64 位版本的 Ionic Android App - Can't build 64-bit version of Ionic Android App due to missing 64-bit library Windows 8.1 64位上的“ionic build android”:错误:Hook失败,错误代码为ENOENT - “ionic build android” on windows 8.1 64-bit: Error: Hook failed with error code ENOENT 反应原生Android 64位升级问题 - React Native Android 64-bit upgrading issue Android Native - 何时使用64位NDK? - Android Native - When to use 64-bit NDK? 如何制作同时支持 32 位和 64 位架构的 Android 应用程序? - How to make Android apps which support both 32-bit and 64-bit architecture? 对于具有本机代码的应用,Android的新64位要求是否意味着新的最低API级别为21? - Does Android's new 64-bit requirement mean the new minimum API level is 21 for apps with native code?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM