install_third-party.sh 626 B

1234567891011121314151617181920212223242526272829303132
  1. # download third-part lib
  2. if [ ! -d "./deps" ]; then
  3. mkdir deps
  4. fi
  5. if [ ! -d "./deps/gflags" ]; 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. # install yaml
  15. YAML_URL=https://bj.bcebos.com/paddlex/deploy/deps/yaml-cpp.zip
  16. if [ ! -f "./deps/yaml-cpp.zip" ]; then
  17. cd deps
  18. wget -c ${YAML_URL}
  19. cd ..
  20. fi
  21. # install opencv
  22. OPENCV_URL=https://bj.bcebos.com/paddlex/deploy/armlinux/opencv.tar.bz2
  23. if [ ! -d "./deps/opencv" ]; then
  24. cd deps
  25. wget -c ${OPENCV_URL}
  26. tar xvfj opencv.tar.bz2
  27. rm -rf opencv.tar.bz2
  28. cd ..
  29. fi