autodeploy_ok.sh 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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_cloud_grpc_client
  17. #driver_grpc_server
  18. #driver_rpc_server
  19. #driver_group_grpc_client
  20. ######detection#####
  21. #detection_lidar_PointPillars_MultiHead
  22. detection_radar_delphi_esr
  23. detection_chassis
  24. ######fusion#####
  25. #lidar_radar_fusion_cnn
  26. ######controller######
  27. controller_changan_shenlan
  28. ######decition######
  29. decition_brain_sf_changan_shenlan
  30. ######tools########
  31. view_pointcloud
  32. view_gps
  33. #view_rawcan
  34. view_radar
  35. IVSysMan
  36. ivmapmake
  37. view_ivlog
  38. #tool_querymsg
  39. tool_xodrobj
  40. ivlog_record
  41. adciv_record
  42. ui_ads_hmi
  43. tool_configivsysman
  44. )
  45. for x in ${app_name[@]}
  46. do
  47. echo "deploy $x"
  48. cp ./bin/${x} ./
  49. ./deploy.sh $x
  50. if [ $? == 1 ];then
  51. echo "build $x faile"
  52. exit 1
  53. fi
  54. rm ${x}
  55. done
  56. lib_name=(
  57. libmodulecomm.so
  58. libndt_cpu.so
  59. libxmlparam.so
  60. libivfault.so
  61. libivlog.so
  62. libplatformif.so
  63. libivexit.so
  64. libivchart.so
  65. libivbacktrace.so
  66. )
  67. for x in ${lib_name[@]}
  68. do
  69. echo "link lib $x"
  70. patchelf --set-rpath '$ORIGIN' ./bin/$x
  71. if [ "$?" != 0 ];then
  72. echo -e "\e[31m patchelf $EXE faile, Ensure patchelf tool installed\e[0m"
  73. exit 1
  74. fi
  75. done
  76. cp ./bin/*.so ./deploy/app/lib/
  77. qt_com=`arch`
  78. if [ $qt_com = "aarch64" ];then
  79. cp -r /usr/lib/aarch64-linux-gnu/nss/* ./deploy/app/lib/
  80. else
  81. cp -r /usr/lib/x86_64-linux-gnu/nss/* ./deploy/app/lib/
  82. fi
  83. cp ./sh/BaiDuMap.html ./deploy/app/
  84. cp ./sh/car.png ./deploy/app/
  85. cp ./sh/asphalt.jpg ./deploy/app/
  86. cp ./sh/IVSysMan.xml ./deploy/app/
  87. echo ""
  88. echo "***************"
  89. echo "*** done! ***"
  90. echo "***************"