autodeploy.sh 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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. controller_hapo
  13. #controller_yuhesen
  14. decition_brain
  15. decition_brain_sf
  16. driver_camera_usb
  17. driver_camera_ioctl
  18. #driver_can_kvaser
  19. #driver_can_vci
  20. driver_can_nvidia_agx
  21. driver_cloud_grpc_client_stream
  22. driver_grpc_server
  23. driver_gps_ins550d
  24. driver_gps_hcp2
  25. driver_lidar_bk16
  26. driver_lidar_hesai40line
  27. driver_lidar_hesai40p
  28. driver_lidar_hesaipandar64
  29. driver_lidar_rs16
  30. driver_lidar_rs32
  31. driver_lidar_vlp16
  32. driver_lidar_vlp32c
  33. driver_lidar_vtdpoint
  34. driver_lidar_rsm1
  35. driver_map_trace
  36. driver_map_xodrload
  37. driver_ntrip_client
  38. driver_piccompress
  39. driver_radio_p900
  40. driver_odomtogpsimu
  41. #driver_rpc_client
  42. #driver_rpc_server
  43. driver_vbox_gaohong
  44. driver_ota_client
  45. #driver_ota_server
  46. driver_grpc_client
  47. driver_grpc_server
  48. driver_group_grpc_client
  49. detection_chassis
  50. detection_gps_hcp2
  51. detection_gps_vtd
  52. #detection_lidar_cnn_segmentation
  53. detection_lidar_cnntogrid
  54. detection_lidar_grid
  55. detection_lidar_ukf_pda
  56. detection_mobileye
  57. #detection_ndt_matching_gpu_multi
  58. detection_radar_delphi_esr
  59. detection_state_delphi_ins500d
  60. fusion_gpsndt
  61. fusion_pointcloud_bus
  62. adciv_record
  63. adciv_replay
  64. adcndtmultimapping
  65. bqev_lidar_cnn_detect_view
  66. bqev_multilidarcalib
  67. bqev_pcdview
  68. ivmapmake
  69. ivmapmake_sharemem
  70. IVSysMan
  71. map_lanetoxodr
  72. map_mobieye
  73. PerceptionShow
  74. picview
  75. pointcloudviewer
  76. RemoteCtrl
  77. tool_calcmd5
  78. tool_querymsg
  79. tool_xodrobj
  80. view_gps
  81. view_ivlog
  82. view_pcdmap
  83. view_radar
  84. view_rawcan
  85. ui_ads_hmi
  86. tool_configivsysman
  87. #RemoteCtrl_Stream
  88. ivdiagnosis
  89. map_rtkdatafromveh
  90. picview_civetweb
  91. tool_trace2vectormap
  92. view_group_grpc
  93. view_ivchart
  94. view_message
  95. )
  96. for x in ${app_name[@]}
  97. do
  98. echo "deploy $x"
  99. cp ./bin/${x} ./
  100. ./deploywithfind.sh $x
  101. rm ${x}
  102. done
  103. #cp ./thirdpartylib/QtWebApp/lib/*.s* ./bin
  104. #patchelf --set-rpath '$ORIGIN' ./bin/libQtWebAppGlobal.so
  105. #patchelf --set-rpath '$ORIGIN' ./bin/llibQtWebAppHttpServer.so
  106. #cp ./bin/libQtWebApp* ./deploy/app/lib/
  107. lib_name=(
  108. libmodulecomm.so
  109. libndt_cpu.so
  110. # libndt_gpu.so
  111. libxmlparam.so
  112. libivfault.so
  113. libivlog.so
  114. libivbacktrace.so
  115. libivexit.so
  116. libivchart.so
  117. libivservice.so
  118. )
  119. for x in ${lib_name[@]}
  120. do
  121. # echo "link lib $x"
  122. # patchelf --set-rpath '$ORIGIN' ./bin/$x
  123. echo "deploylib $x"
  124. cp ./bin/${x} ./
  125. ./deploylib.sh $x
  126. rm ${x}
  127. done
  128. xlib=`ls ./deploy/app/lib/lib*`
  129. for fileName in $xlib
  130. do
  131. patchelf --set-rpath '$ORIGIN' $fileName
  132. done
  133. cp /usr/lib/aarch64-linux-gnu/nss/libsoftokn3.so ./deploy/app/lib #for use webengine program
  134. #echo "creat IVSysMan.xml"
  135. #cp ./sh/tju64/xml/$CONFIG_IVSysMan ./deploy/app/IVSysMan.xml
  136. #cp ./other/ADS_decision.xml ./deploy/app/ADS_decision.xml
  137. #sed -i "s|xxxxxx|$PRO_DIR/|g" ./deploy/app/IVSysMan.xml
  138. #cp ./bin/*.so ./deploy/app/lib/
  139. #cp ./sh/tju64/xml/* ./deploy/app/
  140. echo ""
  141. echo "***************"
  142. echo "*** done! ***"
  143. echo "***************"