autodeploy.sh 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. PRO_DIR=`pwd`
  2. CONFIG_IVSysMan="IVSysMan_bq1.xml"
  3. cd ../../
  4. app_name=(
  5. driver_gps_hcp2
  6. driver_can_nvidia_agx
  7. driver_can_vci
  8. driver_camera_usb
  9. #driver_lidar_vlp32c
  10. #driver_rpc_client
  11. #driver_rpc_server
  12. #driver_map_trace
  13. driver_map_xodrload
  14. detection_mobileye
  15. #view_pointcloud
  16. #adcndtmultimapping
  17. #pointcloudviewer
  18. view_gps
  19. view_rawcan
  20. #view_radar
  21. IVSysMan
  22. #ivmapmake
  23. #ivweb
  24. #view_ivlog
  25. #tool_querymsg
  26. #tool_xodrobj
  27. #ivlog_record
  28. adciv_record
  29. #view_pcdmap
  30. view_ivlog
  31. adciv_replay
  32. map_mobieye
  33. map_lanetoxodr
  34. tool_xodrobj
  35. )
  36. for x in ${app_name[@]}
  37. do
  38. echo "deploy $x"
  39. cp ./bin/${x} ./
  40. ./deploy.sh $x
  41. rm ${x}
  42. done
  43. cp ./thirdpartylib/QtWebApp/lib/*.s* ./bin
  44. patchelf --set-rpath '$ORIGIN' ./bin/libQtWebAppGlobal.so
  45. patchelf --set-rpath '$ORIGIN' ./bin/libQtWebAppHttpServer.so
  46. cp ./bin/libQtWebApp* ./deploy/app/lib/
  47. lib_name=(
  48. libmodulecomm.so
  49. libndt_cpu.so
  50. libndt_gpu.so
  51. libxmlparam.so
  52. libivfault.so
  53. libivlog.so
  54. libivbacktrace.so
  55. libivexit.so
  56. )
  57. for x in ${lib_name[@]}
  58. do
  59. # echo "link lib $x"
  60. # patchelf --set-rpath '$ORIGIN' ./bin/$x
  61. echo "deploylib $x"
  62. cp ./bin/${x} ./
  63. ./deploylib.sh $x
  64. rm ${x}
  65. done
  66. #cp ./thirdpartylib/BRPC/lib/lib/libbrpc.so ./
  67. #./deploylib.sh libbrpc.so
  68. #rm libbrpc.so
  69. xlib=`ls ./deploy/app/lib/lib*`
  70. for fileName in $xlib
  71. do
  72. patchelf --set-rpath '$ORIGIN' $fileName
  73. done
  74. echo "creat IVSysMan.xml"
  75. cp ./sh/bq/xml/$CONFIG_IVSysMan ./deploy/app/IVSysMan.xml
  76. #cp ./other/ADS_decision.xml ./deploy/app/ADS_decision.xml
  77. sed -i "s|xxxxxx|$PRO_DIR/|g" ./deploy/app/IVSysMan.xml
  78. #cp ./bin/*.so ./deploy/app/lib/
  79. cp ./sh/opendrive/IVSysMan.xml ./deploy/app/
  80. cp ./sh/configivsysman.sh ./deploy/app/
  81. echo ""
  82. echo "***************"
  83. echo "*** done! ***"
  84. echo "***************"