Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I got following error while build Android NDK

Tags:

android-ndk

I got following error while build Android-ndk Please help me.

Cygwin.bat

@echo off

set IS_UNIX=
set DEV_ROOT=C:/iliu-Android-NDK-Fibonacci-a546a1a
set JAVA_HOME=C:/Program Files/Java/jre6/bin
set CLASSPATH=C:/iliu-Android-NDK-Fibonacci-a546a1a/obj
set PATH=D:/new_eclipse/android-sdk-windows/android-sdk-windows/tools;D:/new_eclipse/android-sdk-windows/android-sdk-windows/android-ndk-r7
set ANDROID_NDK_ROOT=/cygdrive/d/new_eclipse/android-sdk-windows/android-sdk-windows/android-ndk-r7
set NDK_PROJECT_PATH=/cygdrive/C/iliu-Android-NDK-Fibonacci-a546a1a


C:
chdir C:/cygwin/bin

bash --login -i



**Error:**


$ ./ndk-build
Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
/cygdrive/d/new_eclipse/android-sdk-windows/android-sdk-windows/android-ndk-r7/build/core/build-local.mk:102: *** Android NDK: Aborting    .  Stop.

I got following error while build Android-ndk Please help me.

like image 813
Viren Savaliya Avatar asked Feb 22 '23 08:02

Viren Savaliya


1 Answers

You have to call ndk-build from your project directory, so in pseudocode,

cd $MyProject
$NDK/ndk-build
like image 131
Phonon Avatar answered Mar 07 '23 03:03

Phonon