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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - 8Observer8

Pages: [1] 2
1
General / Re: MineCraft.. Where to start?
« on: February 20, 2024, 09:03:54 pm »
You should start with recreating the demo below. Use the Bullet Physics engine to move a character. It is a third person camera in this example. It doesn't matter because you can place a camera to the top of player collider. At first you should draw edges of colliders using the btIDebugDraw class. This class has the drawLine method. Use this method to draw a line by OpenGL.

Inherit from "btIDebugDraw" and override "drawLine":

Code: [Select]
#include <btBulletDynamicsCommon.h>

class DebugDrawer : public btIDebugDraw
{
    virtual void drawLine(const btVector3 &from, const btVector3 &to,
        const btVector3 &color) override;
};

I use Qt instead of SFML because it allows me to build for Android, Desktop, and WebAssembly from one code base.

Use WASD keys to move:





2
General / Re: SFML with Sublime Text
« on: February 17, 2024, 05:57:33 pm »
I use Siblime Text 4 with CMD. If you work on Windows you can install MinGW and build SFML with CMake GUI (or with the console version of CMake). Create a file with the "makefile" name and copy the content below to "makefile". This example shows how to include a few libraries like SFML, FMOD (for sounds), and Box2D (for physics, collision detection, ray casting and so on). To build the next example to EXE you should type the "mingw32-make" command in CMD.

makefile

Code: [Select]
CC = g++
INC = -I"E:\Libs\SFML-2.5.1-windows-gcc-7.3.0-mingw-64-bit\include" \
      -I"E:\Libs\box2d-2.4.1-mingw-64-bit\include" \
      -I"C:\Program Files\FMOD SoundSystem\FMOD Studio API Windows\api\core\inc"
LIB = -L"E:\Libs\SFML-2.5.1-windows-gcc-7.3.0-mingw-64-bit\lib" \
      -L"E:\Libs\box2d-2.4.1-mingw-64-bit\lib"
FLAGS = -c -DSFML_STATIC
 
all: main.o
    $(CC) main.o $(LIB) -static \
    "C:\Program Files\FMOD SoundSystem\FMOD Studio API Windows\api\core\lib\x64\fmod.dll" \
    -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -lfreetype \
    -lopengl32  -lwinmm  -lgdi32 -lbox2d -o app
 
main.o: main.cpp
    $(CC) $(FLAGS) $(INC) main.cpp

main.cpp

Code: [Select]
#include <iostream>
#include <SFML/Graphics.hpp>
#include <box2d/box2d.h>
#include <fmod.h>
 
b2Vec2 gravity(0.0f, 9.8f);
b2World world(gravity);
 
FMOD_SYSTEM *m_pSystem;
FMOD_SOUND *m_pSound;
 
int main()
{
    // Print the gravity
    std::cout << gravity.y << std::endl;
 
    FMOD_System_Create(&m_pSystem, FMOD_VERSION);
    FMOD_System_Init(m_pSystem, 32, FMOD_INIT_NORMAL, 0);
    FMOD_System_CreateSound(m_pSystem, "sounds/gamestart.ogg", FMOD_LOOP_OFF | FMOD_2D, 0, &m_pSound);
    FMOD_System_PlaySound(m_pSystem, m_pSound, 0, false, 0);
 
    sf::RenderWindow window(sf::VideoMode(240, 240), "SFML works!");
    sf::CircleShape shape(120.f);
    shape.setFillColor(sf::Color::Green);
 
    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }
 
        window.clear();
        window.draw(shape);
        window.display();
    }
 
    return 0;
}

