Hi.
I’ve followed instructions on GitHub - couchbase/couchbase-lite-android-ce: The community edition of couchbase lite for android .
While executing task [build] I get error:
*What went wrong:
Execution failed for task ‘:lib:externalNativeBuildDebug’.
Build command failed.
Error while executing process C:\Users\usrOne\Programs\AndroidSdk\cmake\3.10.2.4988404\bin\cmake.exe with arguments {–build D:\myproject\ACR\couchbase-lite-android-ce\couchbase-lite-android\lib.externalNativeBuild\cmake\debug\x86_64 --target LiteCoreJNI}
[1/295] Building CXX object CMakeFiles/LiteCoreJNI.dir/src/shared/main/cpp/native_c4.cc.o
FAILED: CMakeFiles/LiteCoreJNI.dir/src/shared/main/cpp/native_c4.cc.o
C:\Users\usrOne\Programs\AndroidSdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=x86_64-none-linux-android --gcc-toolchain=C:/Users/usrOne/Programs/AndroidSdk/ndk-bundle/toolchains/x86_64-4.9/prebuilt/windows-x86_64 --sysroot=C:/Users/usrOne/Programs/AndroidSdk/ndk-bundle/sysroot -DLiteCoreJNI_EXPORTS -ID:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/C/include -ID:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/LiteCore/Storage -ID:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/LiteCore/Support -ID:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece -ID:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece/Mutable -ID:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/API -ID:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece/Core -ID:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece/Support -ID:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/SQLiteCpp/include -ID:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/SQLiteCpp/sqlite3 -ID:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/sqlite3-unicodesn -ID:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/BLIP-Cpp/include/blip_cpp -ID:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/BLIP-Cpp/src/util -ID:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/civetweb/include -ID:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/mbedtls/include -isystem C:/Users/usrOne/Programs/AndroidSdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include -isystem C:/Users/usrOne/Programs/AndroidSdk/ndk-bundle/sources/android/support/include -isystem C:/Users/usrOne/Programs/AndroidSdk/ndk-bundle/sources/cxx-stl/llvm-libc++abi/include -isystem C:/Users/usrOne/Programs/AndroidSdk/ndk-bundle/sysroot/usr/include/x86_64-linux-android -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,–noexecstack -Wformat -Werror=format-security -std=c++11 -std=c++11 -frtti -fexceptions -fPIC -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/LiteCoreJNI.dir/src/shared/main/cpp/native_c4.cc.o -MF CMakeFiles\LiteCoreJNI.dir\src\shared\main\cpp\native_c4.cc.o.d -o CMakeFiles/LiteCoreJNI.dir/src/shared/main/cpp/native_c4.cc.o -c D:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/src/shared/main/cpp/native_c4.cc
D:/myproject/ACR/couchbase-lite-android-ce/couchbase-lite-java/src/shared/main/cpp/native_c4.cc:21:10: fatal error: ‘mbedtls/pkcs5.h’ file not found
#include “mbedtls/pkcs5.h”
^~~~~~~~~~~~~~~~~
1 error generated.
[2/295] Building CXX object CMakeFiles/LiteCoreJNI.dir/src/shared/main/cpp/native_c4fulltextmatch.cc.o
[3/295] Building CXX object CMakeFiles/LiteCoreJNI.dir/src/shared/main/cpp/native_c4prediction.cc.o
[4/295] Building CXX object CMakeFiles/LiteCoreJNI.dir/src/shared/main/cpp/native_c4docenumerator.cc.o
[5/295] Building CXX object CMakeFiles/LiteCoreJNI.dir/src/shared/main/cpp/native_c4base.cc.o
[6/295] Building CXX object CMakeFiles/LiteCoreJNI.dir/src/shared/main/cpp/native_c4observer.cc.o
[7/295] Building CXX object CMakeFiles/LiteCoreJNI.dir/src/shared/main/cpp/native_c4blobstore.cc.o
[8/295] Building CXX object CMakeFiles/LiteCoreJNI.dir/src/shared/main/cpp/native_c4database.cc.o
[9/295] Building CXX object CMakeFiles/LiteCoreJNI.dir/src/shared/main/cpp/native_c4document.cc.o
[10/295] Building CXX object D:/myProject/ACR/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/Support.dir/LiteCore/Support/LogEncoder.cc.o
ninja: build stopped: subcommand failed.
Any clue how to solve this ?
You ran a recursive checkout right? I would expect this error if the submodules were not present.
I played a bit more with it today and I tried to build it on linux ubuntu machine. The previous error I got was on the windows machine, strange. Here I came a further but still not building.
I’m using:
NDK version 20.0.55.
android studio 3.5
CMAKE installed via SDK manager 3.10.2.4988…
JDK 1.8.0.222
I followed the steps:
git clone --recursive GitHub - couchbase/couchbase-lite-android-ce: The community edition of couchbase lite for android
and after within couchbase-lite-android-ce executed:
git submodule update --recursive --remote
I ran gradle build then and got following error:
18:38:36: Executing task ‘build’…
Executing tasks: [build] in project /usr/local/repos/couchbase-lite-android-ce
Task :couchbase-lite-android:lib:preBuild UP-TO-DATE
Task :couchbase-lite-android:lib:preDebugBuild UP-TO-DATE
Task :couchbase-lite-android:lib:compileDebugAidl NO-SOURCE
Task :couchbase-lite-android:lib:compileDebugRenderscript NO-SOURCE
Task :couchbase-lite-android:lib:checkDebugManifest UP-TO-DATE
Task :couchbase-lite-android:lib:generateDebugBuildConfig
Task :couchbase-lite-android:lib:generateDebugResValues UP-TO-DATE
Task :couchbase-lite-android:lib:generateDebugResources UP-TO-DATE
Task :couchbase-lite-android:lib:packageDebugResources UP-TO-DATE
Task :couchbase-lite-android:lib:processDebugManifest UP-TO-DATE
Task :couchbase-lite-android:lib:generateDebugRFile UP-TO-DATE
Task :couchbase-lite-android:lib:compileDebugKotlin
Task :couchbase-lite-android:lib:prepareLintJar UP-TO-DATE
Task :couchbase-lite-android:lib:generateDebugSources
Task :couchbase-lite-android:lib:javaPreCompileDebug UP-TO-DATE
Task :couchbase-lite-android:lib:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Task :couchbase-lite-android:lib:extractDebugAnnotations
Task :couchbase-lite-android:lib:mergeDebugConsumerProguardFiles UP-TO-DATE
Task :couchbase-lite-android:lib:mergeDebugShaders UP-TO-DATE
Task :couchbase-lite-android:lib:compileDebugShaders UP-TO-DATE
Task :couchbase-lite-android:lib:generateDebugAssets UP-TO-DATE
Task :couchbase-lite-android:lib:packageDebugAssets UP-TO-DATE
Task :couchbase-lite-android:lib:packageDebugRenderscript NO-SOURCE
Task :couchbase-lite-android:lib:prepareLintJarForPublish UP-TO-DATE
Task :couchbase-lite-android:lib:jacocoDebug
Task :couchbase-lite-android:lib:processDebugJavaRes NO-SOURCE
Task :couchbase-lite-android:lib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
Task :couchbase-lite-android:lib:transformClassesAndResourcesWithSyncLibJarsForDebug
Task :couchbase-lite-android:lib:generateJsonModelDebug UP-TO-DATE
Task :couchbase-lite-android:lib:externalNativeBuildDebug
Build LiteCoreJNI x86_64
[1/215] Building CXX object /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/c4Socket.cc.o
FAILED: /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/c4Socket.cc.o
/usr/local/bin/Android/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=x86_64-none-linux-android21 --gcc-toolchain=/usr/local/bin/Android/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/usr/local/bin/Android/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DCMAKE -DDEBUG -DHAVE_LOCALTIME_R -DHAVE_USLEEP -DHAVE_UTIME -DLITECORE_IMPL -DLITECORE_USES_ICU=1 -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1 -DSQLITE_DISABLE_FTS3_UNICODE -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS3_TOKENIZER -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT4 -DSQLITE_HAVE_ISNAN -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_OMIT_DATETIME_FUNCS -DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_SHARED_CACHE -D_CRYPTO_MBEDTLS -D_FILE_OFFSET_BITS=32 -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/C/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/LiteCore/Storage -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/LiteCore/Support -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece/Mutable -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/API -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece/Core -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece/Support -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/SQLiteCpp/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/SQLiteCpp/sqlite3 -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/sqlite3-unicodesn -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/BLIP-Cpp/include/blip_cpp -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/BLIP-Cpp/src/util -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/civetweb/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/mbedtls/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/.externalNativeBuild/cmake/debug/x86_64/generated_headers -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/fleece/API -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/fleece/Fleece/Core -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/fleece/Fleece/Mutable -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/fleece/Fleece/Support -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/BlobStore -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Database -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Query -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Query/N1QL_Parser -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/RevTrees -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Storage -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Support -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/mbedtls/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/C -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/C/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/BLIP-Cpp/include/blip_cpp -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/BLIP-Cpp/src/util -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/SQLiteCpp/sqlite3 -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/SQLiteCpp/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/sqlite3-unicodesn -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/civetweb/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Unix -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Android -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,–noexecstack -Wformat -Werror=format-security -std=c++11 -frtti -fexceptions -fPIC -O0 -fno-limit-debug-info -fPIC -std=gnu++11 -MD -MT /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/c4Socket.cc.o -MF /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/c4Socket.cc.o.d -o /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/c4Socket.cc.o -c /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/Replicator/c4Socket.cc
/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/Replicator/c4Socket.cc:172:51: error: no viable conversion from ‘fleece::AllocedDict’ to incomplete type ‘const litecore::websocket::Headers’
internal(socket)->gotHTTPResponse(status, headers);
^~~~~~~
/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/BLIP-Cpp/include/blip_cpp/WebSocketInterface.hh:34:11: note: forward declaration of ‘litecore::websocket::Headers’
class Headers;
^
/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/API/fleece/slice.hh:336:9: note: candidate function
operator FLSlice () const noexcept {return {buf, size};}
^
/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/API/fleece/slice.hh:337:9: note: candidate function
operator FLHeapSlice () const noexcept {return {buf, size};}
^
/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/API/fleece/Fleece.hh:50:9: note: candidate function
operator FLValue() const {return _val;}
^
/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/API/fleece/Fleece.hh:182:9: note: candidate function
operator FLDict () const {return (FLDict)_val;}
^
/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/BLIP-Cpp/include/blip_cpp/WebSocketImpl.hh:55:57: note: passing argument to parameter ‘headers’ here
void gotHTTPResponse(int status, const Headers &headers);
^
1 error generated.
[2/215] Building CXX object /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/Inserter.cc.o
FAILED: /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/Inserter.cc.o
/usr/local/bin/Android/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=x86_64-none-linux-android21 --gcc-toolchain=/usr/local/bin/Android/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/usr/local/bin/Android/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DCMAKE -DDEBUG -DHAVE_LOCALTIME_R -DHAVE_USLEEP -DHAVE_UTIME -DLITECORE_IMPL -DLITECORE_USES_ICU=1 -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1 -DSQLITE_DISABLE_FTS3_UNICODE -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS3_TOKENIZER -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT4 -DSQLITE_HAVE_ISNAN -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_OMIT_DATETIME_FUNCS -DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_SHARED_CACHE -D_CRYPTO_MBEDTLS -D_FILE_OFFSET_BITS=32 -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/C/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/LiteCore/Storage -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/LiteCore/Support -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece/Mutable -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/API -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece/Core -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece/Support -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/SQLiteCpp/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/SQLiteCpp/sqlite3 -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/sqlite3-unicodesn -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/BLIP-Cpp/include/blip_cpp -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/BLIP-Cpp/src/util -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/civetweb/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/mbedtls/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/.externalNativeBuild/cmake/debug/x86_64/generated_headers -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/fleece/API -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/fleece/Fleece/Core -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/fleece/Fleece/Mutable -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/fleece/Fleece/Support -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/BlobStore -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Database -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Query -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Query/N1QL_Parser -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/RevTrees -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Storage -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Support -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/mbedtls/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/C -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/C/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/BLIP-Cpp/include/blip_cpp -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/BLIP-Cpp/src/util -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/SQLiteCpp/sqlite3 -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/SQLiteCpp/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/sqlite3-unicodesn -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/civetweb/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Unix -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Android -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,–noexecstack -Wformat -Werror=format-security -std=c++11 -frtti -fexceptions -fPIC -O0 -fno-limit-debug-info -fPIC -std=gnu++11 -MD -MT /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/Inserter.cc.o -MF /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/Inserter.cc.o.d -o /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/Inserter.cc.o -c /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/Replicator/Inserter.cc
In file included from /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/Replicator/Inserter.cc:20:
/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/Replicator/Replicator.hh:106:22: error: ‘onHTTPResponse’ marked ‘override’ but does not override any member functions
virtual void onHTTPResponse(int status, const fleece::AllocedDict &headers) override
^
1 error generated.
[3/215] Building CXX object /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/IncomingBlob.cc.o
FAILED: /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/IncomingBlob.cc.o
/usr/local/bin/Android/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=x86_64-none-linux-android21 --gcc-toolchain=/usr/local/bin/Android/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/usr/local/bin/Android/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DCMAKE -DDEBUG -DHAVE_LOCALTIME_R -DHAVE_USLEEP -DHAVE_UTIME -DLITECORE_IMPL -DLITECORE_USES_ICU=1 -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1 -DSQLITE_DISABLE_FTS3_UNICODE -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS3_TOKENIZER -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT4 -DSQLITE_HAVE_ISNAN -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_OMIT_DATETIME_FUNCS -DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_SHARED_CACHE -D_CRYPTO_MBEDTLS -D_FILE_OFFSET_BITS=32 -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/C/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/LiteCore/Storage -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/LiteCore/Support -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece/Mutable -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/API -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece/Core -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece/Support -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/SQLiteCpp/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/SQLiteCpp/sqlite3 -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/sqlite3-unicodesn -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/BLIP-Cpp/include/blip_cpp -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/BLIP-Cpp/src/util -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/civetweb/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/mbedtls/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/.externalNativeBuild/cmake/debug/x86_64/generated_headers -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/fleece/API -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/fleece/Fleece/Core -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/fleece/Fleece/Mutable -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/fleece/Fleece/Support -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/BlobStore -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Database -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Query -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Query/N1QL_Parser -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/RevTrees -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Storage -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Support -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/mbedtls/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/C -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/C/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/BLIP-Cpp/include/blip_cpp -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/BLIP-Cpp/src/util -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/SQLiteCpp/sqlite3 -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/SQLiteCpp/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/sqlite3-unicodesn -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/civetweb/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Unix -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Android -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,–noexecstack -Wformat -Werror=format-security -std=c++11 -frtti -fexceptions -fPIC -O0 -fno-limit-debug-info -fPIC -std=gnu++11 -MD -MT /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/IncomingBlob.cc.o -MF /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/IncomingBlob.cc.o.d -o /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/IncomingBlob.cc.o -c /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/Replicator/IncomingBlob.cc
In file included from /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/Replicator/IncomingBlob.cc:20:
/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/Replicator/Replicator.hh:106:22: error: ‘onHTTPResponse’ marked ‘override’ but does not override any member functions
virtual void onHTTPResponse(int status, const fleece::AllocedDict &headers) override
^
1 error generated.
[4/215] Building CXX object /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/c4Replicator.cc.o
FAILED: /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/c4Replicator.cc.o
/usr/local/bin/Android/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=x86_64-none-linux-android21 --gcc-toolchain=/usr/local/bin/Android/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/usr/local/bin/Android/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DCMAKE -DDEBUG -DHAVE_LOCALTIME_R -DHAVE_USLEEP -DHAVE_UTIME -DLITECORE_IMPL -DLITECORE_USES_ICU=1 -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1 -DSQLITE_DISABLE_FTS3_UNICODE -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS3_TOKENIZER -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT4 -DSQLITE_HAVE_ISNAN -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_OMIT_DATETIME_FUNCS -DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_SHARED_CACHE -D_CRYPTO_MBEDTLS -D_FILE_OFFSET_BITS=32 -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/C/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/LiteCore/Storage -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/LiteCore/Support -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece/Mutable -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/API -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece/Core -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/fleece/Fleece/Support -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/SQLiteCpp/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/SQLiteCpp/sqlite3 -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/sqlite3-unicodesn -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/BLIP-Cpp/include/blip_cpp -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/BLIP-Cpp/src/util -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/civetweb/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-java/…/couchbase-lite-core/vendor/mbedtls/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/.externalNativeBuild/cmake/debug/x86_64/generated_headers -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/fleece/API -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/fleece/Fleece/Core -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/fleece/Fleece/Mutable -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/fleece/Fleece/Support -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/BlobStore -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Database -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Query -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Query/N1QL_Parser -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/RevTrees -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Storage -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Support -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/mbedtls/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/C -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/C/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/BLIP-Cpp/include/blip_cpp -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/BLIP-Cpp/src/util -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/SQLiteCpp/sqlite3 -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/SQLiteCpp/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/sqlite3-unicodesn -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/vendor/civetweb/include -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Unix -I/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/LiteCore/Android -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,–noexecstack -Wformat -Werror=format-security -std=c++11 -frtti -fexceptions -fPIC -O0 -fno-limit-debug-info -fPIC -std=gnu++11 -MD -MT /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/c4Replicator.cc.o -MF /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/c4Replicator.cc.o.d -o /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-android/lib/build/intermediates/cmake/debug/obj/x86_64/CMakeFiles/LiteCoreStatic.dir/Replicator/c4Replicator.cc.o -c /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/Replicator/c4Replicator.cc
In file included from /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/Replicator/c4Replicator.cc:20:
In file included from /usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/Replicator/c4Replicator.hh:25:
/usr/local/repos/couchbase-lite-android-ce/couchbase-lite-core/Replicator/Replicator.hh:106:22: error: ‘onHTTPResponse’ marked ‘override’ but does not override any member functions
virtual void onHTTPResponse(int status, const fleece::AllocedDict &headers) override
^
1 error generated.
ninja: build stopped: subcommand failed.
Task :couchbase-lite-android:lib:externalNativeBuildDebug FAILED
As noted in the README, in order to update your submodules, you need to say:
git submodule update --recursive --remote
If you want to get a safe version of core, after you do that, cd to the core directory and say:
git submodule update --recursive
Your tool chain looks right to me, though I have been unable to test with AS 3.5 because of other incompatibilities.
I’ve just been informed by a colleague, that this error did appear, briefly, in the source. It has been repaired.
I am researching a way to do this in a less onerous way, but for the time being, be sure you do both updates:
cd $CE
git submodule update --recursive --remote
cd couchbase-lite-core
git submodule update --recursive
Note that the second update does not use the --remote
flag.
cd $CE
git submodule update --recursive --remote
cd couchbase-lite-core
git submodule update --recursive
this worked. I got the:
couchbase-lite-android-2.7.0-SNAPSHOT-debug.aar
couchbase-lite-android-2.7.0-SNAPSHOT-release.aar
It would be good idea to add this information into git readme so others don’t run into same problems.
Thanks!