Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Issue building for Android #1716

Closed
hmc-cs-mdrissi opened this issue Jan 8, 2018 · 5 comments
Closed

Issue building for Android #1716

hmc-cs-mdrissi opened this issue Jan 8, 2018 · 5 comments

Comments

@hmc-cs-mdrissi
Copy link

hmc-cs-mdrissi commented Jan 8, 2018

System information

  • Operating system: Ubuntu 16.04
  • Compiler version: c++ 5.4.11
  • CMake version: 3.5.1
  • CMake arguments: -DPYTHON_INCLUDE_DIR=/usr/include/python3.5
    -DPYTHON_EXECUTABLE=/usr/bin/python3
    -DPYTHON_LIBRARY=/usr/libpython3.5m.so
  • Relevant libraries/versions (e.g. CUDA): cuda 9, android sdk 27

The build issue occurs at the point when I try to run the build_android.sh script. That script ends up crashing and its output looks like (I made it collapsible to make the post easier to read),

Bash: GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu) Caffe2 path: /home/mehdi2277/Documents/Programming/caffe2 Using Android NDK at /home/mehdi2277/Android/Sdk/ndk-bundle Building protoc -- Configuring done -- Generating done -- Build files have been written to: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/build [ 0%] Built target js_embed [ 12%] Built target libprotobuf-lite [ 52%] Built target libprotobuf [ 99%] Built target libprotoc [100%] Built target protoc Install the project... -- Install configuration: "" -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/lib/libprotobuf-lite.a -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/lib/libprotobuf.a -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/lib/libprotoc.a -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/bin/protoc -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/lib/pkgconfig/protobuf.pc -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/lib/pkgconfig/protobuf-lite.pc -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/any.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/any.pb.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/api.pb.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/arena.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/arena_impl.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/arenastring.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/code_generator.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/command_line_interface.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/cpp/cpp_generator.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/csharp/csharp_generator.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/csharp/csharp_names.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/importer.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/java/java_generator.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/java/java_names.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/javanano/javanano_generator.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/js/js_generator.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/js/well_known_types_embed.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/objectivec/objectivec_generator.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/objectivec/objectivec_helpers.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/parser.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/php/php_generator.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/plugin.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/plugin.pb.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/python/python_generator.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/ruby/ruby_generator.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/descriptor.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/descriptor.pb.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/descriptor_database.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/duration.pb.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/dynamic_message.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/empty.pb.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/extension_set.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/field_mask.pb.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/generated_enum_reflection.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/generated_enum_util.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/generated_message_reflection.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/generated_message_table_driven.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/generated_message_util.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/has_bits.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/io/coded_stream.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/io/gzip_stream.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/io/printer.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/io/strtod.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/io/tokenizer.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/io/zero_copy_stream.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/io/zero_copy_stream_impl.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/io/zero_copy_stream_impl_lite.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/map.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/map_entry.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/map_entry_lite.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/map_field.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/map_field_inl.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/map_field_lite.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/map_type_handler.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/message.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/message_lite.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/metadata.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/metadata_lite.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/reflection.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/reflection_ops.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/repeated_field.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/service.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/source_context.pb.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/struct.pb.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/atomic_sequence_num.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/atomicops.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/atomicops_internals_arm64_gcc.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/atomicops_internals_arm_gcc.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/atomicops_internals_arm_qnx.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/atomicops_internals_atomicword_compat.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/atomicops_internals_generic_c11_atomic.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/atomicops_internals_generic_gcc.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/atomicops_internals_mips_gcc.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/atomicops_internals_power.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/atomicops_internals_ppc_gcc.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/atomicops_internals_solaris.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/atomicops_internals_tsan.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/atomicops_internals_x86_gcc.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/atomicops_internals_x86_msvc.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/bytestream.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/callback.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/casts.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/common.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/fastmem.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/hash.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/logging.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/macros.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/mutex.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/once.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/platform_macros.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/port.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/scoped_ptr.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/shared_ptr.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/singleton.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/status.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/stl_util.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/stringpiece.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/template_util.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/stubs/type_traits.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/text_format.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/timestamp.pb.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/type.pb.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/unknown_field_set.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/util/delimited_message_util.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/util/field_comparator.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/util/field_mask_util.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/util/json_util.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/util/message_differencer.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/util/time_util.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/util/type_resolver.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/util/type_resolver_util.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/wire_format.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/wire_format_lite.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/wire_format_lite_inl.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/wrappers.pb.h -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/descriptor.proto -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/any.proto -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/api.proto -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/duration.proto -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/empty.proto -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/field_mask.proto -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/source_context.proto -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/struct.proto -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/timestamp.proto -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/type.proto -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/wrappers.proto -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/include/google/protobuf/compiler/plugin.proto -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/lib/cmake/protobuf/protobuf-targets.cmake -- Installing: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/lib/cmake/protobuf/protobuf-targets-noconfig.cmake -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/lib/cmake/protobuf -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/lib/cmake/protobuf/protobuf-module.cmake -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/lib/cmake/protobuf/protobuf-options.cmake -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/lib/cmake/protobuf/protobuf-config.cmake -- Up-to-date: /home/mehdi2277/Documents/Programming/caffe2/build_host_protoc/lib/cmake/protobuf/protobuf-config-version.cmake CMake Error at third_party/android-cmake/android.toolchain.cmake:310 (file): file STRINGS file "/home/mehdi2277/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm/usr/include/android/api-level.h" cannot be read. Call Stack (most recent call first): third_party/android-cmake/android.toolchain.cmake:814 (__DETECT_NATIVE_API_LEVEL) build_android/CMakeFiles/3.5.1/CMakeSystem.cmake:6 (include) CMakeLists.txt:6 (project) CMake Error at third_party/android-cmake/android.toolchain.cmake:816 (message): Specified Android API level (21) does not match to the level found (). Probably your copy of NDK is broken. Call Stack (most recent call first): build_android/CMakeFiles/3.5.1/CMakeSystem.cmake:6 (include) CMakeLists.txt:6 (project) -- Need to define long as a separate typeid. -- Turning off deprecation warning due to glog. -- Use custom protobuf build. CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find Threads (missing: Threads_FOUND) Call Stack (most recent call first): /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.5/Modules/FindThreads.cmake:223 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) third_party/protobuf/cmake/CMakeLists.txt:84 (find_package) -- Configuring incomplete, errors occurred! See also "/home/mehdi2277/Documents/Programming/caffe2/build_android/CMakeFiles/CMakeOutput.log". See also "/home/mehdi2277/Documents/Programming/caffe2/build_android/CMakeFiles/CMakeError.log".