3
General / Re: MineCraft.. Where to start?
« on: February 16, 2024, 01:27:44 pm »
Physics engine is the most important thing for games for moving a character, avoiding obstacles, collecting items, raycasting for detecting a ground for jumping and so on. You can start with this book: "Learning Game Physics with Bullet Physics and OpenGL". This book is an introduction tutorial to Bullet Physics engine. You can build this physics engine from source: https://github.com/bulletphysics/bullet3 The book uses the fixed pipe line of OpenGL v1. So it uses glBegin/glEnd for drawing instead of shaders. I like to use OpenGL ES 2.0 with shaders. It is simpler than ES 3.0 and it is enough for me. When SFML supports WebAssembly in the future you will be able to build your apps to Web. OpenGL ES will be transfer to WebGL automatically with Emscripten. OpenGL ES works on Desktop, Android, and Web with one code base. But I think it is simpler to start with Box2D to familiar with basics of OpenGL rendering and simple 2D physics. It will be simpler to move from Box2D to Bullet Physics. Just practice a lot with OpenGL ES and Box2D at first by making simple examples and game demos and move to 3D later. Built the latest release of Box2D from source using MinGW or MSVC: https://github.com/erincatto/box2d/releases

4
General discussions / Re: iOS and ANdroid support?
« on: February 09, 2024, 02:22:09 pm »
I don't agree that this was a bad idea because the old threads at the top of Google search and my tutorial may help other people searching for "sfml android". It was hard to find a good detailed step by step guide to SFML + Android. This issue has been solved. But I won't post a link to my tutorial in other old threads because that was enough. I added a link to my tutorial in the signature. The signature is hidden spam.

5
General discussions / Re: iOS and ANdroid support?
« on: February 08, 2024, 02:08:04 pm »
I created this issue a month ago but it was not fixed yet: The word "soon" must be deleted on the official web site

I have made a step-by-step instruction for Android: How to build SFML3 with gradlew for Android on Window 10 with MinGW

In my opinion, SFML is worse for Android than libGDX (Phaser+Cordova or PixiJS+Cordova) because there is no documentation about SFML for Android. There is no big tutorials about SFML + Android. We only have one example: https://github.com/SFML/SFML/blob/master/examples/android/app/src/main/jni/main.cpp



6
SFML wiki / Re: Tutorial: Building SFML for Android on Windows
« on: February 08, 2024, 01:42:35 pm »
I have made a step-by-step instruction for Android: How to build SFML3 with gradlew for Android on Window 10 with MinGW

7
General / Re: Android support
« on: February 08, 2024, 01:40:08 pm »
I have made a step-by-step instruction for Android: How to build SFML3 with gradlew for Android on Window 10 with MinGW

8
General / Re: SFML for Android
« on: February 08, 2024, 01:37:43 pm »
I have made a step-by-step instruction for Android: How to build SFML3 with gradlew for Android on Window 10 with MinGW

9
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

10
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

11
General discussions / Re: A problem occurred evaluating project ':app'
« on: January 03, 2024, 08:28:25 pm »
I will try to build SFML-master with gradlew here: How to build SFML-master with gradlew for Android?

12
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:









13
General discussions / Re: A problem occurred evaluating project ':app'
« on: January 03, 2024, 07:10:09 pm »
I changed the Gradle version.

The next error:

Quote
No version of NDK matched the requested version 21.0.6113669. Versions available locally: 21.4.7075529, 25.1.8937393

was solved be installing the NDK 21.0.6113669. Now I have this one:

Quote
E:\Libs\SFML-2.6.1\examples\android>gradle build --scan

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:assemble'.
> Could not create task ':app:assembleRelease'.
   > Could not create task ':app:lintVitalRelease'.
      > Could not create task ':app:processReleaseManifest'.
         > Cannot use @TaskAction annotation on method IncrementalTask.taskAction$gradle() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

BUILD FAILED in 3s

Tried to build the example (I attached it) from the current `master` branch: https://github.com/SFML/SFML/tree/master/examples/android

Log:

Quote
E:\Libs\SFML-2.6.1\examples\android>gradle build

