SFML community forums

Help => General => Topic started by: stav on November 15, 2018, 11:47:53 am

Title: SFML Android - No toolchain for armeabi (or x86)
Post by: stav on November 15, 2018, 11:47:53 am
Hi
im trying to build SFML for android.

Im following the github tutorial (https://github.com/SFML/SFML/wiki/Tutorial:-Building-SFML-for-Android)

Ive 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:
Code: [Select]
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:
Code: [Select]
-- 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?

Title: Re: SFML Android - No toolchain for armeabi
Post by: stav on November 15, 2018, 08:40:43 pm
UPDATE: i just tried to build it on my other pc and now im getting the "toolchain not found" error again... I've tried targeting both x86 and armeabi but none of them are working :\


I'd really appericiate it if someone could explain why it cant find the toolchains :)