In case it helps, the cmakeoutput.log and cmakeerror.log files look like,

CMakeOutput.log

The target system is: Android - 1 - armv7-a The host system is: Linux - 4.10.0-42-generic - x86_64

CMakeError.log

Performing C++ SOURCE FILE Test CAFFE2_LONG_IS_INT32_OR_64 failed with the following output: Source file was: #include template void Foo(); template<> void Foo() {} template<> void Foo() {} int main(int argc, char** argv) { Foo(); return 0; } Performing C++ SOURCE FILE Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING failed with the following output: Source file was: #include int main(int argc, char** argv) { return 0; } Performing C++ SOURCE FILE Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS failed with the following output: Source file was: #include int main() { __m256i a, b; a = _mm256_set1_epi8 (1); b = a; _mm256_add_epi8 (a,a); return 0; } Determining if the include file pthread.h exists failed with the following output:

The first error the build file has is about not finding /home/mehdi2277/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm/usr/include/android/api-level.h. Checking that location there is no include directory under android-21/arch-arm/usr. Based off this stack overflow issue (https://stackoverflow.com/questions/48041862/usr-include-missing-from-ndk-r16b) it seems like the location of the api-level.h file got moved recently in the ndk-bundle to a different place. Now its located under ndk-bundle/sysroot/usr/include/android/api-level.h.

edit: Doing a bit more reading it looks like the issue has to do with the most recent stable version of the android ndk (16b) uses unified headers (https://github.com/android-ndk/ndk/wiki/Changelog-r16). The tool used to build caffe2 for android (android-cmake) doesn't work with the current ndk (taka-no-me/android-cmake#102). So I guess the issue isn't really a caffe2 issue, but more of a third party tool issue. It'd still be helpful to document in the installation guide that the current version of the android ndk is not supported.

@breadbread1984
Copy link

can only compile successfully with r15c or version below.

@Maratyszcza
Copy link
Contributor

#1740 should fix this

@monkey-jsun
Copy link

@Maratyszcza Can we get a patch in the mean while? It seems outsiders cannot merge this change and I'm hitting the same issue here.

Thanks.

@Maratyszcza
Copy link
Contributor

@monkey-jsun Yes, this patch will land to master after we update our CI scripts

@Maratyszcza
Copy link
Contributor

Should be fixed with bc3da23. Please re-open if you still have this problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants