1
General / cannot build sfml for android
« on: March 11, 2020, 01:41:47 pm »
cannot build on ArchLinux
log:
build with:
ndk ver. 21
log:
Quote
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find GLES (missing: GLES_LIBRARY GLES_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindGLES.cmake:14 (find_package_handle_standard_args)
cmake/Macros.cmake:364 (find_package)
src/SFML/Window/CMakeLists.txt:263 (sfml_find_package)
-- Configuring incomplete, errors occurred!
See also "/home/unix/Projects/SFML/build/armeabi-v7a/CMakeFiles/CMakeOutput.log".
build with:
Quote
cmake -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_NDK=/path/to/ndk -DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a -DCMAKE_ANDROID_STL_TYPE=c++_static -DCMAKE_BUILD_TYPE=Debug -DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang ../..
ndk ver. 21