install_third-party.sh 437 B

123456789101112131415161718192021
  1. # download third-part lib
  2. if [ ! -d "./deps" ]; then
  3. mkdir deps
  4. fi
  5. if [ ! -d "./deps/gflag" ]; then
  6. cd deps
  7. git clone https://github.com/gflags/gflags
  8. cd gflags
  9. cmake .
  10. make -j 4
  11. cd ..
  12. cd ..
  13. fi
  14. OPENCV_URL=https://bj.bcebos.com/paddlex/deploy/armlinux/opencv.tar.bz2
  15. if [ ! -d "./deps/opencv" ]; then
  16. cd deps
  17. wget -c ${OPENCV_URL}
  18. tar xvfj opencv.tar.bz2
  19. rm -rf opencv.tar.bz2
  20. cd ..
  21. fi