提交 e216eab5 编写于 作者: 朔-望's avatar 朔-望

checking system environment variables

上级 21cc6826
...@@ -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)
......
#!/bin/bash #!/bin/bash
. /etc/profile if [ -f "~/.bashrc" ] ; then
. ~/.bashrc . ~/.bashrc
#. ~/.zshrc elif [ -f "~/.bash_profile" ] ; then
~/.bash_profile
build_for_linux() { elif [ -f "~/.zshrc" ] ; then
} . ~/.zshrc
else
echo "not found user environment. load /etc/profile"
. /etc/profile
fi
build_for_mac() { build_for_mac() {
if [ ! `which brew` ]; then if [ ! `which brew` ]; then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册