PRO_DIR=`pwd` CONFIG_IVSysMan="IVSysMan_bq2.xml" cd ../../ app_name=( driver_lidar_vlp16 driver_lidar_vlp32c IVSysMan ivweb ivlog_record pointcloudviewer driver_lidar_merge detection_lidar_cnn_segmentation detection_lidar_ukf_pda driver_rpc_server driver_rpc_client adciv_record adciv_replay ) 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 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/libcaffe.so.1.0.0 ./ ./deploylib.sh libcaffe.so.1.0.0 rm libcaffe.so.1.0.0 #cp ./bin/*.so ./deploy/app/lib/ xlib=`ls ./deploy/app/lib/lib*` for fileName in $xlib do echo "patch lib $fileName" 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/../../deploy/app|g" ./deploy/app/IVSysMan.xml cp ./sh/bq/xml/bq2/* ./deploy/app/ echo "" echo "***************" echo "*** done! ***" echo "***************"