Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
39a3788d
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
331
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
271
列表
看板
标记
里程碑
合并请求
78
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle-Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
271
Issue
271
列表
看板
标记
里程碑
合并请求
78
合并请求
78
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
39a3788d
编写于
5月 28, 2018
作者:
朔-望
提交者:
GitHub
5月 28, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #295 from allonli/develop
fix ubuntu compile
上级
579ac441
82bfd883
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
23 addition
and
37 deletion
+23
-37
README.md
README.md
+18
-0
build.sh
build.sh
+5
-37
未找到文件。
README.md
浏览文件 @
39a3788d
...
@@ -11,6 +11,24 @@ This project is used to develop the next version deep learning freamwork for mob
...
@@ -11,6 +11,24 @@ This project is used to develop the next version deep learning freamwork for mob
[
Used model in development
](
https://mms-mis.cdn.bcebos.com/paddle-mobile/models.zip
)
[
Used model in development
](
https://mms-mis.cdn.bcebos.com/paddle-mobile/models.zip
)
## cross-compilation to android
*
NDK is required
*
ANDROID_NDK environment variable is required
```
bash
sh build.sh android
```
## build for x86
paddle-mobile is to run on arm platform. x86 only used to test not arm assembly code. So do not recommend compiling x86.
Now only support osx.
```
sh build.sh mac
```
## Old Version of Mobile-Deep-Learning
## Old Version of Mobile-Deep-Learning
The old version of MDL was I moved to here
[
Mobile-Deep-Learning
](
https://github.com/allonli/mobile-deep-learning
)
The old version of MDL was I moved to here
[
Mobile-Deep-Learning
](
https://github.com/allonli/mobile-deep-learning
)
...
...
build.sh
浏览文件 @
39a3788d
#!/bin/bash
#!/usr/bin/env bash
build_for_linux
()
{
if
[
!
`
which brew
`
]
;
then
echo
"building failed! homebrew not found, please install homebrew."
return
fi
if
[
!
`
which cmake
`
]
;
then
echo
"installing cmake."
brew
install
cmake
if
[
!
$?
]
;
then
echo
"cmake install failed."
return
fi
fi
PLATFORM
=
"x86"
MODE
=
"Release"
CXX_FLAGS
=
"-std=c++11 -O3 -s"
BUILD_DIR
=
build/release/
"
${
PLATFORM
}
"
mkdir
-p
${
BUILD_DIR
}
/build
mkdir
-p
${
BUILD_DIR
}
/test
cp
-r
test
/models
${
BUILD_DIR
}
/test/models
cmake
.
\
-B
"
${
BUILD_DIR
}
"
\
-DCMAKE_BUILD_TYPE
=
"
${
MODE
}
"
\
-DCMAKE_CXX_FLAGS
=
"
${
CXX_FLAGS
}
"
\
-DIS_MAC
=
true
cd
${
BUILD_DIR
}
make
-j
8
}
build_for_mac
()
{
build_for_mac
()
{
if
[
!
`
which brew
`
]
;
then
if
[
!
`
which brew
`
]
;
then
...
@@ -65,8 +33,8 @@ build_for_mac() {
...
@@ -65,8 +33,8 @@ build_for_mac() {
}
}
build_for_android
()
{
build_for_android
()
{
if
[
-z
"
${
NDK_ROOT
}
"
]
;
then
if
[
-z
"
${
ANDROID_NDK
}
"
]
;
then
echo
"
NDK_ROOT
not found!"
echo
"
ANDROID_NDK
not found!"
exit
-1
exit
-1
fi
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录