PRO_DIR=`pwd` CONFIG_IVSysMan="IVSysMan_bq1.xml" cd ../../ app_name=( driver_gps_hcp2 driver_can_nvidia_agx driver_can_vci driver_camera_usb #driver_lidar_vlp32c #driver_rpc_client #driver_rpc_server #driver_map_trace driver_map_xodrload detection_mobileye #view_pointcloud #adcndtmultimapping #pointcloudviewer view_gps view_rawcan #view_radar IVSysMan #ivmapmake #ivweb #view_ivlog #tool_querymsg #tool_xodrobj #ivlog_record adciv_record #view_pcdmap view_ivlog adciv_replay map_mobieye map_lanetoxodr tool_xodrobj ) for x in ${app_name[@]} do echo "deploy $x" cp ./bin/${x} ./ ./deploy.sh $x rm ${x} done cp ./thirdpartylib/QtWebApp/lib/*.s* ./bin patchelf --set-rpath '$ORIGIN' ./bin/libQtWebAppGlobal.so patchelf --set-rpath '$ORIGIN' ./bin/libQtWebAppHttpServer.so cp ./bin/libQtWebApp* ./deploy/app/lib/ lib_name=( libmodulecomm.so libndt_cpu.so libndt_gpu.so libxmlparam.so libivfault.so libivlog.so libivbacktrace.so libivexit.so ) for x in ${lib_name[@]} do # echo "link lib $x" # patchelf --set-rpath '$ORIGIN' ./bin/$x echo "deploylib $x" cp ./bin/${x} ./ ./deploylib.sh $x rm ${x} done #cp ./thirdpartylib/BRPC/lib/lib/libbrpc.so ./ #./deploylib.sh libbrpc.so #rm libbrpc.so xlib=`ls ./deploy/app/lib/lib*` for fileName in $xlib do patchelf --set-rpath '$ORIGIN' $fileName done echo "creat IVSysMan.xml" cp ./sh/bq/xml/$CONFIG_IVSysMan ./deploy/app/IVSysMan.xml #cp ./other/ADS_decision.xml ./deploy/app/ADS_decision.xml sed -i "s|xxxxxx|$PRO_DIR/|g" ./deploy/app/IVSysMan.xml #cp ./bin/*.so ./deploy/app/lib/ cp ./sh/opendrive/IVSysMan.xml ./deploy/app/ cp ./sh/configivsysman.sh ./deploy/app/ echo "" echo "***************" echo "*** done! ***" echo "***************"