(OK) CentOS 7 + android-ndk-r10d-linux-x86_64 + Android (ARM)—ndk-build
来源:互联网 发布:php输出时间 编辑:程序博客网 时间:2024/05/23 22:39
可以以 http://blog.csdn.net/bupt073114/article/details/43114223 示例
++++++++ 在CentOS 7
android-ndk-r10d-linux-x86_64.bin ---> /opt/android-on-linux/android-ndk-r10d
# gedit /root/.bash_profile
export PATH=$PATH:/opt/android-on-linux/android-ndk-r10d
[root@localhost jni]# pwd
/opt/eclipse-workspace/socket/jni
[root@localhost jni]# ls
Android.mk cli.c serv.c
[root@localhost jni]# ndk-build
[armeabi] Install : cli => libs/armeabi/cli
[armeabi] Install : serv => libs/armeabi/serv
[root@localhost jni]# ls ../libs/armeabi/
cli serv
[root@localhost jni]# cd ../libs/armeabi/
[root@localhost armeabi]# adb push serv /data/data/
197 KB/s (9464 bytes in 0.046s)
[root@localhost armeabi]# adb push cli /data/data/
198 KB/s (9464 bytes in 0.046s)
[root@localhost armeabi]#
+++++++++ Android (ARM)
root@mb526:/data/data # ./serv
asdf
asdf
+++++++++ Android (ARM)
root@mb526:/data/data # ./cli
asdf
asdf
asdf
asdf
asdf
asdf
++++++++ 在CentOS 7
android-ndk-r10d-linux-x86_64.bin ---> /opt/android-on-linux/android-ndk-r10d
# gedit /root/.bash_profile
export PATH=$PATH:/opt/android-on-linux/android-ndk-r10d
[root@localhost jni]# pwd
/opt/eclipse-workspace/socket/jni
[root@localhost jni]# ls
Android.mk cli.c serv.c
[root@localhost jni]# ndk-build
[armeabi] Install : cli => libs/armeabi/cli
[armeabi] Install : serv => libs/armeabi/serv
[root@localhost jni]# ls ../libs/armeabi/
cli serv
[root@localhost jni]# cd ../libs/armeabi/
[root@localhost armeabi]# adb push serv /data/data/
197 KB/s (9464 bytes in 0.046s)
[root@localhost armeabi]# adb push cli /data/data/
198 KB/s (9464 bytes in 0.046s)
[root@localhost armeabi]#
+++++++++ Android (ARM)
root@mb526:/data/data # ./serv
asdf
asdf
+++++++++ Android (ARM)
root@mb526:/data/data # ./cli
asdf
asdf
asdf
asdf
asdf
asdf
0 0
- ( OK ) CentOS 7 + android-ndk-r10d-linux-x86_64 + Android (ARM)—ndk-build
- (OK) CentOS 7 + android-ndk-r10d-linux-x86_64 + Android (ARM)—ndk-build
- ( OK—C++程序 ) CodeBlocks — CentOS 7 + android-ndk
- (OK—C++程序) CodeBlocks — CentOS 7 + android-ndk
- 关于 D:\BaiduYunDownload\android-ndk-r10d\ndk-build.cmd问题的解决方案
- android-ndk-r10d r13b下载地址
- android-ndk-r10d r13b下载地址
- Android NDK下载(r10d r13b r14b)
- window7 android-ndk-r10d 编译ffmpeg 3.4
- ( OK—C程序 ) Eclipse C/C++ — CentOS 7 + android-ndk + eclipse-cpp-mars-R
- ( OK—C++程序 ) Eclipse C/C++ — CentOS 7 + android-ndk + eclipse-cpp-mars-R
- (OK) 编译xerces-c-3.1.2(静态库)—CentOS 7— android-ndk
- (OK) 编译libiconv-1.14(静态库)—CentOS 7— android-ndk
- (OK) 编译xerces-c-3.1.2(动态库)—CentOS 7— android-ndk
- (OK—C程序) Eclipse C/C++ — CentOS 7 + android-ndk + eclipse-cpp-mars-R
- (OK—C++程序) Eclipse C/C++ — CentOS 7 + android-ndk + eclipse-cpp-mars-R
- (OK) 编译xerces-c-3.1.2(静态库)—CentOS 7— android-ndk
- (OK) 编译libiconv-1.14(静态库)—CentOS 7— android-ndk
- 用户唯一性的校验
- SQL Server 2008可视化设置自增主键
- HDOJ 2053-Switch Game
- Android 通过网页打开自己的APP(scheme)
- mac上搭建svn服务器
- (OK) CentOS 7 + android-ndk-r10d-linux-x86_64 + Android (ARM)—ndk-build
- MFC-用系统快照来枚举进程
- Ubuntu下使用Eclipse IDE for C/C++ Developers交叉编译和调试
- hdu【1712】ACboy needs your help
- (OK—C++程序) Eclipse C/C++ — CentOS 7 + android-ndk + eclipse-cpp-mars-R
- Tpcc-MySQL对mysql数据库进行性能测试报告、分析及使用gnuplot生成图表展示
- 编程范式:线程和信号量的例子-Thread and Semaphore Examples
- 关于EJB,为什么用EJB?为什么不用EJB?
- acm_problem_1006