From 89372089b28e0c55ebaee4e6061c1b24bcbfe09f Mon Sep 17 00:00:00 2001 From: tunmx Date: Tue, 7 Mar 2023 17:44:10 +0800 Subject: [PATCH] Linux link Bug --- README.md | 8 ++++---- README_CH.md | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index f6b56df..fa196af 100644 --- a/README.md +++ b/README.md @@ -155,13 +155,13 @@ Copy the files you need into your project ```bash # go to Prj-linux cd Prj-Linux -# make build and enter -mkdir build && cd build -# Start compiling -cmake .. && make -j +# exec sh +sh build.sh ``` The executable program is generated after compilation: **PlateRecDemo**,and Run the program ```bash +# go to build +cd build/ # first param models dir, second param image path ./PlateRecDemo ../hyperlpr3/resource/models/r2_mobile ../hyperlpr3/resource/images/test_img.jpg ``` diff --git a/README_CH.md b/README_CH.md index b0451bd..e1cb0ef 100644 --- a/README_CH.md +++ b/README_CH.md @@ -133,7 +133,7 @@ A:此项目来源于作者早期的研究和调试代码,代码缺少一定 ### C/C++编译依赖库 -编译C/C++工程需要使用第三方依赖库,将库下载后解压,并将其通过拷贝或软链接放入根目录(与CMakeLists.txt同级)即可,依赖的库下载地址:[百度网盘](https://pan.baidu.com/s/138O2bSlPN0H81OYP6zc3yQ) code: 5duf +编译C/C++工程需要使用第三方依赖库,将库下载后解压,并将其通过拷贝或软链接放入根目录(与CMakeLists.txt同级)即可,依赖的库下载地址:[百度网盘](https://pan.baidu.com/s/1hd3u3gLXid7UY5NusnxM6g) code: tunm ### Linux/Mac动态链接库编译 @@ -158,13 +158,13 @@ sh command/build_release_linux_share.sh ```bash # 进入到子工程demo cd Prj-Linux -# 创建build文件夹并进入 -mkdir build && cd build -# 开始编译 -cmake .. && make -j +# 执行编译脚本 +sh build.sh ``` 编译完成后生成可执行程序**PlateRecDemo**,执行运行测试 ```bash +# 进入编译目录 +cd build/ # 传入模型文件夹路径和需要预测的图像执行程序 ./PlateRecDemo ../hyperlpr3/resource/models/r2_mobile ../hyperlpr3/resource/images/test_img.jpg ```