autodeploy.sh 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. PRO_DIR=`pwd`
  2. CONFIG_IVSysMan="IVSysMan.xml"
  3. cd ../../
  4. app_name=(
  5. controller_bus
  6. controller_jinlong_peisong
  7. controller_midcar
  8. controller_problue
  9. controller_ge3
  10. controller_vv7
  11. controller_tju_vv7
  12. decition_brain
  13. driver_camera_usb
  14. driver_can_kvaser
  15. driver_can_vci
  16. driver_can_nvidia_agx
  17. driver_cloud_grpc_client_stream
  18. driver_grpc_server
  19. driver_gps_ins550d
  20. driver_gps_hcp2
  21. driver_lidar_bk16
  22. driver_lidar_hesai40line
  23. driver_lidar_hesai40p
  24. driver_lidar_hesaipandar64
  25. driver_lidar_rs16
  26. driver_lidar_rs32
  27. driver_lidar_vlp16
  28. driver_lidar_vlp32c
  29. driver_lidar_vtdpoint
  30. driver_map_trace
  31. driver_map_xodrload
  32. driver_piccompress
  33. driver_radio_p900
  34. driver_rpc_client
  35. driver_rpc_server
  36. driver_vbox_gaohong
  37. driver_ota_client
  38. driver_ota_server
  39. detection_chassis
  40. detection_gps_hcp2
  41. detection_gps_vtd
  42. #detection_lidar_cnn_segmentation
  43. detection_lidar_cnntogrid
  44. detection_lidar_grid
  45. detection_lidar_ukf_pda
  46. detection_mobileye
  47. #detection_ndt_matching_gpu_multi
  48. detection_radar_delphi_esr
  49. detection_state_delphi_ins500d
  50. fusion_gpsndt
  51. fusion_pointcloud_bus
  52. adciv_record
  53. adciv_replay
  54. adcndtmultimapping
  55. bqev_lidar_cnn_detect_view
  56. bqev_multilidarcalib
  57. bqev_pcdview
  58. ivmapmake
  59. ivmapmake_sharemem
  60. IVSysMan
  61. map_lanetoxodr
  62. map_mobieye
  63. PerceptionShow
  64. picview
  65. pointcloudviewer
  66. RemoteCtrl
  67. tool_calcmd5
  68. tool_querymsg
  69. tool_xodrobj
  70. view_gps
  71. view_ivlog
  72. view_pcdmap
  73. view_radar
  74. view_rawcan
  75. ui_ads_hmi
  76. tool_configivsysman
  77. RemoteCtrl_Stream
  78. )
  79. for x in ${app_name[@]}
  80. do
  81. echo "deploy $x"
  82. cp ./bin/${x} ./
  83. ./deploywithfind.sh $x
  84. rm ${x}
  85. done
  86. #cp ./thirdpartylib/QtWebApp/lib/*.s* ./bin
  87. #patchelf --set-rpath '$ORIGIN' ./bin/libQtWebAppGlobal.so
  88. #patchelf --set-rpath '$ORIGIN' ./bin/llibQtWebAppHttpServer.so
  89. #cp ./bin/libQtWebApp* ./deploy/app/lib/
  90. lib_name=(
  91. libmodulecomm.so
  92. libndt_cpu.so
  93. # libndt_gpu.so
  94. libxmlparam.so
  95. libivfault.so
  96. libivlog.so
  97. libivbacktrace.so
  98. libivexit.so
  99. )
  100. for x in ${lib_name[@]}
  101. do
  102. # echo "link lib $x"
  103. # patchelf --set-rpath '$ORIGIN' ./bin/$x
  104. echo "deploylib $x"
  105. cp ./bin/${x} ./
  106. ./deploylib.sh $x
  107. rm ${x}
  108. done
  109. xlib=`ls ./deploy/app/lib/lib*`
  110. for fileName in $xlib
  111. do
  112. patchelf --set-rpath '$ORIGIN' $fileName
  113. done
  114. #echo "creat IVSysMan.xml"
  115. #cp ./sh/tju64/xml/$CONFIG_IVSysMan ./deploy/app/IVSysMan.xml
  116. #cp ./other/ADS_decision.xml ./deploy/app/ADS_decision.xml
  117. #sed -i "s|xxxxxx|$PRO_DIR/|g" ./deploy/app/IVSysMan.xml
  118. #cp ./bin/*.so ./deploy/app/lib/
  119. #cp ./sh/tju64/xml/* ./deploy/app/
  120. echo ""
  121. echo "***************"
  122. echo "*** done! ***"
  123. echo "***************"