[caffe2] Improve build_android experience #13116
Comments
I can't +1 this enough. I've sunk way too much time trying to figure this out, and I would love it if there was a reliable build for Caffe2 for Android that was well maintained. |
- change toolchain defautl to clang - discuss x86 building - provide facility to turn off AVX - add some commentary about libs and headers Fixes: pytorch#13116
+1 |
1 similar comment
+1 |
For those trying, this worked for me on Ubuntu 16.04: $ export ANDROID_NDK=~/android-ndk-r18b/ You'll need to download the android ndk files: https://developer.android.com/ndk/downloads/ |
It also works on linux/bash if you put it all on one line, not sure why your OSX doesn't like it. |
Please tell me why
is not able to compile a simple test program. It fails with the following output:
CMake will not be able to correctly generate this project. -- Configuring incomplete, errors occurred! |
Fixed on master via @ljk53 's PRs |
It would be nice to make it easier to build android libraries for caffe2.
Motivation
I recently built the AICamera example with recent android studio. The result and steps are here:
https://github.com/t-vi/AICamera/
Pitch
Based on the feedback I got on the first day after mentioning this on the PyTorch slack, there are more people who have been trying this and had less success, even though I'd think they're pretty good with PyTorch in general.
(Or make it work on android, but I guess android x86 is debugging mostly anyway.)
Alternatives
Additional context
The other changes in my fork might be the basis for a PR for the AICamera repo and an update to the tutorial once this is merged.
Needless to say, I would submit the PR.
The text was updated successfully, but these errors were encountered: