Building Android TotalCross VM failed on Mac OS
Describe the bug
It is not possible to build Android TotalCross on my mac. The procedure terminates just after created the NDK library.
Here is the last part of the build log:
../../../../../../src/litebase/NativeMethods.c:1992:51: note: put the semicolon on a separate line to silence this warning
1 warning generated.
[222/225] Building C object CMakeFiles/tcvm.dir/src/litebase/parser/SQLSelectStatement.c.o
[223/225] Building CXX object CMakeFiles/tcvm.dir/src/nm/ui/android/skia.cpp.o
> Task :app:desugarSingleApkDebugFileDependencies
> Task :app:externalNativeBuildStandardDebug
[224/225] Building C object CMakeFiles/tcvm.dir/src/sqlite/sqlite3.c.o
../../../../../../src/sqlite/sqlite3.c:29101:9: warning: 'MAX_PATHNAME' macro redefined [-Wmacro-redefined]
#define MAX_PATHNAME 512
^
../../../../../../src/util/xtypes.h:262:9: note: previous definition is here
#define MAX_PATHNAME 1024 // guich@20170801 - some sdcards have very big paths
^
1 warning generated.
[225/225] Linking CXX shared library ../../../../build/intermediates/cmake/standardDebug/obj/arm64-v8a/libtcvm.so
> Task :app:compileStandardDebugSources
> Task :app:checkStandardDebugDuplicateClasses FROM-CACHE
> Task :app:dexBuilderStandardDebug FROM-CACHE
> Task :app:multiDexListStandardDebug FROM-CACHE
> Task :app:mergeStandardDebugShaders FROM-CACHE
> Task :app:compileStandardDebugShaders FROM-CACHE
> Task :app:generateStandardDebugAssets UP-TO-DATE
> Task :app:mergeStandardDebugAssets FROM-CACHE
> Task :app:processStandardDebugJavaRes NO-SOURCE
> Task :app:mergeStandardDebugJavaResource FROM-CACHE
> Task :app:mergeStandardDebugJniLibFolders FROM-CACHE
> Task :app:mergeStandardDebugNativeLibs FROM-CACHE
> Task :app:stripStandardDebugDebugSymbols FROM-CACHE
> Task :app:validateSigningStandardDebug FROM-CACHE
> Task :app:copyApk FAILED
> Task :app:desugarStandardDebugFileDependencies
76 actionable tasks: 10 executed, 62 from cache, 4 up-to-date
Specifically the task to build APK fails and there is no APK built anywhere.
To Reproduce
Download the master branch of TC and perform the command
./gradlew assembleDebug copyApk -x test --console=plain
(also added the --console=plain so that no debug info will be missed)
Expected behavior
To be able to create an APK
Devices:
Please complete the following information:
- OS: Mac OS
- OS Version: 10.15.6
- NDK : 20.0.5594570
- JDK: 1.8.0_265
- TotalCross Version: master branch
Full debug error log error.txt
Updating the Android Gradle plugin broke the target copyApk because the paths for output and intermediate files were slightly changed. This issue should have been fixed by the latest changes for CI/CD, could you try again?