First step:
download the android ndk from http://developer.android.com/sdk/ndk/index.html and
Extract the ndk content.
Second step:
Set the android ndk path in .bashrc file.
Go to your root directory and type gedit .bashrc then it will open the .bashrc file in that replace the ndk with following code ANDROID_NDK_ROOT="Give Your NDK path".
once this is done check whether path is set properly by typing this command
echo $ANDROID_NDK_ROOT then it will show the path.
Third step:
Go to the android-ndk-r6b directory by typing cd android-ndk-r6b this command.
Go to samples inside the android-ndk-r6b by entering this command cd samples.
Go to hello-jni inside the samples by entering this commnad cd hello-jni.
Then finally build the project by using ndk-build command.
the path will be like this.
/android-ndk-r6b/samples/hello-jni$ ndk-build
Final step:
Open your eclipse and import the project inside the samples hello-jni.
download the android ndk from http://developer.android.com/sdk/ndk/index.html and
Extract the ndk content.
Second step:
Set the android ndk path in .bashrc file.
Go to your root directory and type gedit .bashrc then it will open the .bashrc file in that replace the ndk with following code ANDROID_NDK_ROOT="Give Your NDK path".
once this is done check whether path is set properly by typing this command
echo $ANDROID_NDK_ROOT then it will show the path.
Third step:
Go to the android-ndk-r6b directory by typing cd android-ndk-r6b this command.
Go to samples inside the android-ndk-r6b by entering this command cd samples.
Go to hello-jni inside the samples by entering this commnad cd hello-jni.
Then finally build the project by using ndk-build command.
the path will be like this.
/android-ndk-r6b/samples/hello-jni$ ndk-build
Final step:
Open your eclipse and import the project inside the samples hello-jni.
No comments:
Post a Comment