I found my mistake. I must replace `/path/to/ndk` to "E:\AppData\Android\SDK\ndk\25.1.8937393" in the command:
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
But how to write this path in right way? I tried:
- E:\AppData\Android\SDK\ndk\25.1.8937393
- E:\\AppData\\Android\\SDK\\ndk\\25.1.8937393
- E:/AppData/Android/SDK/ndk/25.1.8937393
Log:
E:\Libs\SFML-2.6.1\build\armeabi-v7a>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
CMake Error at build/armeabi-v7a/CMakeFiles/3.28.1/CMakeSystem.cmake:13 (set):
Syntax error in cmake code at
E:/Libs/SFML-2.6.1/build/armeabi-v7a/CMakeFiles/3.28.1/CMakeSystem.cmake:13
when parsing string
E:\AppData\Android\SDK\ndk\25.1.8937393
Invalid character escape '\A'.
Call Stack (most recent call first):
CMakeLists.txt:38 (project)
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!