Android NDK开发eclipse环境配置
2017-09-21 本文已影响0人
rrblm


1.Project->Properties->Builders->New,新建一个Builder

2.参数配置
2.1 Main
①Name:NDK_Builder
②Location为ndk-build.cmd的路径,可以如图所示绝对路径,也可以以环境变量的形式,即 ${ANDROID_NDK}\ndk-build.cmd,其中ANDROID_NDK为配置的NDK路径
③Working Directory,为当前的工程下。
这里的${}的表达是使用了EC的环境变量,可以使用Variables...按钮找到一些3 EC的环境变量。
对于Linux上的配置,和这里的配置一样,只是把Location的地址改为ndk-build即可

2.2Refresh

2.3Build Options


注:Linux环境下只需修改ndk-build.cmd为ndk-build即可
参考:http://www.cnblogs.com/skyseraph/p/3979238.html