Skip to content

Commit

Permalink
fix android build command
Browse files Browse the repository at this point in the history
  • Loading branch information
hanrui1sensetime authored and lvhan028 committed Mar 1, 2023
1 parent 964b47c commit cb5f5a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/01-how-to-build/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ MMDeploy provides a recipe as shown below for building SDK with ncnn as inferenc
-DOpenCV_DIR=${OPENCV_ANDROID_SDK_DIR}/sdk/native/jni/abi-${ANDROID_ABI} \
-Dncnn_DIR=${NCNN_DIR}/build_${ANDROID_ABI}/install/lib/cmake/ncnn \
-DMMDEPLOY_TARGET_BACKENDS=ncnn \
-DMMDEPLOY_SHARED_LIBS=ON \
-DMMDEPLOY_SHARED_LIBS=OFF \
-DCMAKE_TOOLCHAIN_FILE=${NDK_PATH}/build/cmake/android.toolchain.cmake \
-DANDROID_ABI=${ANDROID_ABI} \
-DANDROID_PLATFORM=android-30 \
Expand Down
2 changes: 1 addition & 1 deletion docs/zh_cn/01-how-to-build/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ make -j$(nproc) install
-DOpenCV_DIR=${OPENCV_ANDROID_SDK_DIR}/sdk/native/jni/abi-${ANDROID_ABI} \
-Dncnn_DIR=${NCNN_DIR}/build_${ANDROID_ABI}/install/lib/cmake/ncnn \
-DMMDEPLOY_TARGET_BACKENDS=ncnn \
-DMMDEPLOY_SHARED_LIBS=ON \
-DMMDEPLOY_SHARED_LIBS=OFF \
-DCMAKE_TOOLCHAIN_FILE=${NDK_PATH}/build/cmake/android.toolchain.cmake \
-DANDROID_ABI=${ANDROID_ABI} \
-DANDROID_PLATFORM=android-30 \
Expand Down

0 comments on commit cb5f5a4

Please sign in to comment.