ace+arm+linux,用NDK编译ACE在Android上运行
1.準備工具鏈
./build/tools/make-standalone-toolchain.sh --toolchain=arm-linux-Androideabi-4.4.3 --arch=arm --platform=android-9 --install-dir=../arm_tools
2.Create ace/config.h: #include "ace/config-android.h"
3.Create include/makeinclude/platform_macros.GNU:
include $(ACE_ROOT)/include/makeinclude/platform_android.GNU
4. 修改.bashrc文件,設置環境變量
export PATH=$PATH:/home/bsxy/arm_tools/bin
#export ACE_ROOT=/home/bsxy/ACE_wrappers
5. cd $ACE_ROOT/ace
make
6. 編譯后的結果為靜態庫,需要自己在開發的 android應用的jni中手動鏈入.
其他:
.實驗用的 ace版本:ACE-6.0.5.tar.bz2
.編譯環境 Ubuntu 11
.ndk:android-ndk-r6b-linux-x86
.經試驗,使用android8的工具鏈無法編譯ace.
.在2.3版本的設備上測試可以正常運行
總結
以上是生活随笔為你收集整理的ace+arm+linux,用NDK编译ACE在Android上运行的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 京东生鲜运费规则调整:可与自营商品合并支
- 下一篇: linux dhcp解释,教会你Suse