Skip to content

Commit

Permalink
更新 Linux 构建指南
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroi-sora committed Jul 9, 2024
1 parent 83541f7 commit 94a4f38
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpp/README-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ PaddleOCR-json
export PADDLE_LIB="$(pwd)/$(ls -d *paddle_inference*/ | head -n1)"
export MODELS="$(pwd)/models"

# 可选:自编译 OpenCV 路径。如果安装 libopencv-dev 则无需进行。
# 如果使用方式1或3准备 OpenCV ,那么记录 OpenCV 路径。
# 如果使用方式2安装 libopencv-dev ,则无需进行。
export OPENCV_DIR="$(pwd)/opencv-release"
```

Expand Down Expand Up @@ -235,7 +236,7 @@ mkdir build
cmake -S . -B build/ \
-DPADDLE_LIB=$PADDLE_LIB \
-DCMAKE_BUILD_TYPE=Release \
-DOPENCV_DIR=$OPENCV_DIR # 可选:自编译OpenCV
-DOPENCV_DIR=$OPENCV_DIR # 可选:OpenCV 路径
```

说明:
Expand Down

0 comments on commit 94a4f38

Please sign in to comment.