Skip to content

Commit cf51610

Browse files
authored
Merge pull request #1227 from xiebaiyuan/develop
add arm_linux build docs fixed #910
2 parents 08505ef + a973b2f commit cf51610

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
* [iOS](https://github.com/PaddlePaddle/paddle-mobile/blob/develop/doc/development_ios.md)
3636
* [Android](https://github.com/PaddlePaddle/paddle-mobile/blob/develop/doc/development_android.md)
3737
* [FPGA](https://github.com/PaddlePaddle/paddle-mobile/blob/develop/doc/development_fpga.md)
38+
* [ARM_LINUX](https://github.com/PaddlePaddle/paddle-mobile/blob/develop/doc/development_arm_linux.md)
3839

3940
### 贡献文档
4041
- [贡献文档链接](https://github.com/PaddlePaddle/paddle-mobile/blob/develop/CONTRIBUTING.md)

doc/development_arm_linux.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# ARM_LINUX开发文档
2+
目前支持直接在arm_linux平台上编译paddle-mobile
3+
4+
## 以Raspberrypi3为例:
5+
### 执行编译
6+
在paddle-mobile根目录中,执行以下命令:
7+
```
8+
cd tools
9+
/bin/bash build.sh arm_linux googlenet
10+
```
11+
执行完毕后,生成的so位于paddle-mobile/build/release/arm-linux/build目录中,单测可执行文件位于test/build目录中。
12+
13+
### 运行
14+
```
15+
cd ../build/release/arm-linux/build
16+
export LD_LIBRARY_PATH=.
17+
cd ../../../../test/build/
18+
./test-googlenet
19+
```
20+
*注1:如果本地test目录下没有模型的话,会自动下载官方demo模型并解压.*
21+
22+
*注2:因为arm_linux设备算力限制,建议编译时,根据需要指定编译某个模型(如googlenet)或扩大系统的swap交换空间,避免编译时卡死.*
23+
24+
## 其他ARM_LINUX平台
25+
26+
其他的arm_linux平台可以修改 tools/build.sh中的相关编译参数进行编译。可以参考对应平台的编译选项。
27+
特别说明的是Android平台请参考Android开发文档.
28+

0 commit comments

Comments
 (0)