Hi
im trying to build SFML for android.
Im following the
github tutorialIve installed android studio, cmake, gradle, and added everything to the path
i cloned SFML, made a directory called /build/armeabi
i then invoke cmake with this command:
cmake -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_NDK=C:/Users/stav/AppData/Local/Android/Sdk/ndk-bundle -DCMAKE_ANDROID_ARCH_ABI=armeabi -DCMAKE_ANDROID_STL_TYPE=c++_static -DCMAKE_BUILD_TYPE=Debug -G "MinGW Makefiles" ../..
but then i get the following error saying something about "armeabi" toolchain not found:
-- Android: Targeting API '28' with architecture 'arm', ABI 'armeabi', and processor 'armv5te'
CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/Platform/Android/Determine-Compiler-NDK.cmake:108 (message):
Android: No toolchain for ABI 'armeabi' found in the NDK:
C:/Users/stav/AppData/Local/Android/Sdk/ndk-bundle
after considering:
C:/Users/stav/AppData/Local/Android/Sdk/ndk-bundle/build/core/toolchains/aarch64-linux-android-clang/config.mk
C:/Users/stav/AppData/Local/Android/Sdk/ndk-bundle/build/core/toolchains/arm-linux-androideabi-clang/config.mk
C:/Users/stav/AppData/Local/Android/Sdk/ndk-bundle/build/core/toolchains/x86-clang/config.mk
C:/Users/stav/AppData/Local/Android/Sdk/ndk-bundle/build/core/toolchains/x86_64-clang/config.mk
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.13/Modules/Platform/Android/Determine-Compiler.cmake:39 (include)
C:/Program Files/CMake/share/cmake-3.13/Modules/Platform/Android-Determine-C.cmake:1 (include)
C:/Program Files/CMake/share/cmake-3.13/Modules/CMakeDetermineCCompiler.cmake:27 (include)
CMakeLists.txt:45 (project)
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/stav/Desktop/SFML/build/armeabi/CMakeFiles/CMakeOutput.log".
Does anybody know what is going wrong?
EDIT:
I've just tried changing the target to x86 and it works fine. (EDIT2: not anymore, still need help)
but im still curious why armeabi wasn't working? is it no longer supported orr?