When I checkout ext/vcmi to master branch, everything is OK. But I checkout ext/vcmi to develop branch, and type:
python build.py fixpaths build-cmake
Error occured:
PS E:\code\vcmi-android> python build.py fixpaths build-cmake
Didn’t fix anything in ./project/gradle.properties (already fixed?)
Didn’t fix anything in ./ext/boost/boost_1_68_0/boost/thread/pthread/mutex.hpp (already fixed?)
Didn’t fix anything in ./ext/boost/boost_1_68_0/boost/thread/pthread/recursive_mutex.hpp (already fixed?)
Didn’t fix anything in ./ext/boost/boost_1_68_0/libs/filesystem/src/operations.cpp (already fixed?)
Didn’t fix anything in ./ext/boost/boost_1_68_0/boost/asio/detail/impl/epoll_reactor.ipp (already fixed?)
File ./ext/SDL2/SDL2-image/code/Android.mk not found; skipping
File ./ext/SDL2/SDL2-ttf/code/Android.mk not found; skipping
File ./ext/SDL2/SDL2-mixer/code/Android.mk not found; skipping
File ./ext/SDL2/SDL2-mixer/code/external/smpeg2-2.0.0/Android.mk not found; skipping
Didn’t fix anything in ./ext/ff/ffmpeg/configure (already fixed?)
Didn’t fix anything in ./ext/ff/x264/configure (already fixed?)
Didn’t fix anything in ./ext/vcmi/AI/FuzzyLite/fuzzylite/CMakeLists.txt (already fixed?)Task :vcmi-app:configureCMakeRelWithDebInfo FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ‘:vcmi-app:configureCMakeRelWithDebInfo’.
C/C++: E:\code\vcmi-android\project\vcmi-app\cmake-scripts\CMakeLists.txt VcmiOnlyRelease|arm64-v8a : CMake Error at E:/code/vcmi-android/ext/vcmi/lib/CMakeLists.txt:1 (add_main_lib):
Unknown CMake command “add_main_lib”.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 4s
14 actionable tasks: 14 executed
Error code 1 during build on command: gradlew -a :vcmi-app:compileLibsOnlyReleaseSources
I dont know how to fix it.