-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOCS] Update OpenVINO build instruction (Android system) #24815
[DOCS] Update OpenVINO build instruction (Android system) #24815
Conversation
docs/dev/build_android.md
Outdated
-DANDROID_PLATFORM=$CURRENT_ANDROID_PLATFORM \ | ||
-DANDROID_STL=$CURRENT_ANDROID_STL \ | ||
-DTBB_DIR=$OPV_HOME_DIR/one-tbb-install \ | ||
-DTBBROOT=$OPV_HOME_DIR/one-tbb-install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can keep only TBB_DIR
to point to folder with cmake files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilya-lavrenov corrected
docs/dev/build_android.md
Outdated
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX=$OPV_HOME_DIR/openvino-install \ | ||
-DENABLE_SAMPLES=ON \ | ||
-DENABLE_TESTS=ON \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to build tests? how they can be useful for users (not developers)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilya-lavrenov corrected
docs/dev/build_android.md
Outdated
-B $OPV_HOME_DIR/one-tbb-build \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX=$OPV_HOME_DIR/one-tbb-install \ | ||
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_PATH/build/cmake/android.toolchain.cmake \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we set CMAKE_TOOLCHAIN_FILE
globally? so, it can be used by both TBB and OpenVINO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilya-lavrenov corrected
docs/dev/build_android.md
Outdated
-B $OPV_HOME_DIR/openvino-build \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX=$OPV_HOME_DIR/openvino-install \ | ||
-DENABLE_SAMPLES=ON \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's ON
default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilya-lavrenov corrected
docs/dev/build_android.md
Outdated
### Use ADB tool to run example model and check library | ||
```bash | ||
# Copy OpenVINO™ libraries and executables to android device | ||
$ANDROID_TOOLS_PATH/adb push --sync $OPV_HOME_DIR/openvino/bin/aarch64/Release/* /data/local/tmp/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not from installation folder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilya-lavrenov corrected
docs/dev/build_android.md
Outdated
mv android-ndk-r20 android-ndk | ||
mkdir openvino-android | ||
export OPV_HOME_DIR=${PWD}/openvino-android | ||
export CURRENT_ANDROID_ABI=arm64-v8a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we highlight that x86_64 can be used as well? E.g. that value to set depending on underlying HW
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilya-lavrenov updated, but below is also a description of which ABI can be used
4723768
to
c82ef06
Compare
c82ef06
to
6451f62
Compare
No description provided.