Liunx 搭建NDK开发环境

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wtu178/article/details/54578081
1、首先下载NDK
2、解压NDK  sudo tar xvf NDK文件
3、复制你要放的目录
4、到相应的目录输入  sudo gedit ~/.bashrc
5、加入这两行:
    export ANDROID_NDK=/home/frank/Android/ndk/
    export PATH=$ANDROID_NDK:$PATH
 
  /home/frank/Android/ndk/这个是你的NDK目录,根据自己的目录添加

6、输入  ndk-build -v 命令

出现下面信息说明成功了

GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-g


猜你喜欢

转载自blog.csdn.net/wtu178/article/details/54578081
今日推荐