autodeploy.sh 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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_hapo
  28. ######decition######
  29. decition_brain_sf
  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. )
  44. for x in ${app_name[@]}
  45. do
  46. echo "deploy $x"
  47. cp ./bin/${x} ./
  48. ./deploy.sh $x
  49. if [ $? == 1 ];then
  50. echo "build $x faile"
  51. exit 1
  52. fi
  53. rm ${x}
  54. done
  55. lib_name=(
  56. libmodulecomm.so
  57. libndt_cpu.so
  58. libxmlparam.so
  59. libivfault.so
  60. libivlog.so
  61. libplatformif.so
  62. libivexit.so
  63. libivchart.so
  64. libivbacktrace.so
  65. )
  66. for x in ${lib_name[@]}
  67. do
  68. echo "link lib $x"
  69. patchelf --set-rpath '$ORIGIN' ./bin/$x
  70. if [ "$?" != 0 ];then
  71. echo -e "\e[31m patchelf $EXE faile, Ensure patchelf tool installed\e[0m"
  72. exit 1
  73. fi
  74. done
  75. cp ./bin/*.so ./deploy/app/lib/
  76. qt_com=`arch`
  77. if [ $qt_com = "aarch64" ];then
  78. cp -r /usr/lib/aarch64-linux-gnu/nss/* ./deploy/app/lib/
  79. else
  80. cp -r /usr/lib/x86_64-linux-gnu/nss/* ./deploy/app/lib/
  81. fi
  82. cp ./sh/BaiDuMap.html ./deploy/app/
  83. cp ./sh/car.png ./deploy/app/
  84. cp ./sh/asphalt.jpg ./deploy/app/
  85. echo ""
  86. echo "***************"
  87. echo "*** done! ***"
  88. echo "***************"