| 1234567891011121314151617181920212223242526272829303132333435 |
- # download third-part lib
- if [ ! -d "./deps" ]; then
- mkdir deps
- fi
- if [ ! -d "./deps/gflags" ]; then
- cd deps
- git clone https://github.com/gflags/gflags
- cd gflags
- cmake .
- make -j 8
- cd ..
- cd ..
- fi
- # install yaml
- YAML_URL=https://bj.bcebos.com/paddlex/deploy/deps/yaml-cpp.zip
- if [ ! -f "./deps/yaml-cpp.zip" ]; then
- cd deps
- wget -c ${YAML_URL}
- cd ..
- fi
- if [ "$ARCH" = "x86" ]; then
- OPENCV_URL=https://bj.bcebos.com/paddlex/deploy/x86opencv/opencv.tar.bz2
- else
- OPENCV_URL=https://bj.bcebos.com/paddlex/deploy/armlinux/opencv.tar.bz2
- fi
- if [ ! -d "./deps/opencv" ]; then
- cd deps
- wget -c ${OPENCV_URL}
- tar xvfj opencv.tar.bz2
- rm -rf opencv.tar.bz2
- cd ..
- fi
|