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

Author Topic: [Solved] How to build SFML3 with gradlew for Android on Window 10 with MinGW?  (Read 5705 times)

0 Members and 1 Guest are viewing this topic.

8Observer8

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • My website
    • Email
Hello,

I will continue here my previous topic: SFML 2.6, building Android, MinGW: A problem occurred evaluating project ':app'. But I will use SFML3.

My steps:

  • I downloaded SFML-master
  • I moved to `SFML-master\examples\android`in CMD
  • I entered this command: `gradlew assembleDebug`

Log:

Quote
E:\Libs\SFML-master\examples\android>gradlew assembleDebug

> Task :app:configureCMakeDebug[arm64-v8a] FAILED
C/C++: CMake Error at CMakeLists.txt:10 (find_package):
C/C++:   By not providing "FindSFML.cmake" in CMAKE_MODULE_PATH this project has
C/C++:   asked CMake to find a package configuration file provided by "SFML", but
C/C++:   CMake did not find one.
C/C++:   Could not find a package configuration file provided by "SFML" (requested
C/C++:   version 3) with any of the following names:
C/C++:     SFMLConfig.cmake
C/C++:     sfml-config.cmake
C/C++:   Add the installation prefix of "SFML" to CMAKE_PREFIX_PATH or set
C/C++:   "SFML_DIR" to a directory containing one of the above files.  If "SFML"
C/C++:   provides a separate development package or SDK, be sure it has been
C/C++:   installed.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:configureCMakeDebug[arm64-v8a]'.
> [CXX1429] error when building with cmake using E:\Libs\SFML-master\examples\android\app\src\main\jni\CMakeLists.txt: -- The CXX compiler identification is Clang 17.0.2
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: E:/AppData/Android/SDK/ndk/26.1.10909125/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Configuring incomplete, errors occurred!
  See also "E:/Libs/SFML-master/examples/android/app/.cxx/Debug/2305a5j6/arm64-v8a/CMakeFiles/CMakeOutput.log".

  C++ build system [configure] failed while executing:
      @echo off
      "E:\\AppData\\Android\\SDK\\cmake\\3.22.1\\bin\\cmake.exe" ^
        "-HE:\\Libs\\SFML-master\\examples\\android\\app\\src\\main\\jni" ^
        "-DCMAKE_SYSTEM_NAME=Android" ^
        "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON" ^
        "-DCMAKE_SYSTEM_VERSION=21" ^
        "-DANDROID_PLATFORM=android-21" ^
        "-DANDROID_ABI=arm64-v8a" ^
        "-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a" ^
        "-DANDROID_NDK=E:\\AppData\\Android\\SDK\\ndk\\26.1.10909125" ^
        "-DCMAKE_ANDROID_NDK=E:\\AppData\\Android\\SDK\\ndk\\26.1.10909125" ^
        "-DCMAKE_TOOLCHAIN_FILE=E:\\AppData\\Android\\SDK\\ndk\\26.1.10909125\\build\\cmake\\android.toolchain.cmake" ^
        "-DCMAKE_MAKE_PROGRAM=E:\\AppData\\Android\\SDK\\cmake\\3.22.1\\bin\\ninja.exe" ^
        "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=E:\\Libs\\SFML-master\\examples\\android\\app\\build\\intermediates\\cxx\\Debug\\2305a5j6\\obj\\arm64-v8a" ^
        "-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=E:\\Libs\\SFML-master\\examples\\android\\app\\build\\intermediates\\cxx\\Debug\\2305a5j6\\obj\\arm64-v8a" ^
        "-DCMAKE_BUILD_TYPE=Debug" ^
        "-BE:\\Libs\\SFML-master\\examples\\android\\app\\.cxx\\Debug\\2305a5j6\\arm64-v8a" ^
        -GNinja ^
        "-DANDROID_STL=c++_shared" ^
        "-DSFML_STATIC_LIBRARIES=FALSE"
    from E:\Libs\SFML-master\examples\android\app
  CMake Error at CMakeLists.txt:10 (find_package):
    By not providing "FindSFML.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "SFML", but
    CMake did not find one.

    Could not find a package configuration file provided by "SFML" (requested
    version 3) with any of the following names:

      SFMLConfig.cmake
      sfml-config.cmake

    Add the installation prefix of "SFML" to CMAKE_PREFIX_PATH or set
    "SFML_DIR" to a directory containing one of the above files.  If "SFML"
    provides a separate development package or SDK, be sure it has been
    installed.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 57s
20 actionable tasks: 20 executed

I will describe my steps from scratch.