> Configure project :app
[CXX1101] NDK at E:\AppData\Android\SDK\ndk\26.1.10909125 did not have a source.properties file
Checking the license for package NDK (Side by side) 26.1.10909125 in E:\AppData\Android\SDK\licenses
License for package NDK (Side by side) 26.1.10909125 accepted.
Preparing "Install NDK (Side by side) 26.1.10909125 (revision: 26.1.10909125)".
"Install NDK (Side by side) 26.1.10909125 (revision: 26.1.10909125)" ready.
Installing NDK (Side by side) 26.1.10909125 in E:\AppData\Android\SDK\ndk\26.1.10909125
"Install NDK (Side by side) 26.1.10909125 (revision: 26.1.10909125)" complete.
"Install NDK (Side by side) 26.1.10909125 (revision: 26.1.10909125)" finished.
Checking the license for package CMake 3.22.1 in E:\AppData\Android\SDK\licenses
License for package CMake 3.22.1 accepted.
Preparing "Install CMake 3.22.1 (revision: 3.22.1)".
"Install CMake 3.22.1 (revision: 3.22.1)" ready.
Installing CMake 3.22.1 in E:\AppData\Android\SDK\cmake\3.22.1
"Install CMake 3.22.1 (revision: 3.22.1)" complete.
"Install CMake 3.22.1 (revision: 3.22.1)" finished.
Checking the license for package Android SDK Build-Tools 30.0.3 in E:\AppData\Android\SDK\licenses
License for package Android SDK Build-Tools 30.0.3 accepted.
Preparing "Install Android SDK Build-Tools 30.0.3 (revision: 30.0.3)".
"Install Android SDK Build-Tools 30.0.3 (revision: 30.0.3)" ready.
Installing Android SDK Build-Tools 30.0.3 in E:\AppData\Android\SDK\build-tools\30.0.3
"Install Android SDK Build-Tools 30.0.3 (revision: 30.0.3)" complete.
"Install Android SDK Build-Tools 30.0.3 (revision: 30.0.3)" finished.

> Task :app:configureCMakeDebug[arm64-v8a]
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.

> Task :app:configureCMakeDebug[arm64-v8a] FAILED

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-2.6.1\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-2.6.1/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-2.6.1\\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-2.6.1\\examples\\android\\app\\build\\intermediates\\cxx\\Debug\\2305a5j6\\obj\\arm64-v8a" ^
        "-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=E:\\Libs\\SFML-2.6.1\\examples\\android\\app\\build\\intermediates\\cxx\\Debug\\2305a5j6\\obj\\arm64-v8a" ^
        "-DCMAKE_BUILD_TYPE=Debug" ^
        "-BE:\\Libs\\SFML-2.6.1\\examples\\android\\app\\.cxx\\Debug\\2305a5j6\\arm64-v8a" ^
        -GNinja ^
        "-DANDROID_STL=c++_shared" ^
        "-DSFML_STATIC_LIBRARIES=FALSE"
    from E:\Libs\SFML-2.6.1\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 4m 53s
21 actionable tasks: 21 executed

14
Hello,

I try to complete this guide: https://github.com/SFML/SFML/wiki/Tutorial%3A-Building-SFML-for-Android I use SFML 2.6.1

I made successfully these steps:

Quote
mingw32-make
mingw32-make install

But when I try to build an example with the command `gradle build --scan` I have the error:

Quote
E:\Libs\SFML-2.6.1\examples\android>gradle build --scan

FAILURE: Build failed with an exception.

* Where:
Build file 'E:\Libs\SFML-2.6.1\examples\android\app\build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.android.application'.
   > Could not create an instance of type com.android.build.gradle.AppExtension.
      > Could not create an instance of type com.android.build.gradle.internal.dsl.TestOptions.
         > Could not create an instance of type com.android.build.gradle.internal.dsl.TestOptions$UnitTestOptions.
            > 'void org.gradle.api.internal.DefaultDomainObjectSet.<init>(java.lang.Class)'

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.5/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 3s

I tried to execute this command: `gradle build --info --scan --stacktrace`

Log:

