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
  18. driver_cloud_grpc_pc
  19. driver_cloud_grpc_server
  20. driver_gps_ins550d
  21. driver_gps_hcp2
  22. driver_lidar_bk16
  23. driver_lidar_hesai40line
  24. driver_lidar_hesai40p
  25. driver_lidar_hesaipandar64
  26. driver_lidar_rs16
  27. driver_lidar_rs32
  28. driver_lidar_vlp16
  29. driver_lidar_vlp32c
  30. driver_lidar_vtdpoint
  31. driver_map_trace
  32. driver_map_xodrload
  33. driver_piccompress
  34. driver_radio_p900
  35. driver_rpc_client
  36. driver_rpc_server
  37. driver_vbox_gaohong
  38. driver_ota_client
  39. driver_ota_server
  40. detection_chassis
  41. detection_gps_hcp2
  42. detection_gps_vtd
  43. #detection_lidar_cnn_segmentation
  44. detection_lidar_cnntogrid
  45. detection_lidar_grid
  46. detection_lidar_ukf_pda
  47. detection_mobileye
  48. #detection_ndt_matching_gpu_multi
  49. detection_radar_delphi_esr
  50. detection_state_delphi_ins500d
  51. fusion_gpsndt
  52. fusion_pointcloud_bus
  53. adciv_record
  54. adciv_replay
  55. adcndtmultimapping
  56. bqev_lidar_cnn_detect_view
  57. bqev_multilidarcalib
  58. bqev_pcdview
  59. ivmapmake
  60. ivmapmake_sharemem
  61. IVSysMan
  62. map_lanetoxodr
  63. map_mobieye
  64. PerceptionShow
  65. picview
  66. pointcloudviewer
  67. RemoteCtrl
  68. tool_calcmd5
  69. tool_querymsg
  70. tool_xodrobj
  71. view_gps
  72. view_ivlog
  73. view_pcdmap
  74. view_radar
  75. view_rawcan
  76. ui_ads_hmi
  77. tool_configivsysman
  78. )
  79. for x in ${app_name[@]}
  80. do
  81. echo "deploy $x"
  82. cp ./bin/${x} ./
  83. ./deploy.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 "***************"