Executing tasks: [:app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugUnitTestSources, :app:compileDebugAndroidTestSources, :opencv:generateDebugSources, :opencv:mockableAndroidJar, :opencv:prepareDebugUnitTestDependencies, :opencv:generateDebugAndroidTestSources, :opencv:compileDebugSources, :opencv:compileDebugUnitTestSources, :opencv:compileDebugAndroidTestSources] Configuration on demand is an incubating feature. The setTestClassesDir(File) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the setTestClassesDirs(FileCollection) method instead. The getTestClassesDir() method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the getTestClassesDirs() method instead. The ConfigurableReport.setDestination(Object) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the method ConfigurableReport.setDestination(File) instead. :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareAndroidArchLifecycleRuntime100Library :app:prepareComAndroidSupportAnimatedVectorDrawable2610Library :app:prepareComAndroidSupportAppcompatV72610Library :app:prepareComAndroidSupportConstraintConstraintLayout102Library :app:prepareComAndroidSupportSupportCompat2610Library :app:prepareComAndroidSupportSupportCoreUi2610Library :app:prepareComAndroidSupportSupportCoreUtils2610Library :app:prepareComAndroidSupportSupportFragment2610Library :app:prepareComAndroidSupportSupportMediaCompat2610Library :app:prepareComAndroidSupportSupportV132610Library :app:prepareComAndroidSupportSupportV42610Library :app:prepareComAndroidSupportSupportVectorDrawable2610Library :opencv:preBuild UP-TO-DATE :opencv:preReleaseBuild UP-TO-DATE :opencv:checkReleaseManifest :opencv:prepareReleaseDependencies :opencv:compileReleaseAidl UP-TO-DATE :opencv:compileLint UP-TO-DATE :opencv:copyReleaseLint NO-SOURCE :opencv:mergeReleaseShaders UP-TO-DATE :opencv:compileReleaseShaders UP-TO-DATE :opencv:generateReleaseAssets UP-TO-DATE :opencv:mergeReleaseAssets UP-TO-DATE :opencv:mergeReleaseProguardFiles UP-TO-DATE :opencv:packageReleaseRenderscript NO-SOURCE :opencv:compileReleaseRenderscript UP-TO-DATE :opencv:generateReleaseResValues UP-TO-DATE :opencv:generateReleaseResources UP-TO-DATE :opencv:packageReleaseResources UP-TO-DATE :opencv:processReleaseManifest UP-TO-DATE :opencv:generateReleaseBuildConfig UP-TO-DATE :opencv:processReleaseResources UP-TO-DATE :opencv:generateReleaseSources UP-TO-DATE :opencv:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE :opencv:javaPreCompileRelease :opencv:compileReleaseJavaWithJavac UP-TO-DATE :opencv:processReleaseJavaRes NO-SOURCE :opencv:transformResourcesWithMergeJavaResForRelease UP-TO-DATE :opencv:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE :opencv:generateJsonModelRelease UP-TO-DATE :opencv:externalNativeBuildRelease :opencv:mergeReleaseJniLibFolders UP-TO-DATE :opencv:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE :opencv:transformNativeLibsWithStripDebugSymbolForRelease UP-TO-DATE :opencv:transformNativeLibsWithSyncJniLibsForRelease UP-TO-DATE :opencv:bundleRelease UP-TO-DATE :app:prepareDebugDependencies :app:compileDebugAidl UP-TO-DATE :app:compileDebugRenderscript UP-TO-DATE :app:generateDebugBuildConfig UP-TO-DATE :app:generateDebugResValues UP-TO-DATE :app:generateDebugResources UP-TO-DATE :app:mergeDebugResources UP-TO-DATE :app:processDebugManifest UP-TO-DATE :app:processDebugResources UP-TO-DATE :app:generateDebugSources UP-TO-DATE :app:mockableAndroidJar UP-TO-DATE :app:preDebugUnitTestBuild UP-TO-DATE :app:prepareDebugUnitTestDependencies :app:preDebugAndroidTestBuild UP-TO-DATE :app:prepareComAndroidSupportTestEspressoEspressoCore222Library :app:prepareComAndroidSupportTestEspressoEspressoIdlingResource222Library :app:prepareComAndroidSupportTestExposedInstrumentationApiPublish05Library :app:prepareComAndroidSupportTestRules05Library :app:prepareComAndroidSupportTestRunner05Library :app:prepareDebugAndroidTestDependencies :app:compileDebugAndroidTestAidl UP-TO-DATE :app:processDebugAndroidTestManifest UP-TO-DATE :app:compileDebugAndroidTestRenderscript UP-TO-DATE :app:generateDebugAndroidTestBuildConfig UP-TO-DATE :app:generateDebugAndroidTestResValues UP-TO-DATE :app:generateDebugAndroidTestResources UP-TO-DATE :app:mergeDebugAndroidTestResources UP-TO-DATE :app:processDebugAndroidTestResources UP-TO-DATE :app:generateDebugAndroidTestSources UP-TO-DATE :app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE :app:javaPreCompileDebug :app:compileDebugJavaWithJavac UP-TO-DATE :app:generateJsonModelDebug UP-TO-DATE :app:externalNativeBuildDebug Build native-lib armeabi-v7a [1/4] Building CXX object CMakeFiles/native-lib.dir/src/main/jni/source/STAM.cpp.o [2/4] Building CXX object CMakeFiles/native-lib.dir/src/main/jni/source/ceresfunc.cpp.o [3/4] Building CXX objec t CMakeFiles/native- l i b . d i r / s r c / m a i n / j n i / s o urce/mainSTAM.cpp.o FAILED: C:\Users\ThulioAraujo\AppData\Local\Android\android-ndk-r15c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi --gcc-toolchain=C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot -DTBB_USE_GCC_BUILTINS=1 -D__TBB_GCC_BUILTIN_ATOMICS_PRESENT=1 -Dnative_lib_EXPORTS -I../../../../../../3rd_party/Eigen -I../../../../../../3rd_party/ceres/include -I../../../../../../3rd_party/ceres/config -I../../../../../../3rd_party/ceres/internal/ceres/miniglog -I../../../../../../3rd_party/ceres/internal -I../../../../src/main/jni/header -I../../../../../../3rd_party/boost_1_64_0/include -isystem E:/voxar_workspace/cslam-android/opencv/src/sdk/native/jni/include -isystem E:/voxar_workspace/cslam-android/opencv/src/sdk/native/jni/include/opencv -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/cxx-stl/llvm-libc++/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/android/support/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/cxx-stl/llvm-libc++abi/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=23 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -fno-rtti -fno-exceptions -std=c++11 -ffunction-sections -fdata-sections -ffunction-sections -fdata-sections -frtti -fexceptions -std=c++11 -ffunction-sections -fdata-sections -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/src/main/jni/source/mainSTAM.cpp.o -MF CMakeFiles\native-lib.dir\src\main\jni\source\mainSTAM.cpp.o.d -o CMakeFiles/native-lib.dir/src/main/jni/source/mainSTAM.cpp.o -c E:\voxar_wor kspace\cslam-android\app\src\main\jni\source\mainSTAM.cpp In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\mainSTAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: In file included from ../../../../src/main/jni/header/ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:48: ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:66:4: error: One of: CERES_NO_UNORDERED_MAP, CERES_TR1_UNORDERED_MAP, CERES_STD_UNORDERED_MAP, CERES_STD_UNORDERED_MAP_IN_TR1_NAMESPACE must be defined! // NOLINT # error One of: CERES_NO_UNORDERED_MAP, CERES_TR1_UNORDERED_MAP,\ ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:168:1: error: unknown type name 'CERES_HASH_NAMESPACE_START' CERES_HASH_NAMESPACE_START ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:174:1: error: expected unqualified-id template ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:193:1: error: unknown type name 'CERES_HASH_NAMESPACE_END' CERES_HASH_NAMESPACE_END ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\mainSTAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: In file included from ../../../../src/main/jni/header/ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:49: In file included from ../../../../../../3rd_party/ceres/include\ceres/problem.h:42: In file included from ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:96: C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot/usr/include\android/log.h:73:1: error: expected unqualified-id extern "C" { ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\mainSTAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: In file included from ../../../../src/main/jni/header/ceresf unc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:49: In file included from ../../../../../../3rd_party/ceres/include\ceres/problem.h:42: ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:186:9: error: use of undeclared identifier 'ANDROID_LOG_FATAL' ANDROID_LOG_FATAL, // LOG(FATAL) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:187:9: error: use of undeclared identifier 'ANDROID_LOG_ERROR' ANDROID_LOG_ERROR, // LOG(ERROR) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:188:9: error: use of undeclared identifier 'ANDROID_LOG_WARN' ANDROID_LOG_WARN, // LOG(WARNING) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:189:9: error: use of undeclared identifier 'ANDROID_LOG_INFO' ANDROID_LOG_INFO, // LOG(INFO), LG, VLOG(0) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:190:9: error: use of undeclared identifier 'ANDROID_LOG_DEBUG' ANDROID_LOG_DEBUG, // VLOG(1) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:191:9: error: use of undeclared identifier 'ANDROID_LOG_VERBOSE' ANDROID_LOG_VERBOSE, // VLOG(2) .. VLOG(N) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:201:5: error: use of undeclared identifier '__android_log_write' __android_log_write(android_log_level, tag_.c_str(), stream_.str().c_str()); ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:205:27: error: use of undeclared identifier 'ANDROID_LOG_FATAL' __android_log_write(ANDROID_LOG_FATAL, ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\mainSTAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: In file included from ../../../../src/main/jni/heade r/ceresfunc.h:11: ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:67:11: error: unknown type name 'HashSet' typedef HashSet ResidualBlockSet; ^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:67:18: error: expected member name or ';' after declaration specifiers typedef HashSet ResidualBlockSet; ~~~~~~~~~~~~~~~^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:176:9: error: unknown type name 'ResidualBlockSet' const ResidualBlockSet& residual_block_set() const { ^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:207:3: error: unknown type name 'ResidualBlockSet' ResidualBlockSet residual_block_set_; ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\mainSTAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: ../../../../src/main/jni/header/ceresfunc.h:22:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] static void Init(void) { google::InitGoogleLogging("Ceres"); } ^ 1 warning and 17 errors generated. FAILED: C:\Users\ThulioAraujo\AppData\Local\Android\android-ndk-r15c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi --gcc-toolchain=C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot -DTBB_USE_GCC_BUILTINS=1 -D__TBB_GCC_BUILTIN_ATOMICS_PRESENT=1 -Dnative_lib_EXPORTS -I../../../../../../3rd_party/Eigen -I../../../../../../3rd_party/ceres/include -I../../../../../../3rd_party/ceres/config -I../../../../../../3rd_party/ceres/internal/ceres/miniglog -I../../../../../../3rd_party/ceres/internal -I../../../../src/main/jni/header -I../../../../../../3rd_party/boost_1_64_0/include -isystem E:/voxar_workspace/cslam-android/opencv/src/sdk/native/jni/include -isystem E:/voxar_workspace/cslam-android/opencv/src/sdk/native/jni/include/opencv -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/cxx-stl/llvm-libc++/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/android/support/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/cxx-stl/llvm-libc++abi/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=23 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -fno-rtti -fno-exceptions -std=c++11 -ffunction-sections -fdata-sections -ffunction-sections -fdata-sections -frtti -fexceptions -std=c++11 -ffunction-sections -fdata-sections -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/src/main/jni/source/STAM.cpp.o -MF CMakeFiles\native-lib.dir\src\main\jni\source\STAM.cpp.o.d -o CMakeFiles/native-lib.dir/src/main/jni/source/STAM.cpp.o -c E:\voxar_workspace\cslam -android\app\src\main\jni\source\STAM.cpp In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\STAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: In file included from ../../../../src/main/jni/header/ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:48: ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:66:4: error: One of: CERES_NO_UNORDERED_MAP, CERES_TR1_UNORDERED_MAP, CERES_STD_UNORDERED_MAP, CERES_STD_UNORDERED_MAP_IN_TR1_NAMESPACE must be defined! // NOLINT # error One of: CERES_NO_UNORDERED_MAP, CERES_TR1_UNORDERED_MAP,\ ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:168:1: error: unknown type name 'CERES_HASH_NAMESPACE_START' CERES_HASH_NAMESPACE_START ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:174:1: error: expected unqualified-id template ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:193:1: error: unknown type name 'CERES_HASH_NAMESPACE_END' CERES_HASH_NAMESPACE_END ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\STAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: In file included from ../../../../src/main/jni/header/ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:49: In file included from ../../../../../../3rd_party/ceres/include\ceres/problem.h:42: In file included from ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:96: C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot/usr/include\android/log.h:73:1: error: expected unqualified-id extern "C" { ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\STAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: In file included from ../../../../src/main/jni/header/ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:49: In file included from ../../../../../../3rd_party/ceres/include\ceres/problem.h:42: ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:186:9: error: use of undeclared identifier 'ANDROID_LOG_FATAL' ANDROID_LOG_FATAL, // LOG(FATAL) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:187:9: error: use of undeclared identifier 'ANDROID_LOG_ERROR' ANDROID_LOG_ERROR, // LOG(ERROR) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:188:9: error: use of undeclared identifier 'ANDROID_LOG_WARN' ANDROID_LOG_WARN, // LOG(WARNING) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:189:9: error: use of undeclared identifier 'ANDROID_LOG_INFO' ANDROID_LOG_INFO, // LOG(INFO), LG, VLOG(0) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:190:9: error: use of undeclared identifier 'ANDROID_LOG_DEBUG' ANDROID_LOG_DEBUG, // VLOG(1) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:191:9: error: use of undeclared identifier 'ANDROID_LOG_VERBOSE' ANDROID_LOG_VERBOSE, // VLOG(2) .. VLOG(N) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:201:5: error: use of undeclared identifier '__android_log_write' __android_log_write(android_log_level, tag_.c_str(), stream_.str().c_str()); ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:205:27: error: use of undeclared identifier 'ANDROID_LOG_FATAL' __android_log_write(ANDROID_LOG_FATAL, ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\STAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: In file included from ../../../../src/main/jni/header/ceresfunc.h:11: ../../../../ ../../3rd_party/ceres/internal\ceres/problem_impl.h:67:11: error: unknown type name 'HashSet' typedef HashSet ResidualBlockSet; ^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:67:18: error: expected member name or ';' after declaration specifiers typedef HashSet ResidualBlockSet; ~~~~~~~~~~~~~~~^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:176:9: error: unknown type name 'ResidualBlockSet' const ResidualBlockSet& residual_block_set() const { ^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:207:3: error: unknown type name 'ResidualBlockSet' ResidualBlockSet residual_block_set_; ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\STAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: ../../../../src/main/jni/header/ceresfunc.h:22:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] static void Init(void) { google::InitGoogleLogging("Ceres"); } ^ 1 warning and 17 errors generated. FAILED: C:\Users\ThulioAraujo\AppData\Local\Android\android-ndk-r15c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi --gcc-toolchain=C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot -DTBB_USE_GCC_BUILTINS=1 -D__TBB_GCC_BUILTIN_ATOMICS_PRESENT=1 -Dnative_lib_EXPORTS -I../../../../../../3rd_party/Eigen -I../../../../../../3rd_party/ceres/include -I../../../../../../3rd_party/ceres/config -I../../../../../../3rd_party/ceres/internal/ceres/miniglog -I../../../../../../3rd_party/ceres/internal -I../../../../src/main/jni/header -I../../../../../../3rd_party/boost_1_64_0/include -isystem E:/voxar_workspace/cslam-android/opencv/src/sdk/native/jni/include -isystem E:/voxar_workspace/cslam-android/opencv/src/sdk/native/jni/include/opencv -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/cxx-stl/llvm-libc++/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/android/support/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/cxx-stl/llvm-libc++abi/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=23 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -fno-rtti -fno-exceptions -std=c++11 -ffunction-sections -fdata-sections -ffunction-sections -fdata-sections -frtti -fexceptions -std=c++11 -ffunction-sections -fdata-sections -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/src/main/jni/source/ceresfunc.cpp.o -MF CMakeFiles\native-lib.dir\src\main\jni\source\ceresfunc.cpp.o.d -o CMakeFiles/native-lib.dir/src/main/jni/source/ceresfunc.cpp.o -c E:\voxar_ workspace\cslam-android\app\src\main\jni\source\ceresfunc.cpp In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\ceresfunc.cpp:7: In file included from ../../../../src/main/jni/header\ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:48: ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:66:4: error: One of: CERES_NO_UNORDERED_MAP, CERES_TR1_UNORDERED_MAP, CERES_STD_UNORDERED_MAP, CERES_STD_UNORDERED_MAP_IN_TR1_NAMESPACE must be defined! // NOLINT # error One of: CERES_NO_UNORDERED_MAP, CERES_TR1_UNORDERED_MAP,\ ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:168:1: error: unknown type name 'CERES_HASH_NAMESPACE_START' CERES_HASH_NAMESPACE_START ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:174:1: error: expected unqualified-id template ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:193:1: error: unknown type name 'CERES_HASH_NAMESPACE_END' CERES_HASH_NAMESPACE_END ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\ceresfunc.cpp:7: In file included from ../../../../src/main/jni/header\ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:49: In file included from ../../../../../../3rd_party/ceres/include\ceres/problem.h:42: In file included from ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:96: C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot/usr/include\android/log.h:73:1: error: expected unqualified-id extern "C" { ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\ceresfunc.cpp:7: In file included from ../../../../src/main/jni/header\ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:49: In file included from ../../../../../../3rd_party/ceres/include\ceres/problem.h:42: ../. ./../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:186:9: error: use of undeclared identifier 'ANDROID_LOG_FATAL' ANDROID_LOG_FATAL, // LOG(FATAL) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:187:9: error: use of undeclared identifier 'ANDROID_LOG_ERROR' ANDROID_LOG_ERROR, // LOG(ERROR) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:188:9: error: use of undeclared identifier 'ANDROID_LOG_WARN' ANDROID_LOG_WARN, // LOG(WARNING) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:189:9: error: use of undeclared identifier 'ANDROID_LOG_INFO' ANDROID_LOG_INFO, // LOG(INFO), LG, VLOG(0) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:190:9: error: use of undeclared identifier 'ANDROID_LOG_DEBUG' ANDROID_LOG_DEBUG, // VLOG(1) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:191:9: error: use of undeclared identifier 'ANDROID_LOG_VERBOSE' ANDROID_LOG_VERBOSE, // VLOG(2) .. VLOG(N) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:201:5: error: use of undeclared identifier '__android_log_write' __android_log_write(android_log_level, tag_.c_str(), stream_.str().c_str()); ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:205:27: error: use of undeclared identifier 'ANDROID_LOG_FATAL' __android_log_write(ANDROID_LOG_FATAL, ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\ceresfunc.cpp:7: In file included from ../../../../src/main/jni/header\ceresfunc.h:11: ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:67:11: error: unknown type name 'HashSet' typedef HashSet ResidualBlockSet; ^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h: 67:18: error: expected member name or ';' after declaration specifiers typedef HashSet ResidualBlockSet; ~~~~~~~~~~~~~~~^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:176:9: error: unknown type name 'ResidualBlockSet' const ResidualBlockSet& residual_block_set() const { ^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:207:3: error: unknown type name 'ResidualBlockSet' ResidualBlockSet residual_block_set_; ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\ceresfunc.cpp:7: ../../../../src/main/jni/header\ceresfunc.h:22:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] static void Init(void) { google::InitGoogleLogging("Ceres"); } ^ 1 warning and 17 errors generated. ninja: build stopped: subcommand failed. :app:externalNativeBuildDebug FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:externalNativeBuildDebug'. > Build command failed. Error while executing process C:\Users\ThulioAraujo\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build E:\voxar_workspace\cslam-android\app\.externalNativeBuild\cmake\debug\arm64-v8a --target native-lib} [1/4] Building CXX object CMakeFiles/native-lib.dir/src/main/jni/source/STAM.cpp.o [2/4] Building CXX object CMakeFiles/native-lib.dir/src/main/jni/source/ceresfunc.cpp.o [3/4] Building CXX object CMakeFiles/native-lib.dir/src/main/jni/source/mainSTAM.cpp.o FAILED: C:\Users\ThulioAraujo\AppData\Local\Android\android-ndk-r15c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi --gcc-toolchain=C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot -DTBB_USE_GCC_BUILTINS=1 -D__TBB_GCC_BUILTIN_ATOMICS_PRESENT=1 -Dnative_lib_EXPORTS -I../../../../../../3rd_party/Eigen -I../../../../../../3rd_party/ceres/include -I../../../../../../3rd_party/ceres/config -I../../../../../../3rd_party/ceres/internal/ceres/miniglog -I../../../../../../3rd_party/ceres/internal -I../../../../src/main/jni/header -I../../../../../../3rd_party/boost_1_64_0/include -isystem E:/voxar_workspace/cslam-android/opencv/src/sdk/native/jni/include -isystem E:/voxar_workspace/cslam-android/opencv/src/sdk/native/jni/include/opencv -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/cxx-stl/llvm-libc++/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/android/support/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/cxx-stl/llvm-libc++abi/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=23 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -fno-rtti -fno-exceptions -std=c++11 -ffunction-sections -fdata-sections -ffunction-sections -fdata-sections -frtti -fexceptions -std=c++11 -ffunction-sections -fdata-sections -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/src/main/jni/source/mainSTAM.cpp.o -MF CMakeFiles\native-lib.dir\src\main\jni\source\mainSTAM.cpp.o.d -o CMakeFiles/native-lib.dir/src/main/jni/source/mainSTAM.cpp.o -c E:\voxar_workspace\cslam-android\app\src\main\jni\source\mainSTAM.cpp In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\mainSTAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: In file included from ../../../../src/main/jni/header/ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:48: ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:66:4: error: One of: CERES_NO_UNORDERED_MAP, CERES_TR1_UNORDERED_MAP, CERES_STD_UNORDERED_MAP, CERES_STD_UNORDERED_MAP_IN_TR1_NAMESPACE must be defined! // NOLINT # error One of: CERES_NO_UNORDERED_MAP, CERES_TR1_UNORDERED_MAP,\ ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:168:1: error: unknown type name 'CERES_HASH_NAMESPACE_START' CERES_HASH_NAMESPACE_START ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:174:1: error: expected unqualified-id template ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:193:1: error: unknown type name 'CERES_HASH_NAMESPACE_END' CERES_HASH_NAMESPACE_END ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\mainSTAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: In file included from ../../../../src/main/jni/header/ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:49: In file included from ../../../../../../3rd_party/ceres/include\ceres/problem.h:42: In file included from ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:96: C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot/usr/include\android/log.h:73:1: error: expected unqualified-id extern "C" { ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\mainSTAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: In file included from ../../../../src/main/jni/header/ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:49: In file included from ../../../../../../3rd_party/ceres/include\ceres/problem.h:42: ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:186:9: error: use of undeclared identifier 'ANDROID_LOG_FATAL' ANDROID_LOG_FATAL, // LOG(FATAL) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:187:9: error: use of undeclared identifier 'ANDROID_LOG_ERROR' ANDROID_LOG_ERROR, // LOG(ERROR) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:188:9: error: use of undeclared identifier 'ANDROID_LOG_WARN' ANDROID_LOG_WARN, // LOG(WARNING) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:189:9: error: use of undeclared identifier 'ANDROID_LOG_INFO' ANDROID_LOG_INFO, // LOG(INFO), LG, VLOG(0) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:190:9: error: use of undeclared identifier 'ANDROID_LOG_DEBUG' ANDROID_LOG_DEBUG, // VLOG(1) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:191:9: error: use of undeclared identifier 'ANDROID_LOG_VERBOSE' ANDROID_LOG_VERBOSE, // VLOG(2) .. VLOG(N) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:201:5: error: use of undeclared identifier '__android_log_write' __android_log_write(android_log_level, tag_.c_str(), stream_.str().c_str()); ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:205:27: error: use of undeclared identifier 'ANDROID_LOG_FATAL' __android_log_write(ANDROID_LOG_FATAL, ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\mainSTAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: In file included from ../../../../src/main/jni/header/ceresfunc.h:11: ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:67:11: error: unknown type name 'HashSet' typedef HashSet ResidualBlockSet; ^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:67:18: error: expected member name or ';' after declaration specifiers typedef HashSet ResidualBlockSet; ~~~~~~~~~~~~~~~^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:176:9: error: unknown type name 'ResidualBlockSet' const ResidualBlockSet& residual_block_set() const { ^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:207:3: error: unknown type name 'ResidualBlockSet' ResidualBlockSet residual_block_set_; ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\mainSTAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: ../../../../src/main/jni/header/ceresfunc.h:22:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] static void Init(void) { google::InitGoogleLogging("Ceres"); } ^ 1 warning and 17 errors generated. FAILED: C:\Users\ThulioAraujo\AppData\Local\Android\android-ndk-r15c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi --gcc-toolchain=C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot -DTBB_USE_GCC_BUILTINS=1 -D__TBB_GCC_BUILTIN_ATOMICS_PRESENT=1 -Dnative_lib_EXPORTS -I../../../../../../3rd_party/Eigen -I../../../../../../3rd_party/ceres/include -I../../../../../../3rd_party/ceres/config -I../../../../../../3rd_party/ceres/internal/ceres/miniglog -I../../../../../../3rd_party/ceres/internal -I../../../../src/main/jni/header -I../../../../../../3rd_party/boost_1_64_0/include -isystem E:/voxar_workspace/cslam-android/opencv/src/sdk/native/jni/include -isystem E:/voxar_workspace/cslam-android/opencv/src/sdk/native/jni/include/opencv -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/cxx-stl/llvm-libc++/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/android/support/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/cxx-stl/llvm-libc++abi/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=23 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -fno-rtti -fno-exceptions -std=c++11 -ffunction-sections -fdata-sections -ffunction-sections -fdata-sections -frtti -fexceptions -std=c++11 -ffunction-sections -fdata-sections -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/src/main/jni/source/STAM.cpp.o -MF CMakeFiles\native-lib.dir\src\main\jni\source\STAM.cpp.o.d -o CMakeFiles/native-lib.dir/src/main/jni/source/STAM.cpp.o -c E:\voxar_workspace\cslam-android\app\src\main\jni\source\STAM.cpp In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\STAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: In file included from ../../../../src/main/jni/header/ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:48: ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:66:4: error: One of: CERES_NO_UNORDERED_MAP, CERES_TR1_UNORDERED_MAP, CERES_STD_UNORDERED_MAP, CERES_STD_UNORDERED_MAP_IN_TR1_NAMESPACE must be defined! // NOLINT # error One of: CERES_NO_UNORDERED_MAP, CERES_TR1_UNORDERED_MAP,\ ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:168:1: error: unknown type name 'CERES_HASH_NAMESPACE_START' CERES_HASH_NAMESPACE_START ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:174:1: error: expected unqualified-id template ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:193:1: error: unknown type name 'CERES_HASH_NAMESPACE_END' CERES_HASH_NAMESPACE_END ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\STAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: In file included from ../../../../src/main/jni/header/ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:49: In file included from ../../../../../../3rd_party/ceres/include\ceres/problem.h:42: In file included from ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:96: C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot/usr/include\android/log.h:73:1: error: expected unqualified-id extern "C" { ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\STAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: In file included from ../../../../src/main/jni/header/ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:49: In file included from ../../../../../../3rd_party/ceres/include\ceres/problem.h:42: ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:186:9: error: use of undeclared identifier 'ANDROID_LOG_FATAL' ANDROID_LOG_FATAL, // LOG(FATAL) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:187:9: error: use of undeclared identifier 'ANDROID_LOG_ERROR' ANDROID_LOG_ERROR, // LOG(ERROR) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:188:9: error: use of undeclared identifier 'ANDROID_LOG_WARN' ANDROID_LOG_WARN, // LOG(WARNING) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:189:9: error: use of undeclared identifier 'ANDROID_LOG_INFO' ANDROID_LOG_INFO, // LOG(INFO), LG, VLOG(0) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:190:9: error: use of undeclared identifier 'ANDROID_LOG_DEBUG' ANDROID_LOG_DEBUG, // VLOG(1) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:191:9: error: use of undeclared identifier 'ANDROID_LOG_VERBOSE' ANDROID_LOG_VERBOSE, // VLOG(2) .. VLOG(N) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:201:5: error: use of undeclared identifier '__android_log_write' __android_log_write(android_log_level, tag_.c_str(), stream_.str().c_str()); ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:205:27: error: use of undeclared identifier 'ANDROID_LOG_FATAL' __android_log_write(ANDROID_LOG_FATAL, ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\STAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: In file included from ../../../../src/main/jni/header/ceresfunc.h:11: ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:67:11: error: unknown type name 'HashSet' typedef HashSet ResidualBlockSet; ^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:67:18: error: expected member name or ';' after declaration specifiers typedef HashSet ResidualBlockSet; ~~~~~~~~~~~~~~~^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:176:9: error: unknown type name 'ResidualBlockSet' const ResidualBlockSet& residual_block_set() const { ^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:207:3: error: unknown type name 'ResidualBlockSet' ResidualBlockSet residual_block_set_; ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\STAM.cpp:6: In file included from ../../../../src/main/jni/header\STAM.h:17: ../../../../src/main/jni/header/ceresfunc.h:22:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] static void Init(void) { google::InitGoogleLogging("Ceres"); } ^ 1 warning and 17 errors generated. FAILED: C:\Users\ThulioAraujo\AppData\Local\Android\android-ndk-r15c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi --gcc-toolchain=C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot -DTBB_USE_GCC_BUILTINS=1 -D__TBB_GCC_BUILTIN_ATOMICS_PRESENT=1 -Dnative_lib_EXPORTS -I../../../../../../3rd_party/Eigen -I../../../../../../3rd_party/ceres/include -I../../../../../../3rd_party/ceres/config -I../../../../../../3rd_party/ceres/internal/ceres/miniglog -I../../../../../../3rd_party/ceres/internal -I../../../../src/main/jni/header -I../../../../../../3rd_party/boost_1_64_0/include -isystem E:/voxar_workspace/cslam-android/opencv/src/sdk/native/jni/include -isystem E:/voxar_workspace/cslam-android/opencv/src/sdk/native/jni/include/opencv -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/cxx-stl/llvm-libc++/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/android/support/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sources/cxx-stl/llvm-libc++abi/include -isystem C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=23 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -fno-rtti -fno-exceptions -std=c++11 -ffunction-sections -fdata-sections -ffunction-sections -fdata-sections -frtti -fexceptions -std=c++11 -ffunction-sections -fdata-sections -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/src/main/jni/source/ceresfunc.cpp.o -MF CMakeFiles\native-lib.dir\src\main\jni\source\ceresfunc.cpp.o.d -o CMakeFiles/native-lib.dir/src/main/jni/source/ceresfunc.cpp.o -c E:\voxar_workspace\cslam-android\app\src\main\jni\source\ceresfunc.cpp In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\ceresfunc.cpp:7: In file included from ../../../../src/main/jni/header\ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:48: ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:66:4: error: One of: CERES_NO_UNORDERED_MAP, CERES_TR1_UNORDERED_MAP, CERES_STD_UNORDERED_MAP, CERES_STD_UNORDERED_MAP_IN_TR1_NAMESPACE must be defined! // NOLINT # error One of: CERES_NO_UNORDERED_MAP, CERES_TR1_UNORDERED_MAP,\ ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:168:1: error: unknown type name 'CERES_HASH_NAMESPACE_START' CERES_HASH_NAMESPACE_START ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:174:1: error: expected unqualified-id template ^ ../../../../../../3rd_party/ceres/internal\ceres/collections_port.h:193:1: error: unknown type name 'CERES_HASH_NAMESPACE_END' CERES_HASH_NAMESPACE_END ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\ceresfunc.cpp:7: In file included from ../../../../src/main/jni/header\ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:49: In file included from ../../../../../../3rd_party/ceres/include\ceres/problem.h:42: In file included from ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:96: C:/Users/ThulioAraujo/AppData/Local/Android/android-ndk-r15c/sysroot/usr/include\android/log.h:73:1: error: expected unqualified-id extern "C" { ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\ceresfunc.cpp:7: In file included from ../../../../src/main/jni/header\ceresfunc.h:11: In file included from ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:49: In file included from ../../../../../../3rd_party/ceres/include\ceres/problem.h:42: ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:186:9: error: use of undeclared identifier 'ANDROID_LOG_FATAL' ANDROID_LOG_FATAL, // LOG(FATAL) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:187:9: error: use of undeclared identifier 'ANDROID_LOG_ERROR' ANDROID_LOG_ERROR, // LOG(ERROR) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:188:9: error: use of undeclared identifier 'ANDROID_LOG_WARN' ANDROID_LOG_WARN, // LOG(WARNING) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:189:9: error: use of undeclared identifier 'ANDROID_LOG_INFO' ANDROID_LOG_INFO, // LOG(INFO), LG, VLOG(0) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:190:9: error: use of undeclared identifier 'ANDROID_LOG_DEBUG' ANDROID_LOG_DEBUG, // VLOG(1) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:191:9: error: use of undeclared identifier 'ANDROID_LOG_VERBOSE' ANDROID_LOG_VERBOSE, // VLOG(2) .. VLOG(N) ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:201:5: error: use of undeclared identifier '__android_log_write' __android_log_write(android_log_level, tag_.c_str(), stream_.str().c_str()); ^ ../../../../../../3rd_party/ceres/internal/ceres/miniglog\glog/logging.h:205:27: error: use of undeclared identifier 'ANDROID_LOG_FATAL' __android_log_write(ANDROID_LOG_FATAL, ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\ceresfunc.cpp:7: In file included from ../../../../src/main/jni/header\ceresfunc.h:11: ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:67:11: error: unknown type name 'HashSet' typedef HashSet ResidualBlockSet; ^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:67:18: error: expected member name or ';' after declaration specifiers typedef HashSet ResidualBlockSet; ~~~~~~~~~~~~~~~^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:176:9: error: unknown type name 'ResidualBlockSet' const ResidualBlockSet& residual_block_set() const { ^ ../../../../../../3rd_party/ceres/internal\ceres/problem_impl.h:207:3: error: unknown type name 'ResidualBlockSet' ResidualBlockSet residual_block_set_; ^ In file included from E:\voxar_workspace\cslam-android\app\src\main\jni\source\ceresfunc.cpp:7: ../../../../src/main/jni/header\ceresfunc.h:22:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] static void Init(void) { google::InitGoogleLogging("Ceres"); } ^ 1 warning and 17 errors generated. ninja: build stopped: subcommand failed. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. * Get more help at https://help.gradle.org BUILD FAILED in 9s 67 actionable tasks: 27 executed, 40 up-to-date