Quote
E:\Libs\SFML-2.6.1\examples\android>gradle build --info --scan --stacktrace
Initialized native services in: C:\Users\8Observer8\.gradle\native
Initialized jansi services in: C:\Users\8Observer8\.gradle\native
Received JVM installation metadata from 'E:\Program Files\Java\jdk-17': {JAVA_HOME=E:\Program Files\Java\jdk-17, JAVA_VERSION=17.0.9, JAVA_VENDOR=Oracle Corporation, RUNTIME_NAME=Java(TM) SE Runtime Environment, RUNTIME_VERSION=17.0.9+11-LTS-201, VM_NAME=Java HotSpot(TM) 64-Bit Server VM, VM_VERSION=17.0.9+11-LTS-201, VM_VENDOR=Oracle Corporation, OS_ARCH=amd64}
The client will now receive all logging from the daemon (pid: 2500). The daemon log file: C:\Users\8Observer8\.gradle\daemon\8.5\daemon-2500.out.log
Starting 4th build in daemon [uptime: 29 mins 19.24 secs, performance: 100%, GC rate: 0.00/s, heap usage: 0% of 1.5 GiB]
Using 4 worker leases.
Now considering [E:\Libs\SFML-2.6.1\examples\android] as hierarchies to watch
Watching the file system is configured to be enabled if available
File system watching is active
Starting Build
Settings evaluated using settings file 'E:\Libs\SFML-2.6.1\examples\android\settings.gradle'.
Projects loaded. Root project using build file 'E:\Libs\SFML-2.6.1\examples\android\build.gradle'.
Included projects: [root project 'android', project ':app']

> Configure project :
Evaluating root project 'android' using build file 'E:\Libs\SFML-2.6.1\examples\android\build.gradle'.

> Configure project :app
Evaluating project ':app' using build file 'E:\Libs\SFML-2.6.1\examples\android\app\build.gradle'.

FAILURE: Build failed with an exception.

* Where:
Build file 'E:\Libs\SFML-2.6.1\examples\android\app\build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.android.application'.
   > Could not create an instance of type com.android.build.gradle.AppExtension.
      > Could not create an instance of type com.android.build.gradle.internal.dsl.TestOptions.
         > Could not create an instance of type com.android.build.gradle.internal.dsl.TestOptions$UnitTestOptions.
            > 'void org.gradle.api.internal.DefaultDomainObjectSet.<init>(java.lang.Class)'

* Try:
> Run with --debug option to get more log output.
> Get more help at https://help.gradle.org.

* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating project ':app'.
        at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)
        at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.lambda$apply$0(DefaultScriptPluginFactory.java:136)
        at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:79)
        at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:139)
        at org.gradle.configuration.BuildOperationScriptPlugin$1.run(BuildOperationScriptPlugin.java:68)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
        at org.gradle.configuration.BuildOperationScriptPlugin.lambda$apply$0(BuildOperationScriptPlugin.java:65)
        at org.gradle.internal.code.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:43)
        at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:65)
        at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$applyToMutableState$1(DefaultProjectStateRegistry.java:406)
        at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.fromMutableState(DefaultProjectStateRegistry.java:424)
        at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.applyToMutableState(DefaultProjectStateRegistry.java:405)
        at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:46)
        at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:27)
        at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:35)
        at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.lambda$run$0(LifecycleProjectEvaluator.java:109)
        at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$applyToMutableState$1(DefaultProjectStateRegistry.java:406)
        at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$fromMutableState$2(DefaultProjectStateRegistry.java:429)
        at org.gradle.internal.work.DefaultWorkerLeaseService.withReplacedLocks(DefaultWorkerLeaseService.java:360)
        at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.fromMutableState(DefaultProjectStateRegistry.java:429)
        at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.applyToMutableState(DefaultProjectStateRegistry.java:405)
        at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.run(LifecycleProjectEvaluator.java:100)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
        at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:72)
        at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:790)
        at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:156)
        at org.gradle.api.internal.project.ProjectLifecycleController.lambda$ensureSelfConfigured$2(ProjectLifecycleController.java:84)
        at org.gradle.internal.model.StateTransitionController.lambda$doTransition$14(StateTransitionController.java:255)
        at org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:266)
        at org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:254)
        at org.gradle.internal.model.StateTransitionController.lambda$maybeTransitionIfNotCurrentlyTransitioning$10(StateTransitionController.java:199)
        at org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:34)
        at org.gradle.internal.model.StateTransitionController.maybeTransitionIfNotCurrentlyTransitioning(StateTransitionController.java:195)
        at org.gradle.api.internal.project.ProjectLifecycleController.ensureSelfConfigured(ProjectLifecycleController.java:84)
        at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.ensureConfigured(DefaultProjectStateRegistry.java:380)
        at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:34)
        at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:50)
        at org.gradle.configuration.DefaultProjectsPreparer.prepareProjects(DefaultProjectsPreparer.java:42)
        at org.gradle.configuration.BuildTreePreparingProjectsPreparer.prepareProjects(BuildTreePreparingProjectsPreparer.java:65)
        at org.gradle.configuration.BuildOperationFiringProjectsPreparer$ConfigureBuild.run(BuildOperationFiringProjectsPreparer.java:52)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
        at org.gradle.configuration.BuildOperationFiringProjectsPreparer.prepareProjects(BuildOperationFiringProjectsPreparer.java:40)
        at org.gradle.initialization.VintageBuildModelController.lambda$prepareProjects$2(VintageBuildModelController.java:84)
        at org.gradle.internal.model.StateTransitionController.lambda$doTransition$14(StateTransitionController.java:255)
        at org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:266)
        at org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:254)
        at org.gradle.internal.model.StateTransitionController.lambda$transitionIfNotPreviously$11(StateTransitionController.java:213)
        at org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:34)
        at org.gradle.internal.model.StateTransitionController.transitionIfNotPreviously(StateTransitionController.java:209)
        at org.gradle.initialization.VintageBuildModelController.prepareProjects(VintageBuildModelController.java:84)
        at org.gradle.initialization.VintageBuildModelController.prepareToScheduleTasks(VintageBuildModelController.java:71)
        at org.gradle.internal.build.DefaultBuildLifecycleController.lambda$prepareToScheduleTasks$6(DefaultBuildLifecycleController.java:175)
        at org.gradle.internal.model.StateTransitionController.lambda$doTransition$14(StateTransitionController.java:255)
        at org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:266)
        at org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:254)
        at org.gradle.internal.model.StateTransitionController.lambda$maybeTransition$9(StateTransitionController.java:190)
        at org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:34)
        at org.gradle.internal.model.StateTransitionController.maybeTransition(StateTransitionController.java:186)
        at org.gradle.internal.build.DefaultBuildLifecycleController.prepareToScheduleTasks(DefaultBuildLifecycleController.java:173)
        at org.gradle.internal.buildtree.DefaultBuildTreeWorkPreparer.scheduleRequestedTasks(DefaultBuildTreeWorkPreparer.java:36)
        at org.gradle.configurationcache.VintageBuildTreeWorkController$scheduleAndRunRequestedTasks$1.apply(VintageBuildTreeWorkController.kt:36)
        at org.gradle.configurationcache.VintageBuildTreeWorkController$scheduleAndRunRequestedTasks$1.apply(VintageBuildTreeWorkController.kt:35)
        at org.gradle.composite.internal.DefaultIncludedBuildTaskGraph.withNewWorkGraph(DefaultIncludedBuildTaskGraph.java:112)
        at org.gradle.configurationcache.VintageBuildTreeWorkController.scheduleAndRunRequestedTasks(VintageBuildTreeWorkController.kt:35)
        at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$scheduleAndRunTasks$1(DefaultBuildTreeLifecycleController.java:76)
        at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$runBuild$4(DefaultBuildTreeLifecycleController.java:119)
        at org.gradle.internal.model.StateTransitionController.lambda$transition$6(StateTransitionController.java:169)
        at org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:266)
        at org.gradle.internal.model.StateTransitionController.lambda$transition$7(StateTransitionController.java:169)
        at org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:44)
        at org.gradle.internal.model.StateTransitionController.transition(StateTransitionController.java:169)
        at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.runBuild(DefaultBuildTreeLifecycleController.java:116)
        at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.scheduleAndRunTasks(DefaultBuildTreeLifecycleController.java:76)
        at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.scheduleAndRunTasks(DefaultBuildTreeLifecycleController.java:71)
        at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:31)
        at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
        at org.gradle.internal.buildtree.ProblemReportingBuildActionRunner.run(ProblemReportingBuildActionRunner.java:49)
        at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:65)
        at org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner.run(FileSystemWatchingBuildActionRunner.java:140)
        at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:41)
        at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.lambda$execute$0(RootBuildLifecycleBuildActionExecutor.java:40)
        at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:123)
        at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.execute(RootBuildLifecycleBuildActionExecutor.java:40)
        at org.gradle.internal.buildtree.InitDeprecationLoggingActionExecutor.execute(InitDeprecationLoggingActionExecutor.java:62)
        at org.gradle.internal.buildtree.InitProblems.execute(InitProblems.java:38)
        at org.gradle.internal.buildtree.DefaultBuildTreeContext.execute(DefaultBuildTreeContext.java:40)
        at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.lambda$execute$0(BuildTreeLifecycleBuildActionExecutor.java:58)
        at org.gradle.internal.buildtree.BuildTreeState.run(BuildTreeState.java:58)
        at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.execute(BuildTreeLifecycleBuildActionExecutor.java:58)
        at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:61)
        at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:57)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
        at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor.execute(RunAsBuildOperationBuildActionExecutor.java:57)
        at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.lambda$execute$0(RunAsWorkerThreadBuildActionExecutor.java:36)
        at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:264)
        at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:128)
        at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.execute(RunAsWorkerThreadBuildActionExecutor.java:36)
        at org.gradle.tooling.internal.provider.continuous.ContinuousBuildActionExecutor.execute(ContinuousBuildActionExecutor.java:110)
        at org.gradle.tooling.internal.provider.SubscribableBuildActionExecutor.execute(SubscribableBuildActionExecutor.java:64)
        at org.gradle.internal.session.DefaultBuildSessionContext.execute(DefaultBuildSessionContext.java:46)
        at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter$ActionImpl.apply(BuildSessionLifecycleBuildActionExecuter.java:92)
        at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter$ActionImpl.apply(BuildSessionLifecycleBuildActionExecuter.java:80)
        at org.gradle.internal.session.BuildSessionState.run(BuildSessionState.java:69)
        at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:62)
        at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:41)
        at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:64)
        at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:32)
        at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:51)
        at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:39)
        at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:47)
        at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:31)
        at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:65)
        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
        at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:39)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
        at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:29)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
        at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:35)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
        at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:78)
        at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:75)
        at org.gradle.util.internal.Swapper.swap(Swapper.java:38)
        at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:75)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
        at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:64)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
        at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:63)
        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
        at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:84)
        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
        at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:52)
        at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'com.android.application'.
        at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:176)
        at org.gradle.api.internal.plugins.DefaultPluginManager.apply(DefaultPluginManager.java:148)
        at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.applyType(DefaultObjectConfigurationAction.java:161)
        at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.access$200(DefaultObjectConfigurationAction.java:43)
        at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction$3.run(DefaultObjectConfigurationAction.java:98)
        at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.execute(DefaultObjectConfigurationAction.java:184)
        at org.gradle.api.internal.project.AbstractPluginAware.apply(AbstractPluginAware.java:49)
        at org.gradle.api.internal.project.ProjectScript.apply(ProjectScript.java:37)
        at org.gradle.api.Script$apply$0.callCurrent(Unknown Source)
        at build_1bbuhdn2mgfw1k42njlzhemu2.run(E:\Libs\SFML-2.6.1\examples\android\app\build.gradle:1)
        at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91)
        ... 164 more
