autodeploy.sh 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. PRO_DIR=`pwd`
  2. CONFIG_IVSysMan="IVSysMan_HAPO_1.xml"
  3. check_result=`whereis patchelf | awk '{print $2}'`
  4. if [ ! $check_result ];then
  5. echo -e "\e[31m no found patchelf, Plz install patchelf first\e[0m"
  6. exit 1
  7. fi
  8. app_name=(
  9. ######driver######
  10. driver_lidar_rs16
  11. driver_gps_hcp2
  12. driver_can_nvidia_agx
  13. driver_map_trace
  14. driver_map_xodrload
  15. #driver_rpc_server
  16. driver_radar_continental_ARS408_SRR308
  17. #driver_cloud_grpc_client
  18. #driver_grpc_server
  19. #driver_rpc_server
  20. #driver_group_grpc_client
  21. ######detection#####
  22. #detection_lidar_PointPillars_MultiHead
  23. #detection_radar_delphi_esr
  24. #detection_chassis
  25. #####fusion#####
  26. lidar_radar_fusion_cnn
  27. fusion_pointcloud_bus
  28. ######controller######
  29. controller_hapo
  30. ######decition######
  31. decition_brain_sf
  32. ######tools########
  33. pointcloudviewer
  34. view_gps
  35. #view_rawcan
  36. view_radar
  37. IVSysMan
  38. ivmapmake
  39. view_ivlog
  40. #tool_querymsg
  41. tool_xodrobj
  42. ivlog_record
  43. adciv_record
  44. ui_ads_hmi
  45. tool_configivsysman
  46. )
  47. for x in ${app_name[@]}
  48. do
  49. echo "deploy $x"
  50. cp ./bin/${x} ./
  51. ./deploy.sh $x
  52. if [ $? == 1 ];then
  53. echo "build $x faile"
  54. exit 1
  55. fi
  56. rm ${x}
  57. done
  58. lib_name=(
  59. libmodulecomm.so
  60. libndt_cpu.so
  61. libxmlparam.so
  62. libivfault.so
  63. libivlog.so
  64. libplatformif.so
  65. libivexit.so
  66. libivchart.so
  67. libivbacktrace.so
  68. )
  69. for x in ${lib_name[@]}
  70. do
  71. echo "link lib $x"
  72. patchelf --set-rpath '$ORIGIN' ./bin/$x
  73. if [ "$?" != 0 ];then
  74. echo -e "\e[31m patchelf $EXE faile, Ensure patchelf tool installed\e[0m"
  75. exit 1
  76. fi
  77. done
  78. cp ./bin/*.so ./deploy/app/lib/
  79. qt_com=`arch`
  80. if [ $qt_com = "aarch64" ];then
  81. cp -r /usr/lib/aarch64-linux-gnu/nss/* ./deploy/app/lib/
  82. else
  83. cp -r /usr/lib/x86_64-linux-gnu/nss/* ./deploy/app/lib/
  84. fi
  85. cp ./sh/BaiDuMap.html ./deploy/app/
  86. cp ./sh/car.png ./deploy/app/
  87. cp ./sh/asphalt.jpg ./deploy/app/
  88. cp ./sh/IVSysMan.xml ./deploy/app/
  89. echo ""
  90. echo "***************"
  91. echo "*** done! ***"
  92. echo "***************"