PRO_DIR=`pwd` CONFIG_IVSysMan="IVSysMan_bq1.xml" cd ../../ app_name=( driver_lidar_rs16 IVSysMan adciv_record pointcloudviewer view_ivlog adciv_replay bqev_multilidarcalib bqev_pcdview detection_lidar_cnn_segmentation fusion_pointcloud_bus detection_lidar_cnntogrid detection_lidar_ukf_pda ) 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/ cp ./thirdpartylib/libcaffe.so.1.0.0 ./bin/ lib_name=( libmodulecomm.so libndt_cpu.so libndt_gpu.so libxmlparam.so libivfault.so libivlog.so libivbacktrace.so libivexit.so libcaffe.so.1.0.0 ) 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/midbus/IVSysMan.xml ./deploy/app/ cp ./sh/configivsysman.sh ./deploy/app/ echo "" echo "***************" echo "*** done! ***" echo "***************"