I used Qt installer to install MinGW and Qt Creator IDE to install Android SDK Manager, CMake, Ninja and JDK. Qt is free and open source C++ framework to develop for Android, iOS, Desktop, Web (with WebAssembly) and so on.

Qt installer:








« Last Edit: January 05, 2024, 02:28:28 pm by 8Observer8 »

texus

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
    • TGUI
    • Email
Re: How to build SFML-master with gradlew for Android?
« Reply #1 on: January 03, 2024, 10:26:26 pm »
At the top of the examples/android/app/build.gradle.kts file, you need to change the constants to the versions you are using.

NDK_VERSION is set to 26.1.10909125 by default, so it is looking for SFML in that NDK version. Based on your previous posts, you used "E:/AppData/Android/SDK/ndk/25.1.8937393" when installing SFML. So you either need to use NDK 26 when building and installing SFML, or change the NDK version at the top of build.gradle.kts in the example to 25.1.8937393.

Similarly, check that the cmake value CMAKE_ANDROID_ARCH_ABI which you specified when building SFML matches with the ARCH_ABI value at the top of build.gradle.kts, otherwise you will also get the same error about SFML not being found.

Instead of changing build.gradle.kts, you can optionally pass these values as parameters to gradle, so that the command looks something like the following
gradlew assembleDebug -P ARCH_ABI=armeabi-v7a -P NDK_VERSION=25.1.8937393

Edit: In your previous posts you mentioned building and installing SFML 2 with cmake, make sure you followed these steps again with SFML 3 as well before attempting to build the example.

Edit: I've updated the wiki with the above information, as the instructions on the wiki were a bit outdated.
« Last Edit: January 03, 2024, 10:52:15 pm by texus »
TGUI: C++ SFML GUI

8Observer8

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • My website
    • Email
Re: How to build SFML-master with gradlew for Android?
« Reply #2 on: January 04, 2024, 12:23:13 am »
JDK, Android SDK, Android SDK Manager, and so on can be downloaded from Qt Creator. I selected in Qt Creator, in menu: "Edit" -> "Preferences" to open the next dialog. Marked buttons used to download necessary tools and to open SDK Manager. The "Android SDK location" path must be set up by user before downloading Android SDK. Or you can set up paths to existing took (JDK and Android SDK). Qt requires JDK 17 (not 21). NDK can be installed using SDK Manager. You can see the button to open SDK Manager dialog on the screenshot below:



Tools in the SDK Manager:



Platform (the ...x86... package is used for the emulator):



What I have in the Path variable:

  • MinGW: C:\Qt\Tools\mingw1120_64\bin
  • CMake: C:\Qt\Tools\CMake_64\bin
  • Gradle: E:\Program Files (installed)\gradle-8.5\bin
  • Ninja: C:\Qt\Tools\Ninja
  • Android SDK: E:\AppData\Android\SDK
  • Android NDK: E:\AppData\Android\SDK\ndk\25.1.8937393
  • JDK: E:\Program Files\Java\jdk-17
  • To run adb.exe from CMD: E:\AppData\Android\SDK\platform-tools
  • To run emulator.exe from CMD: E:\AppData\Android\SDK\emulator

Environment variables:
  • ANDROID_HOME: E:\AppData\Android\SDK
  • ANDROID_NDK_HOME: E:\AppData\Android\SDK\ndk\25.1.8937393
  • JAVA_HOME: E:\Program Files\Java\jdk-17

My steps:

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 ../..
  • In the command above I replaced "/path/to/ndk" to "E:/AppData/Android/SDK/ndk/25.1.8937393" and I added this key: -G "MinGW Makefiles". So I executed the command:
Quote
cmake -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_NDK="E:/AppData/Android/SDK/ndk/25.1.8937393" -DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a -DCMAKE_ANDROID_STL_TYPE=c++_static -DCMAKE_BUILD_TYPE=Debug ../.. -G "MinGW Makefiles"

Log:
Quote
E:\Libs\SFML\build\armeabi-v7a>cmake -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_NDK="E:/AppData/Android/SDK/ndk/25.1.8937393" -DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a -DCMAKE_ANDROID_STL_TYPE=c++_static -DCMAKE_BUILD_TYPE=Debug ../.. -G "MinGW Makefiles"
-- Android: Targeting API '19' with architecture 'arm', ABI 'armeabi-v7a', and processor 'armv7-a'
-- Android: Selected unified Clang toolchain
-- The CXX compiler identification is Clang 14.0.6
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: E:/AppData/Android/SDK/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found EGL: E:/AppData/Android/SDK/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/arm-linux-androideabi/19/libEGL.so
-- Found GLES: E:/AppData/Android/SDK/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/arm-linux-androideabi/19/libGLESv1_CM.so
-- Found Freetype: E:/Libs/SFML/extlibs/libs-android/armeabi-v7a/libfreetype.a
-- Found OpenAL: E:/Libs/SFML/extlibs/libs-android/armeabi-v7a/libopenal.so
-- Found Vorbis: E:/Libs/SFML/extlibs/headers
-- Found FLAC: E:/Libs/SFML/extlibs/libs-android/armeabi-v7a/libFLAC.a
-- Configuring done (28.3s)
-- Generating done (0.5s)
-- Build files have been written to: E:/Libs/SFML/build/armeabi-v7a

  • I typed this command: mingw32-make

