1
General / CMake android build errors
« on: March 21, 2019, 03:46:02 pm »
Hi guys
im trying to build sfml libraries for the android platform from my linux machine.
I've got everyting installed: cmake, android ndk, make, gcc, and all of SFML's dependencies.
However when i invoke cmake with the following command:
I get this error:
I initially thought it was because i didn't have the x86-64 abi installed or something
However if i change the x86-64 to any other arch (x86 in this example) i get this error:
Also when i look under {NDK}/platform/android-xx/ i do have a folder called arch-x86 and one called arch-x86-64
Is anyone else having trouble with generating the build system for android?
Can someone please help me?
im trying to build sfml libraries for the android platform from my linux machine.
I've got everyting installed: cmake, android ndk, make, gcc, and all of SFML's dependencies.
However when i invoke cmake with the following command:
Code: [Select]
cmake -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_NDK=/home/stav/Android/Sdk/ndk-bundle -DCMAKE_ANDROID_ARCH_ABI=x86-64 ..
I get this error:
Code: [Select]
CMake Error at /usr/share/cmake-3.12/Modules/Platform/Android-Determine.cmake:243 (message):
Android: Unknown ABI CMAKE_ANDROID_ARCH_ABI='x86-64'.
Call Stack (most recent call first):
/usr/share/cmake-3.12/Modules/CMakeDetermineSystem.cmake:130 (include)
CMakeLists.txt:45 (project)
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
I initially thought it was because i didn't have the x86-64 abi installed or something
However if i change the x86-64 to any other arch (x86 in this example) i get this error:
Code: [Select]
Android: No toolchain for ABI 'x86' found in the NDK:
Also when i look under {NDK}/platform/android-xx/ i do have a folder called arch-x86 and one called arch-x86-64
Is anyone else having trouble with generating the build system for android?
Can someone please help me?