I restarted without the android.toolchain.cmake, with the command:
cmake -G"MinGW Makefiles" -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_NDK=%ANDROID_NDK% -DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a -DANDROID_NATIVE_API_LEVEL=14 ..
I've had some errors but
this post helped me. I built SFML 2.4.2 for android, it created some .so files in the build/lib folder. Now, I try to build the android sample with:
ndk-build APP_BUILD_SCRIPT="Android.mk" NDK_APPLICATION_MK="Application.mk" NDK_PROJECT_PATH=. NDK_MODULE_PATH="PATH_TO_MY_SFML/build"
(run in the folder "android/jni")
But I get the following error:
Android NDK: Android.mk: Cannot find module with tag 'sfml' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Android NDK: The following directories were searched:
Android NDK:
Android.mk:18: *** Android NDK: Aborting. . Stop.
It specify that it searches an empty directory name, but why?
EDIT : solved, I just forgot to do "mingw32-make -install"