Quote
E:\Libs\SFML\build\armeabi-v7a>mingw32-make
[  1%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.o
[  2%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Err.cpp.o
[  3%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Sleep.cpp.o
[  4%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/String.cpp.o
[  5%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Utils.cpp.o
[  6%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Vector2.cpp.o
[  7%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Vector3.cpp.o
[  8%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/FileInputStream.cpp.o
[  9%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/MemoryInputStream.cpp.o
[ 10%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Unix/SleepImpl.cpp.o
[ 11%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Android/Activity.cpp.o
[ 12%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Android/NativeActivity.cpp.o
[ 13%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Android/ResourceStream.cpp.o
[ 14%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Android/SuspendAwareClock.cpp.o
[ 15%] Linking CXX shared library ..\..\..\lib\libsfml-system-d.so
[ 15%] Built target sfml-system
[ 16%] Building CXX object src/SFML/Main/CMakeFiles/sfml-main.dir/MainAndroid.cpp.o
[ 17%] Linking CXX static library ..\..\..\lib\libsfml-main-s-d.a
[ 17%] Built target sfml-main
[ 18%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Clipboard.cpp.o
[ 18%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Context.cpp.o
[ 19%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Cursor.cpp.o
[ 20%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o
[ 21%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlResource.cpp.o
[ 22%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Joystick.cpp.o
[ 23%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/JoystickManager.cpp.o
[ 24%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Keyboard.cpp.o
[ 25%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Mouse.cpp.o
[ 26%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Touch.cpp.o
[ 27%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Sensor.cpp.o
[ 28%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/SensorManager.cpp.o
[ 29%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/VideoMode.cpp.o
[ 30%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Vulkan.cpp.o
[ 31%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Window.cpp.o
[ 32%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/WindowBase.cpp.o
[ 33%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/WindowImpl.cpp.o
[ 34%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/EGLCheck.cpp.o
[ 35%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/EglContext.cpp.o
[ 36%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Android/CursorImpl.cpp.o
[ 37%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Android/ClipboardImpl.cpp.o
[ 38%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Android/WindowImplAndroid.cpp.o
[ 39%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Android/VideoModeImpl.cpp.o
[ 40%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Android/InputImpl.cpp.o
[ 41%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Android/JoystickImpl.cpp.o
[ 42%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Android/SensorImpl.cpp.o
[ 43%] Linking CXX shared library ..\..\..\lib\libsfml-window-d.so
[ 43%] Built target sfml-window
[ 44%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Ftp.cpp.o
[ 44%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Http.cpp.o
[ 45%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/IpAddress.cpp.o
[ 46%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Packet.cpp.o
[ 47%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Socket.cpp.o
[ 48%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/SocketSelector.cpp.o
[ 49%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/TcpListener.cpp.o
[ 50%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/TcpSocket.cpp.o
[ 51%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/UdpSocket.cpp.o
[ 52%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Unix/SocketImpl.cpp.o
[ 53%] Linking CXX shared library ..\..\..\lib\libsfml-network-d.so
[ 53%] Built target sfml-network
[ 54%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/BlendMode.cpp.o
[ 55%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Font.cpp.o
[ 56%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Glsl.cpp.o
[ 57%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/GLCheck.cpp.o
[ 57%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/GLExtensions.cpp.o
[ 58%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Image.cpp.o
[ 59%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderStates.cpp.o
[ 60%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderTexture.cpp.o
[ 61%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderTarget.cpp.o
[ 62%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderWindow.cpp.o
[ 63%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Shader.cpp.o
[ 64%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Texture.cpp.o
[ 65%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/TextureSaver.cpp.o
[ 66%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Transform.cpp.o
[ 67%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Transformable.cpp.o
[ 68%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/View.cpp.o
[ 69%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Shape.cpp.o
[ 70%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/CircleShape.cpp.o
[ 71%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RectangleShape.cpp.o
[ 72%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/ConvexShape.cpp.o
[ 73%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Sprite.cpp.o
[ 74%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Text.cpp.o
[ 75%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/VertexArray.cpp.o
[ 76%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/VertexBuffer.cpp.o
[ 77%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderTextureImplFBO.cpp.o
[ 78%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderTextureImplDefault.cpp.o
[ 79%] Linking CXX shared library ..\..\..\lib\libsfml-graphics-d.so
[ 79%] Built target sfml-graphics
[ 79%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/ALCheck.cpp.o
[ 80%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/AlResource.cpp.o
[ 81%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/AudioDevice.cpp.o
[ 82%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/Listener.cpp.o
[ 83%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/Music.cpp.o
[ 84%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/Sound.cpp.o
[ 85%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundBuffer.cpp.o
[ 86%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundBufferRecorder.cpp.o
[ 87%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/InputSoundFile.cpp.o
[ 88%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/OutputSoundFile.cpp.o
[ 89%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundRecorder.cpp.o
[ 90%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundSource.cpp.o
[ 91%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundStream.cpp.o
[ 92%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFileFactory.cpp.o
[ 93%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFileReaderFlac.cpp.o
[ 94%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFileReaderMp3.cpp.o
[ 95%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFileReaderOgg.cpp.o
[ 96%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFileReaderWav.cpp.o
[ 97%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFileWriterFlac.cpp.o
[ 98%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFileWriterOgg.cpp.o
[ 99%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFileWriterWav.cpp.o
[100%] Linking CXX shared library ..\..\..\lib\libsfml-audio-d.so
[100%] Built target sfml-audio

  • And this one: mingw32-make install

Quote
E:\Libs\SFML\build\armeabi-v7a>mingw32-make install
[ 15%] Built target sfml-system
[ 17%] Built target sfml-main
[ 43%] Built target sfml-window
[ 53%] Built target sfml-network
[ 79%] Built target sfml-graphics
[100%] Built target sfml-audio
Install the project...
-- Install configuration: "Debug"
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/libsfml-system-d.so
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/libsfml-main-s-d.a
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/libsfml-window-d.so
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/libsfml-network-d.so
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/libsfml-graphics-d.so
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/libsfml-audio-d.so
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/AlResource.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/Export.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/InputSoundFile.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/Listener.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/Music.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/OutputSoundFile.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/Sound.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundBuffer.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundBufferRecorder.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundFileFactory.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundFileFactory.inl
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundFileReader.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundFileWriter.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundRecorder.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundSource.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundStream.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Config.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/GpuPreference.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/BlendMode.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/CircleShape.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Color.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Color.inl
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/ConvexShape.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Drawable.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Export.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Font.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Glsl.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Glsl.inl
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Glyph.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Image.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/PrimitiveType.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Rect.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Rect.inl
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/RectangleShape.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/RenderStates.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/RenderTarget.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/RenderTexture.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/RenderWindow.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Shader.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Shape.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Sprite.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Text.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Texture.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Transform.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Transform.inl
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Transformable.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Vertex.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Vertex.inl
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/VertexArray.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/VertexBuffer.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/View.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Main.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/Export.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/Ftp.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/Http.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/IpAddress.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/Packet.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/Socket.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/SocketHandle.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/SocketSelector.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/TcpListener.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/TcpSocket.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/UdpSocket.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/OpenGL.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Angle.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Angle.inl
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Clock.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Err.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Export.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/FileInputStream.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/InputStream.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/MemoryInputStream.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/NativeActivity.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Sleep.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/String.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/String.inl
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/SuspendAwareClock.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Time.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Time.inl
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Utf.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Utf.inl
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Vector2.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Vector2.inl
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Vector3.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Vector3.inl
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Clipboard.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Context.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/ContextSettings.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Cursor.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Event.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Export.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/GlResource.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Joystick.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Keyboard.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Mouse.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Sensor.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Touch.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/VideoMode.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Vulkan.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Window.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/WindowBase.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/WindowHandle.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/WindowStyle.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/cmake/SFML
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/cmake/SFML/FindDRM.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/cmake/SFML/FindEGL.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/cmake/SFML/FindFLAC.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/cmake/SFML/FindFreetype.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/cmake/SFML/FindGBM.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/cmake/SFML/FindGLES.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/cmake/SFML/FindOpenAL.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/cmake/SFML/FindUDev.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/cmake/SFML/FindVorbis.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/share/doc/SFML/license.md
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/share/doc/SFML/readme.md
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/extlibs/lib/armeabi-v7a
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/extlibs/lib/armeabi-v7a/libFLAC.a
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/extlibs/lib/armeabi-v7a/libfreetype.a
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/extlibs/lib/armeabi-v7a/libogg.a
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/extlibs/lib/armeabi-v7a/libopenal.so
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/extlibs/lib/armeabi-v7a/libvorbis.a
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/extlibs/lib/armeabi-v7a/libvorbisenc.a
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/extlibs/lib/armeabi-v7a/libvorbisfile.a
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/cmake/SFML/SFMLSharedTargets.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/cmake/SFML/SFMLSharedTargets-debug.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/cmake/SFML/SFMLConfig.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/cmake/SFML/SFMLConfigDependencies.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/armeabi-v7a/cmake/SFML/SFMLConfigVersion.cmake

  • I opened the `SFML\examples\android\app\build.gradle.kts` file and I set NDK_VERSION to 25.1.8937393 and  ARCH_ABI to armeabi-v7a
Quote
val NDK_VERSION by extra(project.properties["NDK_VERSION"] as? String ?: "25.1.8937393")
val ARCH_ABI by extra(project.properties["ARCH_ABI"] as? String ?: "armeabi-v7a")
val MIN_SDK by extra((project.properties["MIN_SDK"] as? String ?: "21").toInt())
val TARGET_SDK by extra((project.properties["TARGET_SDK"] as? String ?: "33").toInt())
val STL_TYPE by extra(project.properties["STL_TYPE"] as? String ?: "c++_shared")
val SFML_STATIC by extra(project.properties["SFML_STATIC"] as? String ?: "FALSE")

  • I moved to the `SFML\examples\android` directory in CMD and I executed this command: gradlew assembleDebug

Quote
E:\Libs\SFML\examples\android>gradlew assembleDebug

> Configure project :app
[CXX5202] This app only has 32-bit [armeabi-v7a] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
[CXX5202] This app only has 32-bit [armeabi-v7a] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
WARNING:[CXX5202] This app only has 32-bit [armeabi-v7a] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
[CXX5202] This app only has 32-bit [armeabi-v7a] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
WARNING:[CXX5202] This app only has 32-bit [armeabi-v7a] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
[CXX5202] This app only has 32-bit [armeabi-v7a] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement

BUILD SUCCESSFUL in 32s
34 actionable tasks: 34 executed

The APK file was generated in the `SFML\examples\android\app\build\outputs\apk\debug` folder. The size of APK is 1.02 MB

  • I created a virtual device inside of the Qt Creator IDE:



  • I checked available virtual devices using this command: `emulator.exe -list-avds`. It shows a name of virtual device: GalaxyNexus
  • I ran the emulator using this command in CMD: emulator.exe -avd GalaxyNexus
  • I was waiting when the emulator completed the running
  • I moved to the `SFML\examples\android` directory in CMD and I executed this command to install APK to emulator: `gradlew installDebug`

But this error said me that I must to build to `x86` for the emulator instead of `armeabi-v7a`:

Quote
> Task :app:installDebug FAILED
Skipping device 'GalaxyNexus(AVD) - 7.1.1' for ':app:debug': Could not find build of variant which supports density 320 and an ABI in x86

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:installDebug'.
> java.util.concurrent.ExecutionException: org.gradle.api.GradleException: Failed to install on any devices.

  • My USB connection with the device doesn't work. I uploaded the APK to DropBox and I made a short url to download the APK on the physical device
  • I opened the link on the device, download and install APK. I run the app and it works! Instaled SFML app requires 3.25 MB

If my guide helped for you, you can say me "Thank you" by sending me $1 here: https://boosty.to/ivan_8observer8/donate
« Last Edit: January 18, 2024, 08:37:09 pm by 8Observer8 »

texus

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
    • TGUI
    • Email
You have to follow the procedure of building and installing SFML, and building the example again, but this time use "x86" instead of "armeabi-v7a" everywhere in order to get an apk that can be used in the emulator.

- armeabi-v7a is for 32-bit ARM devices (which is to support old phones, but the program of course also runs on new devices).
- arm64-v8a is for 64-bit ARM devices (all modern phones)
- x86 or x86_64 is used for running android on a PC (usually with an emulator). Which one you need depends on the emulator. The emulator you were using requires you to use "x86".

So an apk with ARM architecture will run on a real device, but not in an emulator, while an apk with x86 will run on the emulator but not on a real device. This is why your current apk is only working on a real device.

You can actually change the example later to build an apk with both x86 and armeabi-v7a so that it runs in both the emulator and real devices, but at least SFML needs to be build and installed for each architecture separately. Plus it's best to first get it working with a single architecture before attempting to make it more complex.
TGUI: C++ SFML GUI

8Observer8

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • My website
    • Email
Building SFML3 for the Android Emulator

My steps:

  • I created the `x86`folder inside the `SFML/build` folder and I moved in it using CMD
  • I replaced `armeabi-v7a` to `x86` in the following command and executed it:

Quote
cmake -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_NDK="E:/AppData/Android/SDK/ndk/25.1.8937393" -DCMAKE_ANDROID_ARCH_ABI=x86 -DCMAKE_ANDROID_STL_TYPE=c++_static -DCMAKE_BUILD_TYPE=Debug ../.. -G "MinGW Makefiles"

Log:

Quote
E:\Libs\SFML\build\x86>cmake -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_NDK="E:/AppData/Android/SDK/ndk/25.1.8937393" -DCMAKE_ANDROID_ARCH_ABI=x86 -DCMAKE_ANDROID_STL_TYPE=c++_static -DCMAKE_BUILD_TYPE=Debug ../.. -G "MinGW Makefiles"
-- Android: Targeting API '19' with architecture 'x86', ABI 'x86', and processor 'i686'
-- Android: Selected unified Clang toolchain
-- The CXX compiler identification is Clang 14.0.6
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: E:/AppData/Android/SDK/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found EGL: E:/AppData/Android/SDK/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/i686-linux-android/19/libEGL.so
-- Found GLES: E:/AppData/Android/SDK/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/i686-linux-android/19/libGLESv1_CM.so
-- Found Freetype: E:/Libs/SFML/extlibs/libs-android/x86/libfreetype.a
-- Found OpenAL: E:/Libs/SFML/extlibs/libs-android/x86/libopenal.so
-- Found Vorbis: E:/Libs/SFML/extlibs/headers
-- Found FLAC: E:/Libs/SFML/extlibs/libs-android/x86/libFLAC.a
-- Configuring done (49.3s)
-- Generating done (0.7s)
-- Build files have been written to: E:/Libs/SFML/build/x86

  • I typed this command: mingw32-make

Quote
E:\Libs\SFML\build\x86>mingw32-make
[  1%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.o
[  2%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Err.cpp.o
[  3%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Sleep.cpp.o
[  4%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/String.cpp.o
[  5%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Utils.cpp.o
[  6%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Vector2.cpp.o
[  7%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Vector3.cpp.o
[  8%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/FileInputStream.cpp.o
[  9%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/MemoryInputStream.cpp.o
[ 10%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Unix/SleepImpl.cpp.o
[ 11%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Android/Activity.cpp.o
[ 12%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Android/NativeActivity.cpp.o
[ 13%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Android/ResourceStream.cpp.o
[ 14%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Android/SuspendAwareClock.cpp.o
[ 15%] Linking CXX shared library ..\..\..\lib\libsfml-system-d.so
[ 15%] Built target sfml-system
[ 16%] Building CXX object src/SFML/Main/CMakeFiles/sfml-main.dir/MainAndroid.cpp.o
[ 17%] Linking CXX static library ..\..\..\lib\libsfml-main-s-d.a
[ 17%] Built target sfml-main
[ 18%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Clipboard.cpp.o
[ 18%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Context.cpp.o
[ 19%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Cursor.cpp.o
[ 20%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o
[ 21%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlResource.cpp.o
[ 22%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Joystick.cpp.o
[ 23%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/JoystickManager.cpp.o
[ 24%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Keyboard.cpp.o
[ 25%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Mouse.cpp.o
[ 26%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Touch.cpp.o
[ 27%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Sensor.cpp.o
[ 28%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/SensorManager.cpp.o
[ 29%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/VideoMode.cpp.o
[ 30%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Vulkan.cpp.o
[ 31%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Window.cpp.o
[ 32%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/WindowBase.cpp.o
[ 33%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/WindowImpl.cpp.o
[ 34%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/EGLCheck.cpp.o
[ 35%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/EglContext.cpp.o
[ 36%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Android/CursorImpl.cpp.o
[ 37%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Android/ClipboardImpl.cpp.o
[ 38%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Android/WindowImplAndroid.cpp.o
[ 39%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Android/VideoModeImpl.cpp.o
[ 40%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Android/InputImpl.cpp.o
[ 41%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Android/JoystickImpl.cpp.o
[ 42%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Android/SensorImpl.cpp.o
[ 43%] Linking CXX shared library ..\..\..\lib\libsfml-window-d.so
[ 43%] Built target sfml-window
[ 44%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Ftp.cpp.o
[ 44%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Http.cpp.o
[ 45%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/IpAddress.cpp.o
[ 46%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Packet.cpp.o
[ 47%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Socket.cpp.o
[ 48%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/SocketSelector.cpp.o
[ 49%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/TcpListener.cpp.o
[ 50%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/TcpSocket.cpp.o
[ 51%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/UdpSocket.cpp.o
[ 52%] Building CXX object src/SFML/Network/CMakeFiles/sfml-network.dir/Unix/SocketImpl.cpp.o
[ 53%] Linking CXX shared library ..\..\..\lib\libsfml-network-d.so
[ 53%] Built target sfml-network
[ 54%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/BlendMode.cpp.o
[ 55%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Font.cpp.o
[ 56%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Glsl.cpp.o
[ 57%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/GLCheck.cpp.o
[ 57%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/GLExtensions.cpp.o
[ 58%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Image.cpp.o
[ 59%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderStates.cpp.o
[ 60%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderTexture.cpp.o
[ 61%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderTarget.cpp.o
[ 62%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderWindow.cpp.o
[ 63%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Shader.cpp.o
[ 64%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Texture.cpp.o
[ 65%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/TextureSaver.cpp.o
[ 66%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Transform.cpp.o
[ 67%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Transformable.cpp.o
[ 68%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/View.cpp.o
[ 69%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Shape.cpp.o
[ 70%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/CircleShape.cpp.o
[ 71%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RectangleShape.cpp.o
[ 72%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/ConvexShape.cpp.o
[ 73%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Sprite.cpp.o
[ 74%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/Text.cpp.o
[ 75%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/VertexArray.cpp.o
[ 76%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/VertexBuffer.cpp.o
[ 77%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderTextureImplFBO.cpp.o
[ 78%] Building CXX object src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/RenderTextureImplDefault.cpp.o
[ 79%] Linking CXX shared library ..\..\..\lib\libsfml-graphics-d.so
[ 79%] Built target sfml-graphics
[ 79%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/ALCheck.cpp.o
[ 80%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/AlResource.cpp.o
[ 81%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/AudioDevice.cpp.o
[ 82%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/Listener.cpp.o
[ 83%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/Music.cpp.o
[ 84%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/Sound.cpp.o
[ 85%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundBuffer.cpp.o
[ 86%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundBufferRecorder.cpp.o
[ 87%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/InputSoundFile.cpp.o
[ 88%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/OutputSoundFile.cpp.o
[ 89%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundRecorder.cpp.o
[ 90%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundSource.cpp.o
[ 91%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundStream.cpp.o
[ 92%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFileFactory.cpp.o
[ 93%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFileReaderFlac.cpp.o
[ 94%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFileReaderMp3.cpp.o
[ 95%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFileReaderOgg.cpp.o
[ 96%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFileReaderWav.cpp.o
[ 97%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFileWriterFlac.cpp.o
[ 98%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFileWriterOgg.cpp.o
[ 99%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFileWriterWav.cpp.o
[100%] Linking CXX shared library ..\..\..\lib\libsfml-audio-d.so
[100%] Built target sfml-audio

  • And this one: mingw32-make install

Quote
E:\Libs\SFML\build\x86>mingw32-make install
[ 15%] Built target sfml-system
[ 17%] Built target sfml-main
[ 43%] Built target sfml-window
[ 53%] Built target sfml-network
[ 79%] Built target sfml-graphics
[100%] Built target sfml-audio
Install the project...
-- Install configuration: "Debug"
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/libsfml-system-d.so
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/libsfml-main-s-d.a
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/libsfml-window-d.so
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/libsfml-network-d.so
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/libsfml-graphics-d.so
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/libsfml-audio-d.so
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/AlResource.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/Export.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/InputSoundFile.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/Listener.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/Music.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/OutputSoundFile.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/Sound.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundBuffer.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundBufferRecorder.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundFileFactory.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundFileFactory.inl
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundFileReader.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundFileWriter.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundRecorder.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundSource.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio/SoundStream.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Audio.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Config.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/GpuPreference.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/BlendMode.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/CircleShape.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Color.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Color.inl
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/ConvexShape.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Drawable.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Export.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Font.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Glsl.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Glsl.inl
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Glyph.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Image.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/PrimitiveType.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Rect.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Rect.inl
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/RectangleShape.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/RenderStates.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/RenderTarget.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/RenderTexture.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/RenderWindow.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Shader.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Shape.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Sprite.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Text.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Texture.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Transform.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Transform.inl
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Transformable.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Vertex.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/Vertex.inl
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/VertexArray.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/VertexBuffer.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics/View.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Graphics.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Main.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/Export.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/Ftp.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/Http.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/IpAddress.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/Packet.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/Socket.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/SocketHandle.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/SocketSelector.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/TcpListener.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/TcpSocket.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network/UdpSocket.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Network.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/OpenGL.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Angle.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Angle.inl
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Clock.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Err.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Export.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/FileInputStream.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/InputStream.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/MemoryInputStream.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/NativeActivity.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Sleep.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/String.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/String.inl
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/SuspendAwareClock.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Time.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Time.inl
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Utf.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Utf.inl
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Vector2.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Vector2.inl
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Vector3.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System/Vector3.inl
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/System.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Clipboard.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Context.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/ContextSettings.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Cursor.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Event.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Export.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/GlResource.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Joystick.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Keyboard.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Mouse.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Sensor.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Touch.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/VideoMode.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Vulkan.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/Window.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/WindowBase.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/WindowHandle.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window/WindowStyle.hpp
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/include/SFML/Window.hpp
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/cmake/SFML
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/cmake/SFML/FindDRM.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/cmake/SFML/FindEGL.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/cmake/SFML/FindFLAC.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/cmake/SFML/FindFreetype.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/cmake/SFML/FindGBM.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/cmake/SFML/FindGLES.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/cmake/SFML/FindOpenAL.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/cmake/SFML/FindUDev.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/cmake/SFML/FindVorbis.cmake
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/share/doc/SFML/license.md
-- Up-to-date: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/share/doc/SFML/readme.md
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/extlibs/lib/x86
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/extlibs/lib/x86/libFLAC.a
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/extlibs/lib/x86/libfreetype.a
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/extlibs/lib/x86/libogg.a
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/extlibs/lib/x86/libopenal.so
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/extlibs/lib/x86/libvorbis.a
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/extlibs/lib/x86/libvorbisenc.a
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/extlibs/lib/x86/libvorbisfile.a
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/cmake/SFML/SFMLSharedTargets.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/cmake/SFML/SFMLSharedTargets-debug.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/cmake/SFML/SFMLConfig.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/cmake/SFML/SFMLConfigDependencies.cmake
-- Installing: E:/AppData/Android/SDK/ndk/25.1.8937393/sources/third_party/sfml/lib/x86/cmake/SFML/SFMLConfigVersion.cmake

  • I opened the `SFML\examples\android\app\build.gradle.kts` file and I set NDK_VERSION to 25.1.8937393 and  ARCH_ABI to x86

Quote
val NDK_VERSION by extra(project.properties["NDK_VERSION"] as? String ?: "25.1.8937393")
val ARCH_ABI by extra(project.properties["ARCH_ABI"] as? String ?: "armeabi-v7a")
val MIN_SDK by extra((project.properties["MIN_SDK"] as? String ?: "21").toInt())
val TARGET_SDK by extra((project.properties["TARGET_SDK"] as? String ?: "33").toInt())
val STL_TYPE by extra(project.properties["STL_TYPE"] as? String ?: "c++_shared")
val SFML_STATIC by extra(project.properties["SFML_STATIC"] as? String ?: "FALSE")

  • I created a virtual device inside of the Qt Creator IDE:



  • I checked available virtual devices using this command: `emulator.exe -list-avds`. It shows a name of virtual device: GalaxyNexus
  • I ran the emulator using this command in CMD: emulator.exe -avd GalaxyNexus
  • I was waiting when the emulator completed the running
  • I moved to the `SFML\examples\android` directory in CMD and I executed this command to create and install APK to emulator: gradlew installDebug
  • I can find an icon of application on the emulator and run it
  • Alternatively I do not need to change ARCH_ABI in the `SFML\examples\android\app\build.gradle.kts` file. I can set it when I run gradlew:

Quote
gradlew assembleDebug -P ARCH_ABI=armeabi-v7a
Quote
gradlew assembleDebug -P ARCH_ABI=x86
Quote
gradlew installDebug -P ARCH_ABI=armeabi-v7a
Quote
gradlew installDebug -P ARCH_ABI=x86

Notes:
  • gradlew assembleDebug - to build APK
  • gradlew installDebug  - to build APK and install on the emulator or on a physical device
  • adb logcat - log the device output to the CMD
  • adb usb - list of connected devices

I made these steps to activate debugging mode on my Xiaomi Redmi 4X:
  • I moved to "Setting" -> "About phone" and I tapped 6-7 times on "MIUI version". Phone was switched to "Developer Mode"
  • I moved to "Setting" -> "System settings" -> "Additional settings" -> "Developer options"
  • I enabled "USB debugging" and "Install via USB"
  • Now I can connect the device to my laptop with USB-cable and run this command: gradlew installDebug

If my guide helped for you, you can say me "Thank you" by sending me $1 here: https://boosty.to/ivan_8observer8/donate
« Last Edit: January 04, 2024, 08:42:52 pm by 8Observer8 »