autodeploy2.sh 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. PRO_DIR=`pwd`
  2. CONFIG_IVSysMan="IVSysMan_bq2.xml"
  3. cd ../../
  4. app_name=(
  5. driver_lidar_vlp16
  6. driver_lidar_vlp32c
  7. IVSysMan
  8. ivweb
  9. ivlog_record
  10. pointcloudviewer
  11. driver_lidar_merge
  12. detection_lidar_cnn_segmentation
  13. detection_lidar_ukf_pda
  14. driver_rpc_server
  15. driver_rpc_client
  16. adciv_record
  17. adciv_replay
  18. )
  19. for x in ${app_name[@]}
  20. do
  21. echo "deploy $x"
  22. cp ./bin/${x} ./
  23. ./deploy.sh $x
  24. rm ${x}
  25. done
  26. cp ./thirdpartylib/QtWebApp/lib/*.s* ./bin
  27. patchelf --set-rpath '$ORIGIN' ./bin/libQtWebAppGlobal.so
  28. patchelf --set-rpath '$ORIGIN' ./bin/libQtWebAppHttpServer.so
  29. cp ./bin/libQtWebApp* ./deploy/app/lib/
  30. lib_name=(
  31. libmodulecomm.so
  32. libndt_cpu.so
  33. libxmlparam.so
  34. libivfault.so
  35. libivlog.so
  36. libivbacktrace.so
  37. libivexit.so
  38. )
  39. for x in ${lib_name[@]}
  40. do
  41. # echo "link lib $x"
  42. # patchelf --set-rpath '$ORIGIN' ./bin/$x
  43. echo "deploylib $x"
  44. cp ./bin/${x} ./
  45. ./deploylib.sh $x
  46. rm ${x}
  47. done
  48. cp ./thirdpartylib/libcaffe.so.1.0.0 ./
  49. ./deploylib.sh libcaffe.so.1.0.0
  50. rm libcaffe.so.1.0.0
  51. #cp ./bin/*.so ./deploy/app/lib/
  52. xlib=`ls ./deploy/app/lib/lib*`
  53. for fileName in $xlib
  54. do
  55. echo "patch lib $fileName"
  56. patchelf --set-rpath '$ORIGIN' $fileName
  57. done
  58. echo "creat IVSysMan.xml"
  59. cp ./sh/bq/xml/$CONFIG_IVSysMan ./deploy/app/IVSysMan.xml
  60. #cp ./other/ADS_decision.xml ./deploy/app/ADS_decision.xml
  61. sed -i "s|xxxxxx|$PRO_DIR/../../deploy/app|g" ./deploy/app/IVSysMan.xml
  62. cp ./sh/bq/xml/bq2/* ./deploy/app/
  63. echo ""
  64. echo "***************"
  65. echo "*** done! ***"
  66. echo "***************"