I have successfully generated .h file using javah, now i want to build my android-ndk hello world project. But it says command not found nespl@nespl-pc:~$ ndk-build ndk-build: command not found
我已经使用javah成功生成了.h文件,现在我想构建我的android-ndk hello world项目。但它说找不到命令nespl @ nespl-pc:〜$ ndk-build ndk-build:command not found
this is my path
这是我的道路
nespl@nespl-pc:~$ echo $PATH
/home/nespl/android-ndk-r8/ndk-build:/home/nespl/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/nespl/adt-bundle-linux-x86/sdk/tools:/home/nespl/adt-bundle-linux-x86/sdk/platform-tools:/home/nespl/gsutil
1 个解决方案
#1
34
Your PATH should include the root directory of your NDK:
您的PATH应包含NDK的根目录:
export PATH=$PATH:/home/nespl/android-ndk-r8
instead of your current:
而不是你当前的:
export PATH=$PATH:/home/nespl/android-ndk-r8/ndk-build
#1
34
Your PATH should include the root directory of your NDK:
您的PATH应包含NDK的根目录:
export PATH=$PATH:/home/nespl/android-ndk-r8
instead of your current:
而不是你当前的:
export PATH=$PATH:/home/nespl/android-ndk-r8/ndk-build