node js porting to android

来源:互联网 发布:box2d js教程 编辑:程序博客网 时间:2024/05/18 17:23

refs:

https://github.com/joyent/node/commit/5e4e8ec429381a8d1eebe31647e9daaaae42c54b

内带了编译控制开关和配置文件,不过不同时期的版本,对应于不同的ndk版本和android版本,这点要一致。

本人测试环境,

Host: Mac 10.10,

NDK:android-ndk-r10d

Nodejs top commit: 4d9c81b7e2522c5d5d9d35058cbb0bce1228d360

需要修改android-configure中,toolchain版本

-    --toolchain=arm-linux-androideabi-4.7 \
+    --toolchain=arm-linux-androideabi-4.9 \

 

测试基本OK,

source ./android-configure    ~/bin/android-ndk-r10d/
make -j8


其他refs:

https://github.com/ldesegur/nodejs-android/tree/master/jni

0 0
原创粉丝点击