[Fix] turn -DMMDEPLOY_SHARED_LIBS=ON when building rknn (#1786)

* turn -DMMDEPLOY_SHARED_LIBS=ON when building rknn

* fix rknpu2
This commit is contained in:
AllentDan 2023-02-21 17:13:55 +08:00 committed by GitHub
parent d0f8be63f3
commit 4ce69dc1c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,8 @@ build_mmdeploy_with_rknpu() {
-DMMDEPLOY_BUILD_EXAMPLES=ON \
-DMMDEPLOY_TARGET_BACKENDS="rknn" \
-DRKNPU_DEVICE_DIR="${RKNPU_DIR}"/rknn/rknn_api/librknn_api \
-DOpenCV_DIR="${OPENCV_PACKAGE_DIR}"
-DOpenCV_DIR="${OPENCV_PACKAGE_DIR}" \
-DMMDEPLOY_SHARED_LIBS=ON
good_nproc
jobs=$?
@ -127,7 +128,8 @@ build_mmdeploy_with_rknpu2() {
-DMMDEPLOY_BUILD_EXAMPLES=ON \
-DMMDEPLOY_TARGET_BACKENDS="rknn" \
-DRKNPU2_DEVICE_DIR="${RKNPU2_DIR}/runtime/${device_model}" \
-DOpenCV_DIR="${OPENCV_PACKAGE_DIR}"
-DOpenCV_DIR="${OPENCV_PACKAGE_DIR}" \
-DMMDEPLOY_SHARED_LIBS=ON
good_nproc
jobs=$?