To configure the NDK I used the general Android NDK documentation. I downloaded it from here.
Then I have done the following:
unzip
sudo mv android-ndk-r8d /usr/local
On Eclipse side (without OpenCV): importing ndk/samples/hello-jni
into workspace.
Run does not work because the jni compilation has not been performed.
cd /usr/local/android-ndk-r8d/samples/hello-jni
../../ndk-build
It creates the libs/armeabi/libhello-jni.so. After that it was working on my tablet and in the emulator as well.
To make an OpenCV native project (tutorial-3-native) work I have set NDKROOT
(export NDKROOT=/usr/local/android-ndk-r8d/
) and deleted .cmd as extension from ndk-build in the configuration panel.
The whole building process can be performed from eclipse and the project was workin on the tablet.
Have you tried this (http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.html) and this(http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html) page?
You know, I have a problem with NDK, I can not install int and also in these tutorials suppose that a user installed it!!!! I have downloaded it but installing is so unclear.
Please help me!!!!