autodeploy.sh 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. PRO_DIR=`pwd`
  2. CONFIG_IVSysMan="IVSysMan_bq1.xml"
  3. cd ../../
  4. app_name=(
  5. driver_lidar_rs16
  6. IVSysMan
  7. adciv_record
  8. pointcloudviewer
  9. view_ivlog
  10. adciv_replay
  11. bqev_multilidarcalib
  12. bqev_pcdview
  13. detection_lidar_cnn_segmentation
  14. fusion_pointcloud_bus
  15. detection_lidar_cnntogrid
  16. detection_lidar_ukf_pda
  17. )
  18. for x in ${app_name[@]}
  19. do
  20. echo "deploy $x"
  21. cp ./bin/${x} ./
  22. ./deploy.sh $x
  23. rm ${x}
  24. done
  25. cp ./thirdpartylib/QtWebApp/lib/*.s* ./bin
  26. patchelf --set-rpath '$ORIGIN' ./bin/libQtWebAppGlobal.so
  27. patchelf --set-rpath '$ORIGIN' ./bin/libQtWebAppHttpServer.so
  28. cp ./bin/libQtWebApp* ./deploy/app/lib/
  29. cp ./thirdpartylib/libcaffe.so.1.0.0 ./bin/
  30. lib_name=(
  31. libmodulecomm.so
  32. libndt_cpu.so
  33. libndt_gpu.so
  34. libxmlparam.so
  35. libivfault.so
  36. libivlog.so
  37. libivbacktrace.so
  38. libivexit.so
  39. libcaffe.so.1.0.0
  40. )
  41. for x in ${lib_name[@]}
  42. do
  43. # echo "link lib $x"
  44. # patchelf --set-rpath '$ORIGIN' ./bin/$x
  45. echo "deploylib $x"
  46. cp ./bin/${x} ./
  47. ./deploylib.sh $x
  48. rm ${x}
  49. done
  50. #cp ./thirdpartylib/BRPC/lib/lib/libbrpc.so ./
  51. #./deploylib.sh libbrpc.so
  52. #rm libbrpc.so
  53. xlib=`ls ./deploy/app/lib/lib*`
  54. for fileName in $xlib
  55. do
  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/|g" ./deploy/app/IVSysMan.xml
  62. #cp ./bin/*.so ./deploy/app/lib/
  63. cp ./sh/midbus/IVSysMan.xml ./deploy/app/
  64. cp ./sh/configivsysman.sh ./deploy/app/
  65. echo ""
  66. echo "***************"
  67. echo "*** done! ***"
  68. echo "***************"