Caused by: org.gradle.api.reflect.ObjectInstantiationException: Could not create an instance of type com.android.build.gradle.AppExtension.
        at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.doCreate(DependencyInjectingInstantiator.java:69)
        at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.newInstanceWithDisplayName(DependencyInjectingInstantiator.java:50)
        at org.gradle.internal.extensibility.DefaultConvention.instantiate(DefaultConvention.java:232)
        at org.gradle.internal.extensibility.DefaultConvention.create(DefaultConvention.java:141)
        at com.android.build.gradle.AppPlugin.createExtension(AppPlugin.java:72)
        at com.android.build.gradle.BasePlugin.configureExtension(BasePlugin.java:411)
        at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:81)
        at com.android.build.gradle.BasePlugin.apply(BasePlugin.java:271)
        at com.android.build.gradle.AppPlugin.apply(AppPlugin.java:120)
        at com.android.build.gradle.AppPlugin.apply(AppPlugin.java:47)
        at org.gradle.api.internal.plugins.ImperativeOnlyPluginTarget.applyImperative(ImperativeOnlyPluginTarget.java:43)
        at org.gradle.api.internal.plugins.RuleBasedPluginTarget.applyImperative(RuleBasedPluginTarget.java:51)
        at org.gradle.api.internal.plugins.DefaultPluginManager.addPlugin(DefaultPluginManager.java:190)
        at org.gradle.api.internal.plugins.DefaultPluginManager.access$100(DefaultPluginManager.java:54)
        at org.gradle.api.internal.plugins.DefaultPluginManager$AddPluginBuildOperation.run(DefaultPluginManager.java:285)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
        at org.gradle.api.internal.plugins.DefaultPluginManager.lambda$doApply$0(DefaultPluginManager.java:170)
        at org.gradle.internal.code.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:43)
        at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:169)
        ... 174 more
Caused by: org.gradle.api.reflect.ObjectInstantiationException: Could not create an instance of type com.android.build.gradle.internal.dsl.TestOptions.
        at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.doCreate(DependencyInjectingInstantiator.java:69)
        at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.newInstance(DependencyInjectingInstantiator.java:55)
        at com.android.build.gradle.BaseExtension.<init>(BaseExtension.java:223)
        at com.android.build.gradle.TestedExtension.<init>(TestedExtension.java:52)
        at com.android.build.gradle.AppExtension.<init>(AppExtension.java:37)
        at com.android.build.gradle.AppExtension_Decorated.<init>(Unknown Source)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at org.gradle.internal.instantiation.generator.AsmBackedClassGenerator$InvokeConstructorStrategy.newInstance(AsmBackedClassGenerator.java:2097)
        at org.gradle.internal.instantiation.generator.AbstractClassGenerator$GeneratedClassImpl$GeneratedConstructorImpl.newInstance(AbstractClassGenerator.java:524)
        at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.doCreate(DependencyInjectingInstantiator.java:64)
        ... 199 more
Caused by: org.gradle.api.reflect.ObjectInstantiationException: Could not create an instance of type com.android.build.gradle.internal.dsl.TestOptions$UnitTestOptions.
        at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.doCreate(DependencyInjectingInstantiator.java:69)
        at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.newInstance(DependencyInjectingInstantiator.java:55)
        at com.android.build.gradle.internal.dsl.TestOptions.<init>(TestOptions.java:54)
        at com.android.build.gradle.internal.dsl.TestOptions_Decorated.<init>(Unknown Source)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at org.gradle.internal.instantiation.generator.AsmBackedClassGenerator$InvokeConstructorStrategy.newInstance(AsmBackedClassGenerator.java:2097)
        at org.gradle.internal.instantiation.generator.AbstractClassGenerator$GeneratedClassImpl$GeneratedConstructorImpl.newInstance(AbstractClassGenerator.java:524)
        at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.doCreate(DependencyInjectingInstantiator.java:64)
        ... 210 more
Caused by: java.lang.NoSuchMethodError: 'void org.gradle.api.internal.DefaultDomainObjectSet.<init>(java.lang.Class)'
        at com.android.build.gradle.internal.dsl.TestOptions$UnitTestOptions.<init>(TestOptions.java:146)
        at com.android.build.gradle.internal.dsl.TestOptions$UnitTestOptions_Decorated.<init>(Unknown Source)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at org.gradle.internal.instantiation.generator.AsmBackedClassGenerator$InvokeConstructorStrategy.newInstance(AsmBackedClassGenerator.java:2097)
        at org.gradle.internal.instantiation.generator.AbstractClassGenerator$GeneratedClassImpl$GeneratedConstructorImpl.newInstance(AbstractClassGenerator.java:524)
        at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.doCreate(DependencyInjectingInstantiator.java:64)
        ... 219 more


Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.5/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 2s

15
The problem with path was solved. I should clean the build folder.

Quote
cmake -G "MinGW Makefiles" ../.. -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

The next problem is: A problem occurred evaluating project ':app'

Pages: [1] 2
anything