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