Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.

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/) 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.