You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
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),
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.
The text was updated successfully, but these errors were encountered:
System information
-DPYTHON_EXECUTABLE=/usr/bin/python3
-DPYTHON_LIBRARY=/usr/libpython3.5m.so
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),
In case it helps, the cmakeoutput.log and cmakeerror.log files look like,
CMakeOutput.log
CMakeError.log
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.
The text was updated successfully, but these errors were encountered: