Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML Android - No toolchain for armeabi (or x86)  (Read 1079 times)

0 Members and 1 Guest are viewing this topic.

stav

  • Newbie
  • *
  • Posts: 10
    • View Profile
SFML Android - No toolchain for armeabi (or x86)
« on: November 15, 2018, 11:47:53 am »
Hi
im trying to build SFML for android.

Im following the github tutorial

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?

« Last Edit: November 15, 2018, 09:04:13 pm by stav »

stav

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: SFML Android - No toolchain for armeabi
« Reply #1 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 :)
« Last Edit: November 15, 2018, 10:25:23 pm by stav »